]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Petr Viktorin [Thu, 27 Aug 2020 13:36:48 +0000 (15:36 +0200)]
bpo-38787: Clarify docs for PyType_GetModule and warn against common mistake (GH-20215)
Zackery Spytz [Thu, 27 Aug 2020 11:28:16 +0000 (05:28 -0600)]
bpo-41634: Fix a typo in the curses documentation (GH-21958)
wmeehan [Thu, 27 Aug 2020 05:45:25 +0000 (01:45 -0400)]
bpo-41524: fix pointer bug in PyOS_mystr{n}icmp (GH-21845)
* bpo-41524: fix pointer bug in PyOS_mystr{n}icmp
The existing implementations of PyOS_mystrnicmp and PyOS_mystricmp
can increment pointers beyond the end of a string.
This commit fixes those cases by moving the mutation out of the condition.
* 📜🤖 Added by blurb_it.
* Address comments
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Irit Katriel [Thu, 27 Aug 2020 00:51:12 +0000 (01:51 +0100)]
bpo-41609: Fix output of pdb's whatis command for instance methods (GH-21935)
Mason [Thu, 27 Aug 2020 00:49:14 +0000 (19:49 -0500)]
Add missing word (GH-21936)
"data to lost" -> "data to be lost"
MingZhe Hu [Thu, 27 Aug 2020 00:42:37 +0000 (08:42 +0800)]
bpo-41624: fix documentation of typing.Coroutine (GH-21952)
Dong-hee Na [Tue, 12 Jun 2018 14:30:45 +0000 (23:30 +0900)]
bpo-33660: Fix PosixPath to resolve a relative path on root
Raymond Hettinger [Wed, 26 Aug 2020 20:09:40 +0000 (13:09 -0700)]
Fix typos in comment (GH-21966)
Dong-hee Na [Wed, 26 Aug 2020 17:22:27 +0000 (17:22 +0000)]
bpo-40077: Convert _operator to use PyType_FromSpec (GH-21954)
Elvis Pranskevichus [Wed, 26 Aug 2020 16:42:45 +0000 (09:42 -0700)]
bpo-37658: Fix asyncio.wait_for() to respect waited task status (#21894)
Currently, if `asyncio.wait_for()` itself is cancelled it will always
raise `CancelledError` regardless if the underlying task is still
running. This is similar to a race with the timeout, which is handled
already.
Elvis Pranskevichus [Wed, 26 Aug 2020 16:42:22 +0000 (09:42 -0700)]
bpo-32751: Wait for task cancel in asyncio.wait_for() when timeout <= 0 (#21895)
When I was fixing bpo-32751 back in GH-7216 I missed the case when
*timeout* is zero or negative. This takes care of that.
Props to @aaliddell for noticing the inconsistency.
Raymond Hettinger [Tue, 25 Aug 2020 00:40:08 +0000 (17:40 -0700)]
bpo-41513: More accurate hypot() (GH-21916)
Will Binns [Mon, 24 Aug 2020 15:00:12 +0000 (17:00 +0200)]
README: Add link to LICENSE (GH-21565)
Thanks @wbnns for your contribution.
Andre Delfino [Fri, 21 Aug 2020 22:29:34 +0000 (19:29 -0300)]
Document vars behavior when __dict__ is missing (#21466)
wyz23x2 [Fri, 21 Aug 2020 22:28:54 +0000 (06:28 +0800)]
bpo-41573: Update release versions in General FAQ (GH-21915)
Ernest W. Durbin III [Fri, 21 Aug 2020 21:34:06 +0000 (17:34 -0400)]
Update references from travis-ci.org to travis-ci.com (GH-21919)
Mathieu Dupuy [Thu, 20 Aug 2020 20:08:37 +0000 (22:08 +0200)]
Doc: add a missing period (GH-21819)
Cleber Rosa [Thu, 20 Aug 2020 12:40:01 +0000 (08:40 -0400)]
bpo-41572: Fix grammar in BaseTransport.close docstring (GH-21914)
Fix grammar in BaseTransport.close docstring.
https://bugs.python.org/issue41572
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Sydney Pemberton [Thu, 20 Aug 2020 10:30:21 +0000 (05:30 -0500)]
bpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH-21880)
Use a less surprising document structure.
Automerge-Triggered-By: @csabella
Denis Ovsienko [Wed, 19 Aug 2020 11:29:47 +0000 (12:29 +0100)]
Fix grammar in Doc/tutorial/controlflow.rst (GH-21885)
Automerge-Triggered-By: @csabella
Paul Ganssle [Mon, 17 Aug 2020 22:40:07 +0000 (18:40 -0400)]
bpo-41568: Fix refleaks in zoneinfo subclasses (GH-21907)
* Fix refleak in C module __init_subclass__
This was leaking a reference to the weak cache dictionary for every
ZoneInfo subclass created.
* Fix refleak in ZoneInfo subclass's clear_cache
The previous version of the code accidentally cleared the global
ZONEINFO_STRONG_CACHE variable (and inducing `ZoneInfo` to create a new
strong cache) on calls to a subclass's `clear_cache()`. This would not
affect guaranteed behavior, but it's still not the right thing to do
(and it caused reference leaks).
Hai Shi [Mon, 17 Aug 2020 20:36:19 +0000 (04:36 +0800)]
bpo-
1635741 : Explict GC collect after PyInterpreterState_Clear() (GH-21902)
Fix a reference cycle by triggering an explicit GC collection
after calling PyInterpreterState_Clear().
James Weaver [Mon, 17 Aug 2020 14:19:46 +0000 (15:19 +0100)]
bpo-40782: Change asyncio.AbstractEventLoop.run_in_executor to be a method not a coroutine (GH-21852)
asyncio.AbstractEventLoop.run_in_executor should be a method that returns an asyncio Future, not an async method.
This matches the concrete implementations, and the documentation better.
Allen [Mon, 17 Aug 2020 13:38:55 +0000 (09:38 -0400)]
Fix typo in message from assert statement (GH-21283)
The error message was missing space between the action "acquire" and "_wait_semaphore" which is an attribute for instances of Condition.
Victor Stinner [Mon, 17 Aug 2020 06:41:42 +0000 (08:41 +0200)]
bpo-40204: Fix duplicated productionlist names in the doc (GH-21900)
Sphinx 3 disallows having more than one productionlist markup with
the same name. Simply remove names in this case, since names are not
shown anyway. For example, fix the Sphinx 3 warning:
Doc/reference/introduction.rst:96: duplicate token description
of *:name, other instance in reference/expressions
Victor Stinner [Mon, 17 Aug 2020 05:20:40 +0000 (07:20 +0200)]
bpo-41521: Rename blacklist parameter to not_exported (GH-21824)
Rename "blacklist" parameter of test.support.check__all__() to
"not_exported".
Soumendra Ganguly [Sun, 16 Aug 2020 15:51:00 +0000 (10:51 -0500)]
Update the comment of termios.c (#21886)
Irit Katriel [Sun, 16 Aug 2020 15:10:13 +0000 (16:10 +0100)]
bpo-41503: Fix race between setTarget and flush in logging.handlers.MemoryHandler (GH-21765)
Raymond Hettinger [Sun, 16 Aug 2020 02:38:19 +0000 (19:38 -0700)]
bpo-41513: Improve speed and accuracy of math.hypot() (GH-21803)
Stefan Krah [Sat, 15 Aug 2020 18:19:07 +0000 (20:19 +0200)]
bpo-41540: AIX: skip test that is flaky with a default ulimit. (#21890)
- AIX has extreme over-allocation that is in no relation to the physical
RAM and swap.
Dima Tisnek [Sat, 15 Aug 2020 17:01:19 +0000 (02:01 +0900)]
bpo-31122: ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation (GH-18772)
[bpo-31122](): ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation
Reproducer: http://tiny.cc/f4ztnz (tiny url because some bot keeps renaming b.p.o.-nnn as bpo links)
Stefan Krah [Sat, 15 Aug 2020 14:06:21 +0000 (16:06 +0200)]
bpo-40878: xlc cannot handle C99 extern inline. (GH-21887)
This applies to the default "extc99" mode. Python does not compile with "stdc99".
Irit Katriel [Fri, 14 Aug 2020 23:01:36 +0000 (00:01 +0100)]
Fix typo in typing doc (GH-21879)
Automerge-Triggered-By: @gvanrossum
Victor Stinner [Fri, 14 Aug 2020 10:20:05 +0000 (12:20 +0200)]
bpo-40204: Fix reference to terms in the doc (GH-21865)
Sphinx 3 requires to refer to terms with the exact case.
For example, fix the Sphinx 3 warning:
Doc/library/pkgutil.rst:71: WARNING: term Loader not found in case
sensitive match.made a reference to loader instead.
Paul Ganssle [Fri, 14 Aug 2020 02:38:30 +0000 (22:38 -0400)]
bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965)
Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:
TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument
https://bugs.python.org/issue41025
Rishav Kundu [Fri, 14 Aug 2020 01:33:14 +0000 (07:03 +0530)]
bpo-41410: Fix outdated info in mkstemp docs (GH-21701)
Automerge-Triggered-By: @ericvsmith
Steve Dower [Thu, 13 Aug 2020 23:35:52 +0000 (00:35 +0100)]
bpo-41526: Fixed layout of final page of the installer (GH-21871)
Facundo Batista [Thu, 13 Aug 2020 20:33:56 +0000 (17:33 -0300)]
Fixed comment about pathlib.link_to: it was added in 3.8, not changed. (#21851)
Victor Stinner [Thu, 13 Aug 2020 20:11:50 +0000 (22:11 +0200)]
bpo-40204, doc: Fix syntax of C variables (GH-21846)
For example, fix the following Sphinx 3 errors:
Doc/c-api/buffer.rst:102: WARNING: Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name. [error at 5]
void \*obj
-----^
Doc/c-api/arg.rst:130: WARNING: Unparseable C cross-reference: 'PyObject*'
Invalid C declaration: Expected end of definition. [error at 8]
PyObject*
--------^
The modified documentation is compatible with Sphinx 2 and Sphinx 3.
bpo-41066: Update the comparison section for os vs pathlib (GH-21261)
Victor Stinner [Thu, 13 Aug 2020 19:41:54 +0000 (21:41 +0200)]
bpo-40204: Add :noindex: in the documentation (GH-21859)
Add :noindex: to duplicated documentation to fix "duplicate object
description" errors.
For example, fix this Sphinx 3 issue:
Doc/library/configparser.rst:1146: WARNING: duplicate object
description of configparser.ConfigParser.optionxform, other instance
in library/configparser, use :noindex: for one of them
Victor Stinner [Thu, 13 Aug 2020 17:20:28 +0000 (19:20 +0200)]
bpo-41521: Replace denylist with blocklist is http.cookiejar doc (GH-21826)
The http.cookiejar module has is_blocked() and blocked_domains()
methods, so "blocklist" term sounds better than "denylist" in this
module.
Replace also denylisted with denied in test___all__.
Terry Jan Reedy [Thu, 13 Aug 2020 17:18:49 +0000 (13:18 -0400)]
bpo-41520: Fix second codeop regression (GH-21848)
* bpo-41520: Fix second codeop repression
Fix the repression introduced by the initial regression fix.
Victor Stinner [Thu, 13 Aug 2020 17:16:02 +0000 (19:16 +0200)]
bpo-40204: Fix duplicates in the documentation (GH-21857)
Fix two Sphinx 3 issues:
Doc/c-api/buffer.rst:304: WARNING: Duplicate C declaration, also defined in 'c-api/buffer'.
Declaration is 'PyBUF_ND'.
Doc/c-api/unicode.rst:1603: WARNING: Duplicate C declaration, also defined in 'c-api/unicode'.
Declaration is 'PyObject* PyUnicode_Translate(PyObject *str, PyObject *table, const char *errors)'.
Victor Stinner [Thu, 13 Aug 2020 17:15:38 +0000 (19:15 +0200)]
bpo-40204: Fix Sphinx sytanx in howto/instrumentation.rst (GH-21858)
Use generic '.. object::' to declare markers, rather than abusing
'.. c:function::' which fails on Sphinx 3.
Mohamed Koubaa [Thu, 13 Aug 2020 14:22:48 +0000 (09:22 -0500)]
bpo-
1635741 : Port _winapi ext to multi-stage init (GH-21371)
Pablo Galindo [Thu, 13 Aug 2020 08:48:41 +0000 (09:48 +0100)]
bpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850)
Hai Shi [Wed, 12 Aug 2020 21:23:30 +0000 (05:23 +0800)]
bpo-
1635741 : Clean sysdict and builtins of interpreter at exit (GH-21605)
Victor Stinner [Wed, 12 Aug 2020 19:49:22 +0000 (21:49 +0200)]
bpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844)
Enable Sphinx 3.2 "c_allow_pre_v3" option and disable the
c_warn_on_allowed_pre_v3 option to make the documentation compatible
with Sphinx 2 and Sphinx 3.
Stefan Krah [Wed, 12 Aug 2020 14:00:05 +0000 (16:00 +0200)]
Catch all skip_handler cases (GH-21842)
Victor Stinner [Wed, 12 Aug 2020 12:53:28 +0000 (14:53 +0200)]
bpo-41520: codeop no longer ignores SyntaxWarning (GH-21838)
Victor Stinner [Wed, 12 Aug 2020 08:53:12 +0000 (10:53 +0200)]
bpo-41521, typing: Rename _PROTO_WHITELIST to _PROTO_ALLOWLIST (#21825)
Christopher Yeh [Tue, 11 Aug 2020 22:27:08 +0000 (15:27 -0700)]
Fix typo (GH-21820)
Stefan Krah [Tue, 11 Aug 2020 19:14:51 +0000 (21:14 +0200)]
Call randseed() before other imports in deccheck.py (GH-21834)
Ram Rachum [Tue, 11 Aug 2020 16:33:25 +0000 (19:33 +0300)]
bpo-41475: Fix note in "What's new in 3.7" (#21733)
Petr Viktorin [Tue, 11 Aug 2020 16:15:57 +0000 (18:15 +0200)]
Add PEP 573 additions to What's New (GH-21374)
Edward K. Ream [Tue, 11 Aug 2020 14:07:49 +0000 (09:07 -0500)]
Add links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773)
Victor Stinner [Tue, 11 Aug 2020 13:28:43 +0000 (15:28 +0200)]
bpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21823)
Rename 5 test method names in test_codecs and test_typing.
Victor Stinner [Tue, 11 Aug 2020 13:26:59 +0000 (15:26 +0200)]
bpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21822)
Automerge-Triggered-By: @tiran
Mohamed Koubaa [Tue, 11 Aug 2020 10:32:35 +0000 (05:32 -0500)]
bpo-
1635741 : Port multiprocessing ext to multiphase init (GH-21378)
Port the _multiprocessing extension module to multiphase initialization (PEP 489).
Hai Shi [Mon, 10 Aug 2020 21:24:02 +0000 (05:24 +0800)]
bpo-40275: Fix failed test cases by using test helpers (GH-21811)
Stefan Krah [Mon, 10 Aug 2020 20:39:46 +0000 (22:39 +0200)]
MSVC: The ARM command line should not define MASM. (#21817)
Stefan Krah [Mon, 10 Aug 2020 19:54:50 +0000 (21:54 +0200)]
Replace import_fresh_module in decimal test files (GH-21815)
Victor Stinner [Mon, 10 Aug 2020 16:36:59 +0000 (18:36 +0200)]
bpo-40548: Fix "Check for source changes (pull_request)" GH Action job (GH-21806)
On Git 2.28, "git diff master..." (3 dots) no longer works when
"fetch --depth=1" is used, whereas it works on Git 2.26.
Replace "..." (3 dots) with ".." (2 dots) in the "git diff" command
computing the list of modified files between the base branch and the
PR branch.
Filipe Laíns [Mon, 10 Aug 2020 14:48:20 +0000 (15:48 +0100)]
bpo-16995: add support for base32 extended hex (base32hex) (GH-20441)
cc @pganssle
Automerge-Triggered-By: @pganssle
Stefan Krah [Mon, 10 Aug 2020 14:32:21 +0000 (16:32 +0200)]
bpo-41324 Add a minimal decimal capsule API (#21519)
Terry Jan Reedy [Mon, 10 Aug 2020 13:43:56 +0000 (09:43 -0400)]
bpo-41514: Fix buggy IDLE test (GH-21808)
test_run method test_fatal_error failed when run twice, as with
python -m test -m test_fatal_error test_idle test_idle
because func.called was not reinitialized to 0.
This bug caused a failure on a refleak buildbot.
Terry Jan Reedy [Sun, 9 Aug 2020 20:08:30 +0000 (16:08 -0400)]
bpo-41468: Improve and test IDLE run error exit (GH-21798)
A message box pops up when an unexpected error stops the run process. Tell users it is likely a random glitch, but report it if not.
Terry Jan Reedy [Sun, 9 Aug 2020 17:08:19 +0000 (13:08 -0400)]
Improve renamed test_run.RecursionLimitTest (GH-21794)
PEP 8 style and new comments.
Zackery Spytz [Sun, 9 Aug 2020 10:50:53 +0000 (04:50 -0600)]
bpo-35018: Sax parser should provide user access to lexical handlers (GH-20958)
Co-Authored-By: Jonathan Gossage <jgossage@gmail.com>
Jiajie Zhong [Sat, 8 Aug 2020 19:29:03 +0000 (03:29 +0800)]
Doc: Add output to example code in programming FAQ (GH-21346)
Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.html#how-do-i-write-a-function-with-output-parameters-call-by-reference).
This patch make the output hint just like prefix code block.
Yaroslav Pankovych [Sat, 8 Aug 2020 18:48:21 +0000 (21:48 +0300)]
bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Hai Shi [Sat, 8 Aug 2020 11:05:24 +0000 (19:05 +0800)]
bpo-40275: Use new test.support helper submodules in tests (GH-21785)
Hai Shi [Sat, 8 Aug 2020 09:32:41 +0000 (17:32 +0800)]
bpo-40275: Remove test helpers aliases in test.support (GH-21771)
Konge [Sat, 8 Aug 2020 03:03:09 +0000 (11:03 +0800)]
bpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)
Benjamin Kane [Sat, 8 Aug 2020 02:57:03 +0000 (19:57 -0700)]
Doc: Add a link to tutorial page from `open()` doc (GH-21737)
Adds a link to the "Reading and Writing Files" page so users can
more easily discover how file handles are handled with the `with`
context manager vs without it.
Steve Dower [Fri, 7 Aug 2020 22:22:02 +0000 (23:22 +0100)]
Update Azure Pipelines build to use Ubuntu 18.04 and move triggers into YAML files (GH-21776)
Hai Shi [Fri, 7 Aug 2020 21:55:35 +0000 (05:55 +0800)]
bpo-40275: Use new test.support helper submodules in tests (GH-21772)
Victor Stinner [Fri, 7 Aug 2020 15:57:56 +0000 (17:57 +0200)]
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
gdb 9.2 on Fedora Rawhide is not reliable, see:
* https://bugs.python.org/issue41473
* https://bugzilla.redhat.com/show_bug.cgi?id=
1866884
Victor Stinner [Fri, 7 Aug 2020 15:56:42 +0000 (17:56 +0200)]
bpo-41477: Make ctypes optional in test_genericalias (GH-21766)
Hai Shi [Fri, 7 Aug 2020 15:18:38 +0000 (23:18 +0800)]
bpo-40275: Use new test.support helper submodules in tests (GH-21764)
Inada Naoki [Fri, 7 Aug 2020 07:31:53 +0000 (16:31 +0900)]
bpo-41098: Doc: Add missing deprecated directives (GH-21162)
PyUnicodeEncodeError_Create has been deprecated with
`Py_DEPRECATED` macro. But it was not documented.
Zackery Spytz [Fri, 7 Aug 2020 05:38:48 +0000 (23:38 -0600)]
bpo-39871: Fix an error in a news entry (GH-21749)
pxinwr [Fri, 7 Aug 2020 05:21:52 +0000 (13:21 +0800)]
bpo-41440: add os.cpu_count() support for VxWorks RTOS (GH-21685)
Inada Naoki [Fri, 7 Aug 2020 05:08:55 +0000 (14:08 +0900)]
bpo-41493: Refactoring dictresize (GH-21751)
Split newsize calculation into new function. dictresize() now accepts exact newsize.
Nathan M [Thu, 6 Aug 2020 22:09:40 +0000 (18:09 -0400)]
bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734)
Steve Dower [Thu, 6 Aug 2020 16:36:22 +0000 (17:36 +0100)]
bpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)
Hai Shi [Thu, 6 Aug 2020 11:51:29 +0000 (19:51 +0800)]
bpo-40275: Use new test.support helper submodules in tests (GH-21743)
Eric L. Frederich [Wed, 5 Aug 2020 18:44:53 +0000 (14:44 -0400)]
bpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)
Victor Stinner [Wed, 5 Aug 2020 14:23:10 +0000 (16:23 +0200)]
bpo-40989: Fix compiler warning in winreg.c (GH-21722)
Explicitly cast PyHKEYObject* to PyObject* to call _PyObject_Init().
Batuhan Taskaya [Wed, 5 Aug 2020 13:32:32 +0000 (16:32 +0300)]
bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312)
Inada Naoki [Wed, 5 Aug 2020 01:48:51 +0000 (10:48 +0900)]
bpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)
See PEP 623 for detail.
Mark Shannon [Tue, 4 Aug 2020 16:30:11 +0000 (17:30 +0100)]
bpo-41463: Generate information about jumps from 'opcode.py' rather than duplicating it in 'compile.c' (GH-21714)
Generate information about jumps from 'opcode.py' rather than duplicate it in 'compile.c'
Hai Shi [Tue, 4 Aug 2020 15:53:12 +0000 (23:53 +0800)]
bpo-40275: Use new test.support helper submodules in tests (GH-21727)
Hai Shi [Tue, 4 Aug 2020 15:51:43 +0000 (23:51 +0800)]
bpo-40275: Use new test.support helper submodules in tests (GH-21452)
Hans Petter Jansson [Tue, 4 Aug 2020 03:51:33 +0000 (22:51 -0500)]
bpo-36982: Add support for extended color functions in ncurses 6.1 (GH-17536)
Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net>
Inada Naoki [Tue, 4 Aug 2020 02:08:06 +0000 (11:08 +0900)]
bpo-41431: Optimize dict_merge for copy (GH-21674)
Victor Stinner [Tue, 4 Aug 2020 00:40:10 +0000 (02:40 +0200)]
bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)
On Windows, fix asyncio recv_into() return value when the socket/pipe
is closed (BrokenPipeError): return 0 rather than an empty byte
string (b'').
Victor Stinner [Tue, 4 Aug 2020 00:38:16 +0000 (02:38 +0200)]
bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721)
incr cannot be larger than INT_MAX: downcast to int explicitly.
Victor Stinner [Mon, 3 Aug 2020 20:51:23 +0000 (22:51 +0200)]
bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718)
regrtest_unraisable_hook() temporarily replaces sys.stderr with
sys.__stderr__ to help to display errors when a test captures stderr.