]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agoDoc: Change Python 2 status to EOL. (GH-17885)
Inada Naoki [Tue, 7 Jan 2020 06:52:44 +0000 (15:52 +0900)] 
Doc: Change Python 2 status to EOL. (GH-17885)

5 years agobpo-39234: `enum.auto()` default initial value as 1 (GH-17878)
YoSTEALTH [Mon, 6 Jan 2020 22:04:43 +0000 (16:04 -0600)] 
bpo-39234: `enum.auto()` default initial value as 1 (GH-17878)

Updated as Eric mentioned "By default, the initial value starts at 1"

https://bugs.python.org/issue39234

Automerge-Triggered-By: @ericvsmith
5 years agobpo-39041: Fix coverage upload command for GitHub Actions (GH-17873)
Steve Dower [Mon, 6 Jan 2020 21:23:10 +0000 (13:23 -0800)] 
bpo-39041: Fix coverage upload command for GitHub Actions (GH-17873)

https://bugs.python.org/issue39041

Automerge-Triggered-By: @zooba
5 years agobpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872)
YoSTEALTH [Mon, 6 Jan 2020 19:53:36 +0000 (13:53 -0600)] 
bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872)

* `enum.auto()` initial value is now specified as being `1`.

5 years agobpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
Anthony Wee [Mon, 6 Jan 2020 16:57:34 +0000 (08:57 -0800)] 
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)

5 years agobpo-39209: Manage correctly multi-line tokens in interactive mode (GH-17860)
Pablo Galindo [Mon, 6 Jan 2020 15:59:09 +0000 (15:59 +0000)] 
bpo-39209: Manage correctly multi-line tokens in interactive mode (GH-17860)

5 years agoFix link to bpo issue in Changelog (GH-17692)
Chandan Singh [Mon, 6 Jan 2020 15:18:16 +0000 (15:18 +0000)] 
Fix link to bpo issue in Changelog (GH-17692)

5 years agobpo-38907: Suppress any exception when attempting to set V6ONLY. (GH-17864)
Jason R. Coombs [Mon, 6 Jan 2020 12:59:36 +0000 (07:59 -0500)] 
bpo-38907: Suppress any exception when attempting to set V6ONLY. (GH-17864)

Fixes error attempting to bind to IPv4 address.

5 years agoargument-clinic: Simplify multi-line string handling (GH-17852)
Dong-hee Na [Mon, 6 Jan 2020 10:46:04 +0000 (19:46 +0900)] 
argument-clinic: Simplify multi-line string handling (GH-17852)

5 years agobpo-38907: In http.server script, restore binding to IPv4 on Windows. (GH-17851)
Jason R. Coombs [Mon, 6 Jan 2020 03:32:19 +0000 (22:32 -0500)] 
bpo-38907: In http.server script, restore binding to IPv4 on Windows. (GH-17851)

5 years agoMinor formatting improvements and fixes to idle.rst (GH-17165)
Tal Einat [Sun, 5 Jan 2020 23:51:48 +0000 (01:51 +0200)] 
Minor formatting improvements and fixes to idle.rst (GH-17165)

5 years agobpo-39130: Dict reversed was added in v3.8 so should say in the doc as well (GH-17694)
Khalid Mammadov [Sun, 5 Jan 2020 22:39:38 +0000 (22:39 +0000)] 
bpo-39130: Dict reversed was added in v3.8 so should say in the doc as well (GH-17694)

To be consistent with document layout, it should say when the feature was added.
Although it's mentioned few other places in the doc but it's not explicitly say that at that place.

https://bugs.python.org/issue39130

5 years agoFix the parameter list of object. _rpow_ (#GH-16477)
HongWeipeng [Sun, 5 Jan 2020 22:20:29 +0000 (16:20 -0600)] 
Fix the parameter list of object. _rpow_ (#GH-16477)

5 years agoReplace links in howto/pyporting.rst with sphinx references (GH-17781)
Oleg Höfling [Sun, 5 Jan 2020 22:08:14 +0000 (23:08 +0100)] 
Replace links in howto/pyporting.rst with sphinx references (GH-17781)

Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
5 years agoOrganise and clean test_positional_only_arg and add more tests (GH-17842)
Pablo Galindo [Sun, 5 Jan 2020 18:52:39 +0000 (18:52 +0000)] 
Organise and clean test_positional_only_arg and add more tests (GH-17842)

5 years agobpo-39200: Correct the error message for range() empty constructor (GH-17813)
Pablo Galindo [Sun, 5 Jan 2020 17:30:53 +0000 (17:30 +0000)] 
bpo-39200: Correct the error message for range() empty constructor (GH-17813)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agoFix constant folding optimization for positional only arguments (GH-17837)
Anthony Sottile [Sun, 5 Jan 2020 17:03:56 +0000 (12:03 -0500)] 
Fix constant folding optimization for positional only arguments (GH-17837)

5 years agobpo-39152: add missing ttk.Scale.configure return value (GH-17815)
Terry Jan Reedy [Sun, 5 Jan 2020 16:23:58 +0000 (11:23 -0500)] 
bpo-39152: add missing ttk.Scale.configure return value (GH-17815)

tkinter.ttk.Scale().configure([name]) now returns a configuration tuple for name
or a list thereof for all options. Based on patch Giovanni Lombardo.

5 years agobpo-39055: Reject a trailing \n in base64.b64decode() with validate=True. (GH-17616)
Serhiy Storchaka [Sun, 5 Jan 2020 12:15:50 +0000 (14:15 +0200)] 
bpo-39055: Reject a trailing \n in base64.b64decode() with validate=True. (GH-17616)

5 years agobpo-39056: Fix handling invalid warning category in the -W option. (GH-17618)
Serhiy Storchaka [Sun, 5 Jan 2020 12:15:27 +0000 (14:15 +0200)] 
bpo-39056: Fix handling invalid warning category in the -W option. (GH-17618)

No longer import the re module if it is not needed.

5 years agobpo-39057: Fix urllib.request.proxy_bypass_environment(). (GH-17619)
Serhiy Storchaka [Sun, 5 Jan 2020 12:14:31 +0000 (14:14 +0200)] 
bpo-39057: Fix urllib.request.proxy_bypass_environment(). (GH-17619)

Ignore leading dots and no longer ignore a trailing newline.

5 years agoFix SystemError when nested function has annotation on positional-only argument ...
Anthony Sottile [Sun, 5 Jan 2020 01:57:21 +0000 (20:57 -0500)] 
Fix SystemError when nested function has annotation on positional-only argument (GH-17826)

5 years agobpo-28367: Add additional baud rates for termios (GH-13142)
Anthony Shaw [Sat, 4 Jan 2020 12:56:31 +0000 (23:56 +1100)] 
bpo-28367: Add additional baud rates for termios (GH-13142)

Co-authored-by: Andrey Smirnov <andrew.smirnov@gmail.com>.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
5 years agoFix #39191: Don't spawn a task before failing (#17796)
Andrew Svetlov [Sat, 4 Jan 2020 09:10:14 +0000 (11:10 +0200)] 
Fix #39191: Don't spawn a task before failing (#17796)

5 years agobpo-38532: Add missing decrefs in PyCFuncPtr_FromDll() (GH-16857)
Zackery Spytz [Fri, 3 Jan 2020 12:16:12 +0000 (05:16 -0700)] 
bpo-38532: Add missing decrefs in PyCFuncPtr_FromDll() (GH-16857)

5 years agoAdd link to zlib v1.1.3 vulnerability (GH-17156)
Emmanuel Nosa E [Fri, 3 Jan 2020 12:10:16 +0000 (13:10 +0100)] 
Add link to zlib v1.1.3 vulnerability (GH-17156)

5 years agobpo-39158: ast.literal_eval() doesn't support empty sets (GH-17742)
Raymond Hettinger [Fri, 3 Jan 2020 05:21:18 +0000 (22:21 -0700)] 
bpo-39158: ast.literal_eval() doesn't support empty sets (GH-17742)

5 years agoUpdate copyright year in macOS installer license copy (GH-17806)
Ned Deily [Fri, 3 Jan 2020 03:28:37 +0000 (22:28 -0500)] 
Update copyright year in macOS installer license copy (GH-17806)

5 years agoBring Python into the next decade. (GH-17801)
Benjamin Peterson [Fri, 3 Jan 2020 02:56:34 +0000 (18:56 -0800)] 
Bring Python into the next decade. (GH-17801)

5 years agobpo-38870: Throw ValueError on invalid yield from usage (GH-17798)
Batuhan Taşkaya [Thu, 2 Jan 2020 18:20:04 +0000 (21:20 +0300)] 
bpo-38870: Throw ValueError on invalid yield from usage (GH-17798)

5 years agoRemove outdated mention of hg.exe from Tools/msi/README.txt (GH-17792)
Anthony Shaw [Thu, 2 Jan 2020 17:32:55 +0000 (04:32 +1100)] 
Remove outdated mention of hg.exe from Tools/msi/README.txt (GH-17792)

5 years agobpo-39114: Fix tracing of except handlers with name binding (GH-17769)
Pablo Galindo [Thu, 2 Jan 2020 11:38:44 +0000 (11:38 +0000)] 
bpo-39114: Fix tracing of except handlers with name binding (GH-17769)

When producing the bytecode of exception handlers with name binding (like `except Exception as e`) we need to produce a try-finally block to make sure that the name is deleted after the handler is executed to prevent cycles in the stack frame objects. The bytecode associated with this try-finally block does not have source lines associated and it was causing problems when the tracing functionality was running over it.

5 years agobpo-39183: Fix formatting in library/ensurepip (GH-17787)
Rafael Fontenelle [Wed, 1 Jan 2020 22:26:33 +0000 (19:26 -0300)] 
bpo-39183: Fix formatting in library/ensurepip (GH-17787)

Remove extra space to fix formatting and avoid from splitting text in to strings.

https://bugs.python.org/issue39183

5 years agobpo-13601: always use line-buffering for sys.stderr (GH-17646)
Jendrik Seipp [Wed, 1 Jan 2020 22:21:43 +0000 (23:21 +0100)] 
bpo-13601: always use line-buffering for sys.stderr (GH-17646)

5 years agobpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773)
Vinay Sajip [Wed, 1 Jan 2020 19:32:11 +0000 (19:32 +0000)] 
bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773)

This uses the heuristic of assuming a named tuple is a subclass of
tuple with a _fields attribute. This change means that contents of
a named tuple wouldn't be converted - if a user wants to have
ConvertingTuple functionality from a namedtuple, they will have to
implement it themselves.

5 years agoDocument CodeType.replace (GH-17776)
Anthony Sottile [Wed, 1 Jan 2020 06:11:16 +0000 (01:11 -0500)] 
Document CodeType.replace (GH-17776)

5 years agobpo-39176: Improve error message for 'named assignment' (GH-17777)
Ned Batchelder [Wed, 1 Jan 2020 02:40:58 +0000 (21:40 -0500)] 
bpo-39176: Improve error message for 'named assignment' (GH-17777)

5 years agoFix idlelib README typo. (GH-17770)
Terry Jan Reedy [Tue, 31 Dec 2019 18:34:22 +0000 (13:34 -0500)] 
Fix idlelib README typo. (GH-17770)

5 years agoMinor doc fixes in urllib.parse (GH-17745)
Борис Верховский [Tue, 31 Dec 2019 12:28:18 +0000 (07:28 -0500)] 
Minor doc fixes in urllib.parse (GH-17745)

5 years agocloses bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727)
Batuhan Taşkaya [Tue, 31 Dec 2019 02:31:52 +0000 (05:31 +0300)] 
closes bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727)

5 years agobpo-38588: Optimize list comparison. (GH-17766)
Inada Naoki [Tue, 31 Dec 2019 01:58:37 +0000 (10:58 +0900)] 
bpo-38588: Optimize list comparison. (GH-17766)

Mitigate performance regression of the list comparison caused by 2d5bf56.

5 years agobpo-38588: Fix possible crashes in dict and list when calling PyObject_RichCompareBoo...
Dong-hee Na [Tue, 31 Dec 2019 01:04:22 +0000 (10:04 +0900)] 
bpo-38588: Fix possible crashes in dict and list when calling PyObject_RichCompareBool (GH-17734)

Take strong references before calling PyObject_RichCompareBool to protect against the case
where the object dies during the call.

5 years ago bpo-34118: memoryview, range, and tuple are classes (GH-17761)
Terry Jan Reedy [Mon, 30 Dec 2019 22:16:43 +0000 (17:16 -0500)] 
 bpo-34118: memoryview, range, and tuple are classes  (GH-17761)

Tag memoryview, range, and tuple as classes, the same as list, etcetera, in
the library manual built-in functions list.

5 years agobpo-38610: Fix possible crashes in several list methods (GH-17022)
Zackery Spytz [Mon, 30 Dec 2019 19:32:58 +0000 (12:32 -0700)] 
bpo-38610: Fix possible crashes in several list methods (GH-17022)

Hold strong references to list elements while calling PyObject_RichCompareBool().

5 years agobpo-39019: Implement missing __class_getitem__ for SpooledTemporaryFile (GH-17560)
Batuhan Taşkaya [Mon, 30 Dec 2019 16:08:08 +0000 (19:08 +0300)] 
bpo-39019: Implement missing __class_getitem__ for SpooledTemporaryFile (GH-17560)

5 years agobpo-39019: Implement missing __class_getitem__ for subprocess classes (GH-17558)
Batuhan Taşkaya [Mon, 30 Dec 2019 16:02:04 +0000 (19:02 +0300)] 
bpo-39019: Implement missing __class_getitem__ for subprocess classes (GH-17558)

5 years agobpo-34790: Implement deprecation of passing coroutines to asyncio.wait() (GH-16977)
Kyle Stanley [Mon, 30 Dec 2019 11:50:19 +0000 (06:50 -0500)] 
bpo-34790: Implement deprecation of passing coroutines to asyncio.wait() (GH-16977)

5 years agoFix handling of line numbers around finally-blocks. (#17737)
Mark Shannon [Mon, 30 Dec 2019 09:53:36 +0000 (09:53 +0000)] 
Fix handling of line numbers around finally-blocks. (#17737)

5 years agobpo-39037: Fix lookup order of magic methods in with statement documentation (GH...
Géry Ogam [Mon, 30 Dec 2019 05:24:51 +0000 (05:24 +0000)] 
bpo-39037: Fix lookup order of magic methods in with statement documentation (GH-17608)

* __enter__ is now looked up before __exit__ to give a more intuitive error message
* add pseudo-code equivalent for the with statement
* fix pseudo-code for the async with statement to use a finally clause
* use SUITE rather than BLOCK for consistency with the language grammar

Patch by Géry Ogam.

5 years agoFix typos and remove deprecated deprecation warning. (GH-17741)
Antoine [Sun, 29 Dec 2019 22:14:22 +0000 (23:14 +0100)] 
Fix typos and remove deprecated deprecation warning. (GH-17741)

5 years agobpo-39157: Skip test_pidfd_send_signal if the system does not have enough privileges...
Pablo Galindo [Sun, 29 Dec 2019 21:35:54 +0000 (21:35 +0000)] 
bpo-39157: Skip test_pidfd_send_signal if the system does not have enough privileges to use pidfd (GH-17740)

5 years agoFix error when running with -uall in test_unparse (GH-17739)
Pablo Galindo [Sun, 29 Dec 2019 20:18:36 +0000 (20:18 +0000)] 
Fix error when running with -uall in test_unparse (GH-17739)

5 years agobpo-38870: Run always tests that heavily use grammar features in test_unparse (GH...
Pablo Galindo [Sun, 29 Dec 2019 19:20:55 +0000 (19:20 +0000)] 
bpo-38870: Run always tests that heavily use grammar features in test_unparse (GH-17738)

5 years agolinks in importlib.metadata.rst replaced with sphinx references (GH-17730)
Oleg Höfling [Sun, 29 Dec 2019 17:26:35 +0000 (18:26 +0100)] 
links in importlib.metadata.rst replaced with sphinx references (GH-17730)

The importlib.metadata documentation uses hardcoded links to internal
pages. This results in minor rendering issues. This change replaces
the hardcoded links with suitable Sphinx roles.

Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
5 years agobpo-39136: Fixed typos (GH-17720)
Gurupad Hegde [Sat, 28 Dec 2019 22:16:02 +0000 (17:16 -0500)] 
bpo-39136: Fixed typos (GH-17720)

funtion -> function; configuraton -> configuration; defintitions -> definitions;
focusses -> focuses; necesarily -> necessarily; follwing -> following;
Excape -> Escape,

5 years agobpo-38731: Fix function signature of quiet in docs (GH-17719)
Batuhan Taşkaya [Sat, 28 Dec 2019 02:53:03 +0000 (05:53 +0300)] 
bpo-38731: Fix function signature of quiet in docs (GH-17719)

5 years agobpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib...
Anthony Shaw [Sat, 28 Dec 2019 02:32:48 +0000 (13:32 +1100)] 
bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib files (GH-17721)

5 years agoMove comment about permanent generation to gcmodule.c (GH-17718)
Pablo Galindo [Fri, 27 Dec 2019 21:55:56 +0000 (21:55 +0000)] 
Move comment about permanent generation to gcmodule.c (GH-17718)

The comment about the collection rules for the permanent generation was
incorrectly referenced by a comment in gcmodule.c (the comment has been
moved long ago into a header file). Moving the comment into the relevant
code helps with readability and avoids broken references.

5 years agocloses bpo-39135: Remove 'time.clock()' mention in docs. (GH17709)
Michael Wayne Goodman [Fri, 27 Dec 2019 03:01:08 +0000 (11:01 +0800)] 
closes bpo-39135: Remove 'time.clock()' mention in docs. (GH17709)

`time.clock()` was removed in Python 3.8, but it was still mentioned
in the documentation for when `time.get_clock_info()` is given the
argument `'clock'`. This commit removes that mention.

5 years agocloses bpo-30364: Replace deprecated no_address_safety_analysis attribute. (GH-17702)
Batuhan Taşkaya [Fri, 27 Dec 2019 02:51:34 +0000 (05:51 +0300)] 
closes bpo-30364: Replace deprecated no_address_safety_analysis attribute. (GH-17702)

5 years agoUpdate what's new with the latest GC improvements (GH-17708)
Pablo Galindo [Thu, 26 Dec 2019 21:56:40 +0000 (21:56 +0000)] 
Update what's new with the latest GC improvements (GH-17708)

5 years agoUpdate 3.9.0a2.rst (GH-17703)
Aurora Lanes [Thu, 26 Dec 2019 14:22:13 +0000 (14:22 +0000)] 
Update 3.9.0a2.rst (GH-17703)

Fixed small grammatical issue

Automerge-Triggered-By: @Mariatta
5 years agobpo-33961: Adjusted dataclasses docs to correct exceptions raised. (GH-7917) (GH...
Fabio Sangiovanni [Wed, 25 Dec 2019 22:45:30 +0000 (23:45 +0100)] 
bpo-33961: Adjusted dataclasses docs to correct exceptions raised. (GH-7917) (GH-17677)

5 years agoFix the miscellaneous typo (GH-17700)
cocoatomo [Wed, 25 Dec 2019 15:39:35 +0000 (00:39 +0900)] 
Fix the miscellaneous typo (GH-17700)

A character "i" is omitted.

5 years agoUpdate 3.9.0a2.rst - correct small typos (GH-17665)
toonarmycaptain [Wed, 25 Dec 2019 11:25:36 +0000 (05:25 -0600)] 
Update 3.9.0a2.rst - correct small typos (GH-17665)

Small typo/formatting corrections.
`whethen` -> `whether`
`exaustion' -> `exhaustion`
Assorted appending periods `.` and slight reformattings to place `Path contributed by` on the same line as description, matching the majority of document.

NB Some of these might need to be backported, as I saw the first error in the [changelog for 3.8.1](https://docs.python.org/3.8/whatsnew/changelog.html#python-3-8-1)

5 years agoMinor C API documentation improvements. (GH-17696)
William Ayd [Wed, 25 Dec 2019 04:25:56 +0000 (23:25 -0500)] 
Minor C API documentation improvements. (GH-17696)

The added parentheses around the PyIter_Next assignment suppress the following warning which gcc throws without:
```
warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
```
The other change is a typo fix

5 years agoFix import path for asyncio.TimeoutError (#17691)
Andrew Svetlov [Tue, 24 Dec 2019 10:46:42 +0000 (12:46 +0200)] 
Fix import path for asyncio.TimeoutError (#17691)

5 years agoAdd comment to avoid ACKS losing order (GH-17678)
Éric Araujo [Mon, 23 Dec 2019 17:03:30 +0000 (12:03 -0500)] 
Add comment to avoid ACKS losing order (GH-17678)

5 years agoRevert "bpo-38870: Remove dependency on contextlib to avoid performance regression...
Pablo Galindo [Mon, 23 Dec 2019 16:42:48 +0000 (16:42 +0000)] 
Revert "bpo-38870: Remove dependency on contextlib to avoid performance regression on import (GH-17376)" (GH-17687)

This reverts commit ded8888fbc33011dd39b7b1c86a5adfacc4943f3.

5 years agobpo-38870: Refactor delimiting with context managers in ast.unparse (GH-17612)
Batuhan Taşkaya [Mon, 23 Dec 2019 16:11:00 +0000 (19:11 +0300)] 
bpo-38870: Refactor delimiting with context managers in ast.unparse (GH-17612)

Co-Authored-By: Victor Stinner <vstinner@python.org>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
5 years agobpo-38914 Do not require email field in setup.py. (GH-17388)
Jürgen Gmach [Mon, 23 Dec 2019 14:53:18 +0000 (15:53 +0100)] 
bpo-38914 Do not require email field in setup.py. (GH-17388)

When checking `setup.py` and when the `author` field was provided, but
the `author_email` field was missing, erroneously a warning message was
displayed that the `author_email` field is required.

The specs do not require the `author_email`field:
https://packaging.python.org/specifications/core-metadata/#author

The same is valid for `maintainer` and `maintainer_email`.

The warning message has been adjusted.

modified:   Doc/distutils/examples.rst
modified:   Lib/distutils/command/check.py

https://bugs.python.org/issue38914

5 years ago[typo] fix dupe in datetime.fromisoformat docs (GH-17295)
Michael Morehouse [Mon, 23 Dec 2019 14:37:47 +0000 (14:37 +0000)] 
[typo] fix dupe in datetime.fromisoformat docs (GH-17295)

Fixes a nearly word for word duplication of a sentence that appears
earlier in the caution section of datetime.datetime.fromisoformat in
Doc/Library/datetime.rst.

No issue created as it's a trivial change.

Automerge-Triggered-By: @pganssle
5 years agoAdd missing markup (GH-17680)
cocoatomo [Sun, 22 Dec 2019 17:46:45 +0000 (02:46 +0900)] 
Add missing markup (GH-17680)

"HH", "MM" and "ffffff" are enclosed with double back quotes, but "SS" is left being bare

5 years agobpo-38878: Fix os.PathLike __subclasshook__ (GH-17336)
Bar Harel [Sun, 22 Dec 2019 09:57:27 +0000 (11:57 +0200)] 
bpo-38878: Fix os.PathLike __subclasshook__ (GH-17336)

Quick subclasshook fix using the same method is being used in collections.abc (up to a certain degree).

5 years agobpo-38918: Add __module__ entry for function & method type in inspect docs table...
Parth Sharma [Fri, 20 Dec 2019 19:18:33 +0000 (00:48 +0530)] 
bpo-38918: Add __module__ entry for function & method type in inspect docs table (GH-17408)

Adds` __module__ ` entries for function & method types in inspect docs table.

https://bugs.python.org/issue38918

5 years agoreorder entries in Misc/ACKS (#17663)
Éric Araujo [Fri, 20 Dec 2019 14:53:33 +0000 (09:53 -0500)] 
reorder entries in Misc/ACKS (#17663)

5 years agoDoc typo (#17667)
Jesús Cea [Fri, 20 Dec 2019 02:21:03 +0000 (03:21 +0100)] 
Doc typo (#17667)

5 years agoPost 3.9.0a2
Łukasz Langa [Thu, 19 Dec 2019 08:15:15 +0000 (09:15 +0100)] 
Post 3.9.0a2

5 years agoPython 3.9.0a2 v3.9.0a2
Łukasz Langa [Wed, 18 Dec 2019 21:09:19 +0000 (22:09 +0100)] 
Python 3.9.0a2

5 years agobpo-38546: Fix concurrent.futures test_ressources_gced_in_workers() (GH-17652)
Victor Stinner [Wed, 18 Dec 2019 14:50:04 +0000 (15:50 +0100)] 
bpo-38546: Fix concurrent.futures test_ressources_gced_in_workers() (GH-17652)

Fix test_ressources_gced_in_workers() of test_concurrent_futures:
explicitly stop the manager to prevent leaking a child process
running in the background after the test completes.

5 years agobpo-39028: Performance enhancement in keyword extraction (GH-17576)
Sebastian Berg [Wed, 18 Dec 2019 06:51:22 +0000 (00:51 -0600)] 
bpo-39028: Performance enhancement in keyword extraction (GH-17576)

All keywords should first be checked for pointer identity. Only
after that failed for all keywords (unlikely) should unicode
equality be used.
The original code would call unicode equality on any non-matching
keyword argument. Meaning calling it often e.g. when a function
has many kwargs but only the last one is provided.

5 years agobpo-39080: Starred Expression's column offset fix when inside a CALL (GH-17645)
Lysandros Nikolaou [Wed, 18 Dec 2019 00:20:55 +0000 (01:20 +0100)] 
bpo-39080: Starred Expression's column offset fix when inside a CALL (GH-17645)

Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-36500: Simplify PCbuild/build.bat and prevent path separator changing in comments...
Steve Dower [Tue, 17 Dec 2019 22:14:13 +0000 (14:14 -0800)] 
bpo-36500: Simplify PCbuild/build.bat and prevent path separator changing in comments (GH-17644)

5 years agobpo-36500: Add --regen option to PCbuild/build.bat so Windows users can regen grammar...
Anthony Shaw [Tue, 17 Dec 2019 21:21:20 +0000 (08:21 +1100)] 
bpo-36500: Add --regen option to PCbuild/build.bat so Windows users can regen grammar, opcodes, tokens and symbols (GH-12654)

5 years agobpo-38546: multiprocessing tests stop the resource tracker (GH-17641)
Victor Stinner [Tue, 17 Dec 2019 17:37:26 +0000 (18:37 +0100)] 
bpo-38546: multiprocessing tests stop the resource tracker (GH-17641)

Multiprocessing and concurrent.futures tests now stop the resource
tracker process when tests complete.

Add ResourceTracker._stop() method to
multiprocessing.resource_tracker.

Add _cleanup_tests() helper function to multiprocessing.util: share
code between multiprocessing and concurrent.futures tests.

5 years agobpo-38858: Small integer per interpreter (GH-17315)
Victor Stinner [Tue, 17 Dec 2019 12:02:18 +0000 (13:02 +0100)] 
bpo-38858: Small integer per interpreter (GH-17315)

Each Python subinterpreter now has its own "small integer
singletons": numbers in [-5; 257] range.

It is no longer possible to change the number of small integers at
build time by overriding NSMALLNEGINTS and NSMALLPOSINTS macros:
macros should now be modified manually in pycore_pystate.h header
file.

For now, continue to share _PyLong_Zero and _PyLong_One singletons
between all subinterpreters.

5 years agoAdd whatsnew for removal of asyncio.loop.create_datagram_endpoint()'s *reuse_address...
Kyle Stanley [Mon, 16 Dec 2019 21:50:34 +0000 (16:50 -0500)] 
Add whatsnew for removal of asyncio.loop.create_datagram_endpoint()'s *reuse_address* parameter (#17595)

5 years agobpo-39041: Add GitHub Actions badge to README.rst (GH-17628)
Steve Dower [Mon, 16 Dec 2019 19:15:08 +0000 (11:15 -0800)] 
bpo-39041: Add GitHub Actions badge to README.rst (GH-17628)

Also skip build for doc-only changes and enable on push

5 years agobpo-39041: Add GitHub Actions support (GH-17594)
Steve Dower [Mon, 16 Dec 2019 18:35:22 +0000 (10:35 -0800)] 
bpo-39041: Add GitHub Actions support (GH-17594)

5 years agobpo-38348: Extend command line options of ast parsing tool (GH-16540)
Batuhan Taşkaya [Mon, 16 Dec 2019 18:23:27 +0000 (21:23 +0300)] 
bpo-38348: Extend command line options of ast parsing tool (GH-16540)

Add -i and --indent (indentation level), and --no-type-comments
(type comments) command line options to ast parsing tool.

5 years agobpo-38870: Remove dead code related with argument unparsing (GH-17613)
Batuhan Taşkaya [Mon, 16 Dec 2019 12:26:58 +0000 (15:26 +0300)] 
bpo-38870: Remove dead code related with argument unparsing (GH-17613)

5 years agobpo-38811: Check for presence of os.link method in pathlib (GH-17225)
Toke Høiland-Jørgensen [Mon, 16 Dec 2019 12:23:55 +0000 (13:23 +0100)] 
bpo-38811: Check for presence of os.link method in pathlib (GH-17225)

Commit 6b5b013bcc22 ("bpo-26978: Implement pathlib.Path.link_to (Using
os.link) (GH-12990)") introduced a new link_to method in pathlib. However,
this makes pathlib crash when the 'os' module is missing a 'link' method.

Fix this by checking for the presence of the 'link' method on pathlib
module import, and if it's not present, turn it into a runtime error like
those emitted when there is no lchmod() or symlink().

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
5 years agoAdd tests and design notes for Counter subset/superset operations. (GH-17625)
Raymond Hettinger [Mon, 16 Dec 2019 09:54:14 +0000 (01:54 -0800)] 
Add tests and design notes for Counter subset/superset operations. (GH-17625)

5 years agobpo-39033: Fix NameError in zipimport during hash validation (GH-17588)
Xtreak [Sun, 15 Dec 2019 23:34:12 +0000 (05:04 +0530)] 
bpo-39033: Fix NameError in zipimport during hash validation (GH-17588)

Patch by Karthikeyan Singaravelan.

5 years ago bpo-38316: Fix co_stacksize documentation (GH-16983)
Batuhan Taşkaya [Sun, 15 Dec 2019 22:02:47 +0000 (01:02 +0300)] 
 bpo-38316: Fix co_stacksize documentation (GH-16983)

5 years agobpo-38629: implement __floor__ and __ceil__ for float type (GH-16985)
Batuhan Taşkaya [Sun, 15 Dec 2019 22:00:28 +0000 (01:00 +0300)] 
bpo-38629: implement __floor__ and __ceil__ for float type (GH-16985)

5 years agoThe comment in ast_for_namedexpr shouldn't include if_stmt (GH-17586)
Guido van Rossum [Sun, 15 Dec 2019 18:00:33 +0000 (10:00 -0800)] 
The comment in ast_for_namedexpr shouldn't include if_stmt (GH-17586)

Automerge-Triggered-By: @gvanrossum
5 years agobpo-38021: Modify AIX platform_tag so it covers PEP 425 needs (GH-17303)
Michael Felt [Sun, 15 Dec 2019 14:17:53 +0000 (15:17 +0100)] 
bpo-38021: Modify AIX platform_tag so it covers PEP 425 needs (GH-17303)

Provides a richer platform tag for AIX that we expect to be sufficient for PEP 425
binary distribution identification. Any backports to earlier Python versions will be
handled via setuptools.

Patch by Michael Felt.

5 years agobpo-39035: travis: Don't use beta group (GH-17602)
Inada Naoki [Sat, 14 Dec 2019 11:10:15 +0000 (20:10 +0900)] 
bpo-39035: travis: Don't use beta group (GH-17602)

5 years agoFix typo in site module (GH-17597)
Daniel Andersson [Sat, 14 Dec 2019 10:37:58 +0000 (11:37 +0100)] 
Fix typo in site module (GH-17597)