]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agobpo-40548: Fix "Check for source changes (pull_request)" GH Action job (GH-21806)
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.

5 years agobpo-16995: add support for base32 extended hex (base32hex) (GH-20441)
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
5 years agobpo-41324 Add a minimal decimal capsule API (#21519)
Stefan Krah [Mon, 10 Aug 2020 14:32:21 +0000 (16:32 +0200)] 
bpo-41324 Add a minimal decimal capsule API (#21519)

5 years agobpo-41514: Fix buggy IDLE test (GH-21808)
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.

5 years agobpo-41468: Improve and test IDLE run error exit (GH-21798)
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.

5 years agoImprove renamed test_run.RecursionLimitTest (GH-21794)
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.

5 years agobpo-35018: Sax parser should provide user access to lexical handlers (GH-20958)
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>
5 years agoDoc: Add output to example code in programming FAQ (GH-21346)
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.

5 years agobpo-41455: Provide a link to how the third generation is collected in the GC docs...
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>
5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21785)
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)

5 years agobpo-40275: Remove test helpers aliases in test.support (GH-21771)
Hai Shi [Sat, 8 Aug 2020 09:32:41 +0000 (17:32 +0800)] 
bpo-40275: Remove test helpers aliases in test.support (GH-21771)

5 years agobpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)
Konge [Sat, 8 Aug 2020 03:03:09 +0000 (11:03 +0800)] 
bpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)

5 years agoDoc: Add a link to tutorial page from `open()` doc (GH-21737)
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.

5 years agoUpdate Azure Pipelines build to use Ubuntu 18.04 and move triggers into YAML files...
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)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21772)
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)

5 years agobpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
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

5 years agobpo-41477: Make ctypes optional in test_genericalias (GH-21766)
Victor Stinner [Fri, 7 Aug 2020 15:56:42 +0000 (17:56 +0200)] 
bpo-41477: Make ctypes optional in test_genericalias (GH-21766)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21764)
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)

5 years agobpo-41098: Doc: Add missing deprecated directives (GH-21162)
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.

5 years agobpo-39871: Fix an error in a news entry (GH-21749)
Zackery Spytz [Fri, 7 Aug 2020 05:38:48 +0000 (23:38 -0600)] 
bpo-39871: Fix an error in a news entry (GH-21749)

5 years agobpo-41440: add os.cpu_count() support for VxWorks RTOS (GH-21685)
pxinwr [Fri, 7 Aug 2020 05:21:52 +0000 (13:21 +0800)] 
bpo-41440: add os.cpu_count() support for VxWorks RTOS (GH-21685)

5 years agobpo-41493: Refactoring dictresize (GH-21751)
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.

5 years agobpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734)
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)

5 years agobpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)
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)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21743)
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)

5 years agobpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)
Eric L. Frederich [Wed, 5 Aug 2020 18:44:53 +0000 (14:44 -0400)] 
bpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)

5 years agobpo-40989: Fix compiler warning in winreg.c (GH-21722)
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().

5 years agobpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312)
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)

5 years agobpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)
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.

5 years agobpo-41463: Generate information about jumps from 'opcode.py' rather than duplicating...
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'

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21727)
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)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21452)
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)

5 years agobpo-36982: Add support for extended color functions in ncurses 6.1 (GH-17536)
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>
5 years agobpo-41431: Optimize dict_merge for copy (GH-21674)
Inada Naoki [Tue, 4 Aug 2020 02:08:06 +0000 (11:08 +0900)] 
bpo-41431: Optimize dict_merge for copy (GH-21674)

5 years agobpo-41467: Fix asyncio recv_into() on Windows (GH-21720)
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'').

5 years agobpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721)
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.

5 years agobpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718)
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.

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21448)
Hai Shi [Mon, 3 Aug 2020 16:49:18 +0000 (00:49 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21448)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21451)
Hai Shi [Mon, 3 Aug 2020 16:47:42 +0000 (00:47 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21451)

5 years agobpo-40275: Use new test.support helper submodules in tests (GH-21449)
Hai Shi [Mon, 3 Aug 2020 16:41:24 +0000 (00:41 +0800)] 
bpo-40275: Use new test.support helper submodules in tests (GH-21449)

5 years agoA (very) slight speed improvement for iterating over bytes (#21705)
Guido van Rossum [Mon, 3 Aug 2020 16:04:13 +0000 (09:04 -0700)] 
A (very) slight speed improvement for iterating over bytes (#21705)

My mentee @xvxvxvxvxv noticed that iterating over array.array is
slightly faster than iterating over bytes.  Looking at the source I
observed that arrayiter_next() calls `getitem(ao, it->index++)` wheras
striter_next() uses the idiom (paraphrased)

    item = PyLong_FromLong(seq->ob_sval[it->it_index]);
    if (item != NULL)
        ++it->it_next;
    return item;

I'm not 100% sure but I think that the second version has fewer
opportunity for the CPU to overlap the `index++` operation with the
rest of the code (which in both cases involves a call).  So here I am
optimistically incrementing the index -- if the PyLong_FromLong() call
fails, this will leave the iterator pointing at the next byte, but
honestly I doubt that anyone would seriously consider resuming use of
the iterator after that kind of failure (it would have to be a
MemoryError).  And the author of arrayiter_next() made the same
consideration (or never ever gave it a thought :-).

With this, a loop like

    for _ in b: pass

is now slightly *faster* than the same thing over an equivalent array,
rather than slightly *slower* (in both cases a few percent).

5 years agobpo-41425: Make tkinter doc example runnable (GH-21706)
Ankit Chandawala [Mon, 3 Aug 2020 04:03:48 +0000 (05:03 +0100)] 
bpo-41425: Make tkinter doc example runnable (GH-21706)

Co-authored-by: Ankit Chandawala <achandaw@amazon.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)
Nathan M [Mon, 3 Aug 2020 02:13:03 +0000 (22:13 -0400)] 
bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)

5 years agobpo-40979: refactored typing.rst; (mostly) same content, new sub-sections and orderin...
Luciano Ramalho [Sun, 2 Aug 2020 22:32:36 +0000 (19:32 -0300)] 
bpo-40979: refactored typing.rst; (mostly) same content, new sub-sections and ordering (#21574)

Also added PEP 585 deprecation notes.

5 years agorandom module: Convert a "while 1" to "while True (GH-21700) 21730/head
Raymond Hettinger [Sun, 2 Aug 2020 19:03:32 +0000 (12:03 -0700)] 
random module: Convert a "while 1" to "while True (GH-21700)

5 years agobpo-41421: Algebraic simplification for random.paretovariate() (GH-21695)
Raymond Hettinger [Sat, 1 Aug 2020 08:18:26 +0000 (01:18 -0700)] 
bpo-41421: Algebraic simplification for random.paretovariate() (GH-21695)

5 years agobpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694)
Karthikeyan Singaravelan [Fri, 31 Jul 2020 10:50:48 +0000 (16:20 +0530)] 
bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694)

5 years agobpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-21517)
Mark Shannon [Thu, 30 Jul 2020 09:03:00 +0000 (10:03 +0100)] 
bpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-21517)

* Move 'peephole' optimizations into compile.c and perform them directly on the CFG.

5 years agobpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)
Sebastien Williams-Wynn [Wed, 29 Jul 2020 18:36:46 +0000 (19:36 +0100)] 
bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)

Automerge-Triggered-By: @brettcannon
5 years agocloses bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)
Benjamin Peterson [Wed, 29 Jul 2020 00:57:12 +0000 (17:57 -0700)] 
closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)

This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF.

 I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue.

5 years agoRemove incorrect mention of method.__class__ in descriptor docs (GH-21665)
Yonatan Goldschmidt [Tue, 28 Jul 2020 23:56:26 +0000 (02:56 +0300)] 
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665)

5 years agoFix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)
Xiang Zhang [Tue, 28 Jul 2020 16:51:33 +0000 (00:51 +0800)] 
Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)

5 years agobpo-41412 and bpo-40948: Windows installer updates (GH-21656)
Steve Dower [Tue, 28 Jul 2020 15:35:46 +0000 (16:35 +0100)] 
bpo-41412 and bpo-40948: Windows installer updates (GH-21656)

Prevent installation on Windows 8 and earlier.
Download UCRT on demand when required (non-updated Windows 8.1 only)
Add reference to py launcher to post-install message

5 years agobpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)
Dmytro Litvinov [Tue, 28 Jul 2020 14:48:32 +0000 (17:48 +0300)] 
bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)

5 years agobpo-35328: Set VIRTUAL_ENV_PROMPT at venv activation (GH-21587)
Zackery Spytz [Tue, 28 Jul 2020 08:41:57 +0000 (02:41 -0600)] 
bpo-35328: Set VIRTUAL_ENV_PROMPT at venv activation (GH-21587)

Co-Authored-By: Baptiste Darthenay <baptiste.darthenay@gmail.com>
5 years agoValidate the AST produced by the parser in debug mode (GH-21643)
Pablo Galindo [Mon, 27 Jul 2020 22:46:59 +0000 (23:46 +0100)] 
Validate the AST produced by the parser in debug mode (GH-21643)

This will improve the debug experience if something fails in the produced AST. Previously, errors in the produced AST can be felt much later like in the garbage collector or the compiler, making debugging them much more difficult.

5 years agobpo-41045: Document debug feature of f-strings ('=') (GH-21509)
amaajemyfren [Mon, 27 Jul 2020 22:31:02 +0000 (01:31 +0300)] 
bpo-41045: Document debug feature of f-strings ('=') (GH-21509)

Co-Authored-By: Rishi <rishi93dev@gmail.com>
Automerge-Triggered-By: @gvanrossum
5 years agobpo-40939: Remove even more references to the old parser (GH-21642)
Lysandros Nikolaou [Mon, 27 Jul 2020 19:52:59 +0000 (21:52 +0200)] 
bpo-40939: Remove even more references to the old parser (GH-21642)

Automerge-Triggered-By: @lysnikolaou
5 years agobpo-40939: Use the new grammar for the grammar specification documentation (GH-19969)
Pablo Galindo [Mon, 27 Jul 2020 18:20:36 +0000 (19:20 +0100)] 
bpo-40939: Use the new grammar for the grammar specification documentation (GH-19969)

(We censor the heck out of actions and some other stuff using a custom "highlighter".)

Co-authored-by: Guido van Rossum <guido@python.org>
5 years agobpo-41401: Fix test_fspath_support in test_io. (GH-21640)
Serhiy Storchaka [Mon, 27 Jul 2020 17:58:35 +0000 (20:58 +0300)] 
bpo-41401: Fix test_fspath_support in test_io. (GH-21640)

The error is exposed on non-UTF-8 locales.

5 years agobpo-31904: Fix test_ftplib failures for VxWorks RTOS (GH-19447)
pxinwr [Mon, 27 Jul 2020 06:17:47 +0000 (14:17 +0800)] 
bpo-31904: Fix test_ftplib failures for VxWorks RTOS (GH-19447)

5 years agobpo-41340: Removed fallback implementation for strdup (GH-21634)
wasiher [Mon, 27 Jul 2020 03:28:45 +0000 (12:28 +0900)] 
bpo-41340: Removed fallback implementation for strdup (GH-21634)

5 years agobpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)
Akuli [Mon, 27 Jul 2020 01:48:17 +0000 (04:48 +0300)] 
bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)

... when an unknown option is passed.  TypeError was being raised because a 2to3 fix was missing.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years ago Fix atexitmodule doc (GH-21456)
linchiwei123 [Sun, 26 Jul 2020 23:33:00 +0000 (07:33 +0800)] 
 Fix atexitmodule doc (GH-21456)

5 years agoDelete remaining references to Grammar/Grammar from docs (#21624)
Guido van Rossum [Sun, 26 Jul 2020 15:27:52 +0000 (08:27 -0700)] 
Delete remaining references to Grammar/Grammar from docs (#21624)

(Ironically, the file itself remains, see https://github.com/we-like-parsers/cpython/issues/135.)

5 years agobpo-41385: Fix test_executable_without_cwd on Windows (GH-21608)
Serhiy Storchaka [Sun, 26 Jul 2020 07:21:39 +0000 (10:21 +0300)] 
bpo-41385: Fix test_executable_without_cwd on Windows (GH-21608)

5 years agobpo-39868: Add documentation for Assignment Expressions (walrus, PEP 572) (#18851)
Shankar Jha [Sat, 25 Jul 2020 23:33:48 +0000 (05:03 +0530)] 
bpo-39868: Add documentation for Assignment Expressions (walrus, PEP 572) (#18851)

5 years agobpo-41314: fixed annotations __future__ version (GH-21616)
YoSTEALTH [Sat, 25 Jul 2020 21:42:49 +0000 (15:42 -0600)] 
bpo-41314: fixed annotations __future__ version (GH-21616)

PEP 563 was updated to change the release where `from __future__ import annotations` becomes the default (and only) behavior from 4.0 to 3.10. Update `__future__.py` and its docs to reflect this.

5 years agobpo-38731: Add --quiet option to py_compile CLI (GH-17134)
Gregory Schevchenko [Sat, 25 Jul 2020 19:58:45 +0000 (22:58 +0300)] 
bpo-38731: Add --quiet option to py_compile CLI (GH-17134)

5 years agobpo-37309: NEWS for #41373 (GH-21612)
Terry Jan Reedy [Sat, 25 Jul 2020 04:30:57 +0000 (00:30 -0400)] 
bpo-37309: NEWS for #41373 (GH-21612)

5 years agobpo-41373: IDLE: Fix saving files loaded with no newlines or mixed newlines (GH-21597)
Serhiy Storchaka [Sat, 25 Jul 2020 03:21:30 +0000 (06:21 +0300)] 
bpo-41373: IDLE: Fix saving files loaded with no newlines or mixed newlines (GH-21597)

Fixes regression in 3.8.4 and 3.9.0b4.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-41317: Remove reader on cancellation in asyncio.loop.sock_accept() (#21595)
Alex Grönholm [Thu, 23 Jul 2020 19:45:08 +0000 (22:45 +0300)] 
bpo-41317: Remove reader on cancellation in asyncio.loop.sock_accept() (#21595)

5 years agobpo-41366: Fix clang warning for sign conversion (GH-21592)
Henry Schreiner [Thu, 23 Jul 2020 08:39:03 +0000 (04:39 -0400)] 
bpo-41366: Fix clang warning for sign conversion (GH-21592)

5 years agobpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594)
Zackery Spytz [Thu, 23 Jul 2020 06:06:26 +0000 (00:06 -0600)] 
bpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594)

Also one in news log.

5 years agobpo-41182 selector: use DefaultSelector based upon implementation (GH-21257)
Abhijeet Kasurde [Thu, 23 Jul 2020 03:13:37 +0000 (08:43 +0530)] 
bpo-41182 selector: use DefaultSelector based upon implementation (GH-21257)

On some platform such as VMware ESXi, DefaultSelector fails
to detect selector due to default value.
This fix adds a check and uses the correct selector depending upon
select implementation and actual call.

Fixes: [bpo-41182]()
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years agoStick with the phrase "default parameter value" (GH-21590)
Andre Delfino [Wed, 22 Jul 2020 23:58:19 +0000 (20:58 -0300)] 
Stick with the phrase "default parameter value" (GH-21590)

5 years agobpo-41369 Update to libmpdec-2.5.1: new features (GH-21593)
Stefan Krah [Wed, 22 Jul 2020 19:54:42 +0000 (21:54 +0200)] 
bpo-41369 Update to libmpdec-2.5.1: new features (GH-21593)

5 years agobpo-41341: Recursive evaluation of ForwardRef in get_type_hints (#21553)
wyfo [Wed, 22 Jul 2020 19:47:28 +0000 (21:47 +0200)] 
bpo-41341: Recursive evaluation of ForwardRef in get_type_hints (#21553)

The issue raised by recursive evaluation is infinite recursion with
recursive types. In that case, only the first recursive ForwardRef is
evaluated.

5 years agobpo-41364: Reduce import overhead of uuid module (GH-21586)
Steve Dower [Tue, 21 Jul 2020 23:15:47 +0000 (00:15 +0100)] 
bpo-41364: Reduce import overhead of uuid module (GH-21586)

5 years agobpo-41283: Fix mismatched argument name for imghdr.what (GH-21501)
Ammar Askar [Tue, 21 Jul 2020 00:22:01 +0000 (17:22 -0700)] 
bpo-41283: Fix mismatched argument name for imghdr.what (GH-21501)

5 years agobpo-40741: Update Windows build to include SQLite 3.32.3 (GH-21570)
Steve Dower [Mon, 20 Jul 2020 23:09:41 +0000 (00:09 +0100)] 
bpo-40741: Update Windows build to include SQLite 3.32.3 (GH-21570)

5 years agobpo-41342: Convert int.__round__ to Argument Clinic (GH-21549)
Serhiy Storchaka [Mon, 20 Jul 2020 12:57:37 +0000 (15:57 +0300)] 
bpo-41342: Convert int.__round__ to Argument Clinic (GH-21549)

5 years agobpo-41334: Convert constructors of str, bytes and bytearray to Argument Clinic (GH...
Serhiy Storchaka [Mon, 20 Jul 2020 12:53:55 +0000 (15:53 +0300)] 
bpo-41334: Convert constructors of str, bytes and bytearray to Argument Clinic (GH-21535)

5 years agobpo-41343: Convert methods of complex to Argument Clinic (GH-21550)
Dong-hee Na [Mon, 20 Jul 2020 12:53:29 +0000 (21:53 +0900)] 
bpo-41343: Convert methods of complex to Argument Clinic (GH-21550)

5 years agobpo-41336: Fix the error handling in zoneinfo_new_instance() (GH-21546)
Zackery Spytz [Mon, 20 Jul 2020 12:51:26 +0000 (06:51 -0600)] 
bpo-41336: Fix the error handling in zoneinfo_new_instance() (GH-21546)

Do not call PyObject_CallMethod() with a live exception (like
KeyboardInterrupt).

5 years agoSimple Documentation fix: Missing link to return type class. (GH-21291)
Volker-Weissmann [Mon, 20 Jul 2020 11:26:32 +0000 (13:26 +0200)] 
Simple Documentation fix: Missing link to return type class. (GH-21291)

Just a simple documentation fix: apply_async and map_async return a "multiprocessing.pool.AsyncResult Object", not a "result object".

5 years agobpo-37703: improve asyncio.gather documentation regarding cancellation (GH-15312)
Vinay Sharma [Mon, 20 Jul 2020 08:42:57 +0000 (14:12 +0530)] 
bpo-37703: improve asyncio.gather documentation regarding cancellation (GH-15312)

These changes updates the doc to comprehensively mention the behaviour of gather.cancel()

Automerge-Triggered-By: @asvetlov
5 years agoDoc: fix import of asdl.py when called from outside Doc/. (GH-21529)
Julien Palard [Mon, 20 Jul 2020 07:48:40 +0000 (09:48 +0200)] 
Doc: fix import of asdl.py when called from outside Doc/. (GH-21529)

5 years agobpo-40741: Update macOS installer to use SQLite 3.32.3 (GH-20979)
Erlend Egeberg Aasland [Mon, 20 Jul 2020 06:19:18 +0000 (08:19 +0200)] 
bpo-40741: Update macOS installer to use SQLite 3.32.3 (GH-20979)

5 years agobpo-41338: Fix DeprecationWarning in tests (GH-21542)
Inada Naoki [Mon, 20 Jul 2020 03:02:50 +0000 (12:02 +0900)] 
bpo-41338: Fix DeprecationWarning in tests (GH-21542)

5 years agobpo-38169: Increase code coverage for SharedMemory and ShareableList (GH-16139)
Vinay Sharma [Sun, 19 Jul 2020 13:35:52 +0000 (19:05 +0530)] 
bpo-38169: Increase code coverage for SharedMemory and ShareableList (GH-16139)

5 years agobpo-41205: Document Decimal power 0 to the 0 (GH-21386)
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) [Sun, 19 Jul 2020 11:03:43 +0000 (16:33 +0530)] 
bpo-41205: Document Decimal power 0 to the 0 (GH-21386)

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
5 years agobpo-41333: Convert OrderedDict.pop() to Argument Clinic (GH-21534)
Serhiy Storchaka [Sun, 19 Jul 2020 06:18:55 +0000 (09:18 +0300)] 
bpo-41333: Convert OrderedDict.pop() to Argument Clinic (GH-21534)

5 years agobpo-41295: Reimplement the Carlo Verre "hackcheck" (GH-21528)
scoder [Sat, 18 Jul 2020 21:19:50 +0000 (23:19 +0200)] 
bpo-41295: Reimplement the Carlo Verre "hackcheck" (GH-21528)

Walk down the MRO backwards to find the type that originally defined the final `tp_setattro`, then make sure we are not jumping over intermediate C-level bases with the Python-level call.

Automerge-Triggered-By: @gvanrossum
5 years agobpo-39603: Prevent header injection in http methods (GH-18485)
AMIR [Sat, 18 Jul 2020 20:16:10 +0000 (00:46 +0430)] 
bpo-39603: Prevent header injection in http methods (GH-18485)

reject control chars in http method in http.client.putrequest to prevent http header injection

5 years agobpo-41325: Add version note for args and kwargs property in call object (GH-21525)
Jordan Speicher [Sat, 18 Jul 2020 13:05:44 +0000 (08:05 -0500)] 
bpo-41325: Add version note for args and kwargs property in call object (GH-21525)

5 years agobpo-41262: Convert memoryview to Argument Clinic. (GH-21421)
Serhiy Storchaka [Sat, 18 Jul 2020 08:12:05 +0000 (11:12 +0300)] 
bpo-41262: Convert memoryview to Argument Clinic. (GH-21421)

5 years agobpo-41288: Refactor of unpickling NEWOBJ and NEWOBJ_EX opcodes. (GH-21472)
Serhiy Storchaka [Sat, 18 Jul 2020 08:11:21 +0000 (11:11 +0300)] 
bpo-41288: Refactor of unpickling NEWOBJ and NEWOBJ_EX opcodes. (GH-21472)

* Share code for NEWOBJ and NEWOBJ_EX.
* More detailed error messages.

5 years agoFix a small grammatical mistake in a comment (GH-21526)
Brett Cannon [Fri, 17 Jul 2020 20:09:21 +0000 (13:09 -0700)] 
Fix a small grammatical mistake in a comment (GH-21526)

Automerge-Triggered-By: @brettcannon
5 years agobpo-43104: Update NEWS to include CVE-2020-15801 reference (GH-21521)
Steve Dower [Fri, 17 Jul 2020 16:44:27 +0000 (17:44 +0100)] 
bpo-43104: Update NEWS to include CVE-2020-15801 reference (GH-21521)