]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
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)

5 years agoFix elif start column offset when there is an else following (GH-17596)
Lysandros Nikolaou [Sat, 14 Dec 2019 10:24:57 +0000 (11:24 +0100)] 
Fix elif start column offset when there is an else following (GH-17596)

5 years agoAdd PYTHONUTF8 to commandline usage. (GH-17587)
Inada Naoki [Sat, 14 Dec 2019 05:27:32 +0000 (14:27 +0900)] 
Add PYTHONUTF8 to commandline usage. (GH-17587)

Co-Authored-By: Victor Stinner <vstinner@python.org>
5 years agobpo-36406: Handle namespace packages in doctest (GH-12520)
Xtreak [Fri, 13 Dec 2019 18:06:53 +0000 (23:36 +0530)] 
bpo-36406: Handle namespace packages in doctest (GH-12520)

5 years agobpo-39031: Include elif keyword when producing lineno/col-offset info for if_stmt...
Lysandros Nikolaou [Thu, 12 Dec 2019 21:40:21 +0000 (22:40 +0100)] 
bpo-39031: Include elif keyword when producing lineno/col-offset info for if_stmt (GH-17582)

When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node.

https://bugs.python.org/issue39031

Automerge-Triggered-By: @pablogsal
5 years agoFix warnings in test_asyncio.test_base_events (#17577)
Kyle Stanley [Thu, 12 Dec 2019 13:48:20 +0000 (08:48 -0500)] 
Fix warnings in test_asyncio.test_base_events (#17577)

Co-authored-by: tirkarthi
5 years agobpo-38614: Use support timeout constants (GH-17572)
Victor Stinner [Wed, 11 Dec 2019 21:17:04 +0000 (22:17 +0100)] 
bpo-38614: Use support timeout constants (GH-17572)

5 years agobpo-38614: Use test.support.SHORT_TIMEOUT constant (GH-17566)
Victor Stinner [Wed, 11 Dec 2019 10:30:03 +0000 (11:30 +0100)] 
bpo-38614: Use test.support.SHORT_TIMEOUT constant (GH-17566)

Replace hardcoded timeout constants in tests with SHORT_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.

SHORT_TIMEOUT is 30 seconds by default, but it can be longer
depending on --timeout command line option.

The change makes almost all timeouts longer, except
test_reap_children() of test_support which is made 2x shorter:
SHORT_TIMEOUT should be enough. If this test starts to fail,
LONG_TIMEOUT should be used instead.

Uniformize also "from test import support" import in some test files.

5 years agobpo-39022, bpo-38594: Sync with importlib_metadata 1.3 (GH-17568)
Jason R. Coombs [Wed, 11 Dec 2019 01:05:10 +0000 (20:05 -0500)] 
bpo-39022, bpo-38594: Sync with importlib_metadata 1.3 (GH-17568)

* bpo-39022, bpo-38594: Sync with importlib_metadata 1.3 including improved docs for custom finders and better serialization support in EntryPoints.

* 📜🤖 Added by blurb_it.

* Correct module reference

5 years agobpo-39012: Fix RC version suffix for nuget release files (GH-17564)
Steve Dower [Tue, 10 Dec 2019 23:19:03 +0000 (15:19 -0800)] 
bpo-39012: Fix RC version suffix for nuget release files (GH-17564)

5 years agobpo-38614: Use test.support.INTERNET_TIMEOUT constant (GH-17565)
Victor Stinner [Tue, 10 Dec 2019 21:09:23 +0000 (22:09 +0100)] 
bpo-38614: Use test.support.INTERNET_TIMEOUT constant (GH-17565)

Replace hardcoded timeout constants in tests with INTERNET_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.

5 years agobpo-38614: Use test.support.LONG_TIMEOUT constant (GH-17562)
Victor Stinner [Tue, 10 Dec 2019 20:12:26 +0000 (21:12 +0100)] 
bpo-38614: Use test.support.LONG_TIMEOUT constant (GH-17562)

Replace hardcoded timeout constants in tests with LONG_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.

LONG_TIMEOUT is 5 minutes by default, but it can be longer depending
on --timeout command line option.

5 years agobpo-38614: Use default join_thread() timeout in tests (GH-17559)
Victor Stinner [Tue, 10 Dec 2019 19:41:23 +0000 (20:41 +0100)] 
bpo-38614: Use default join_thread() timeout in tests (GH-17559)

Tests no longer pass a timeout value to join_thread() of
test.support: use the default join_thread() timeout instead
(SHORT_TIMEOUT constant of test.support).

5 years agobpo-38614: Use test.support.LOOPBACK_TIMEOUT constant (GH-17554)
Victor Stinner [Tue, 10 Dec 2019 19:32:59 +0000 (20:32 +0100)] 
bpo-38614: Use test.support.LOOPBACK_TIMEOUT constant (GH-17554)

Replace hardcoded timeout constants in tests with LOOPBACK_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.

5 years agoMinor fixes to the NEWS entries (GH-17556)
Pablo Galindo [Tue, 10 Dec 2019 16:09:58 +0000 (16:09 +0000)] 
Minor fixes to the NEWS entries (GH-17556)

5 years agobpo-39004: increment large sendfile() test timeout (GH-17552)
Giampaolo Rodola [Tue, 10 Dec 2019 09:31:06 +0000 (17:31 +0800)] 
bpo-39004: increment large sendfile() test timeout (GH-17552)

5 years agoFix Windows release builds (GH-17550)
Steve Dower [Tue, 10 Dec 2019 05:10:22 +0000 (21:10 -0800)] 
Fix Windows release builds (GH-17550)

5 years agoClean imports in test_unparse (GH-17545)
Pablo Galindo [Tue, 10 Dec 2019 00:37:47 +0000 (00:37 +0000)] 
Clean imports in test_unparse (GH-17545)

5 years agobpo-38943: Fix IDLE autocomplete window not always appearing (GH-17416)
JohnnyNajera [Tue, 10 Dec 2019 00:30:01 +0000 (02:30 +0200)] 
bpo-38943: Fix IDLE autocomplete window not always appearing (GH-17416)

This has happened on some versions of Ubuntu.

5 years agobpo-38944: Escape key now closes IDLE completion windows. (GH-17419)
JohnnyNajera [Mon, 9 Dec 2019 23:22:16 +0000 (01:22 +0200)] 
bpo-38944: Escape key now closes IDLE completion windows. (GH-17419)

5 years agobpo-39009: Fix typo in test__locale (GH-17544)
Tim Gates [Mon, 9 Dec 2019 22:16:01 +0000 (09:16 +1100)] 
bpo-39009: Fix typo in test__locale (GH-17544)

5 years agobpo-27961: Replace PY_ULLONG_MAX with ULLONG_MAX (GH-17539)
Sergey Fedoseev [Mon, 9 Dec 2019 20:22:19 +0000 (01:22 +0500)] 
bpo-27961: Replace PY_ULLONG_MAX with ULLONG_MAX (GH-17539)

5 years agobpo-39007: Add auditing events to functions in winreg (GH-17541)
Steve Dower [Mon, 9 Dec 2019 19:18:12 +0000 (11:18 -0800)] 
bpo-39007: Add auditing events to functions in winreg (GH-17541)

Also allows winreg.CloseKey() to accept same types as other functions.

5 years agobpo-39008: Require Py_ssize_t for PySys_Audit formats rather than raise a deprecation...
Steve Dower [Mon, 9 Dec 2019 19:05:39 +0000 (11:05 -0800)] 
bpo-39008: Require Py_ssize_t for PySys_Audit formats rather than raise a deprecation warning (GH-17540)

5 years agobpo-39003: Make sure all test are the same when using -R in test_unparse (GH-17537)
Pablo Galindo [Mon, 9 Dec 2019 17:57:50 +0000 (17:57 +0000)] 
bpo-39003: Make sure all test are the same when using -R in test_unparse (GH-17537)

5 years agobpo-39002: Fix simple typo: tranlation -> translation (GH-17517)
Tim Gates [Mon, 9 Dec 2019 17:42:17 +0000 (04:42 +1100)] 
bpo-39002: Fix simple typo: tranlation -> translation (GH-17517)

5 years agoFix APPX registry key generation (GH-17489)
Steve Dower [Mon, 9 Dec 2019 16:43:13 +0000 (08:43 -0800)] 
Fix APPX registry key generation (GH-17489)

5 years agobpo-20443: No longer make sys.argv[0] absolute for script (GH-17534)
Victor Stinner [Mon, 9 Dec 2019 16:34:02 +0000 (17:34 +0100)] 
bpo-20443: No longer make sys.argv[0] absolute for script (GH-17534)

In Python 3.9.0a1, sys.argv[0] was made an asolute path if a filename
was specified on the command line. Revert this change, since most
users expect sys.argv to be unmodified.

5 years agobpo-34776: Fix dataclasses to support __future__ "annotations" mode (#9518)
Yury Selivanov [Mon, 9 Dec 2019 14:54:20 +0000 (09:54 -0500)] 
bpo-34776: Fix dataclasses to support __future__ "annotations" mode (#9518)

5 years agobpo-38992: avoid fsum test failure from constant-folding (GH-17513)
Mark Dickinson [Mon, 9 Dec 2019 14:36:34 +0000 (08:36 -0600)] 
bpo-38992: avoid fsum test failure from constant-folding (GH-17513)

* Issue 38992: avoid fsum test failure

* Add NEWS entry

5 years agobpo-37228: Fix loop.create_datagram_endpoint()'s usage of SO_REUSEADDR (#17311)
Kyle Stanley [Mon, 9 Dec 2019 14:21:10 +0000 (09:21 -0500)] 
bpo-37228: Fix loop.create_datagram_endpoint()'s usage of SO_REUSEADDR (#17311)

5 years agobpo-39006: Fix asyncio when the ssl module is missing (GH-17524)
Victor Stinner [Mon, 9 Dec 2019 14:02:03 +0000 (15:02 +0100)] 
bpo-39006: Fix asyncio when the ssl module is missing (GH-17524)

Fix asyncio when the ssl module is missing: only check for
ssl.SSLSocket instance if the ssl module is available.

5 years agobpo-38916: array.array: remove fromstring() and tostring() (GH-17487)
Victor Stinner [Mon, 9 Dec 2019 13:09:14 +0000 (14:09 +0100)] 
bpo-38916: array.array: remove fromstring() and tostring() (GH-17487)

array.array: Remove tostring() and fromstring() methods.  They were
aliases to tobytes() and frombytes(), deprecated since Python 3.2.

5 years agobpo-38547: Fix test_pty if the process is the session leader (GH-17519)
Victor Stinner [Mon, 9 Dec 2019 10:57:05 +0000 (11:57 +0100)] 
bpo-38547: Fix test_pty if the process is the session leader (GH-17519)

Fix test_pty: if the process is the session leader, closing the
master file descriptor raises a SIGHUP signal: simply ignore SIGHUP
when running the tests.

5 years agobpo-38673: dont switch to ps2 if the line starts with comment or whitespace (GH-17421)
Batuhan Taşkaya [Mon, 9 Dec 2019 04:36:27 +0000 (07:36 +0300)] 
bpo-38673: dont switch to ps2 if the line starts with comment or whitespace (GH-17421)

https://bugs.python.org/issue38673

5 years agobpo-38708: email: Fix a potential IndexError when parsing Message-ID (GH-17504)
Abhilash Raj [Mon, 9 Dec 2019 01:37:34 +0000 (17:37 -0800)] 
bpo-38708: email: Fix a potential IndexError when parsing Message-ID (GH-17504)

Fix a potential IndexError when passing an empty value to the message-id
parser. Instead, HeaderParseError should be raised.

5 years agobpo-38698: Add a new InvalidMessageID token to email header parser. (GH-17503)
Abhilash Raj [Mon, 9 Dec 2019 01:35:38 +0000 (17:35 -0800)] 
bpo-38698: Add a new InvalidMessageID token to email header parser. (GH-17503)

This adds a new InvalidMessageID token to the email header parser which can be
used to represent invalid message-id headers in the parse tree.

5 years agobpo-38858: Fix ref leak in pycore_interp_init() (GH-17512)
Victor Stinner [Sun, 8 Dec 2019 20:55:58 +0000 (21:55 +0100)] 
bpo-38858: Fix ref leak in pycore_interp_init() (GH-17512)

bpo-38858, bpo-38997: _PySys_Create() returns a strong reference to
the sys module: Py_DECREF() is needed when we are done with the
module.

5 years agobpo-38994: Implement __class_getitem__ for PathLike (GH-17498)
Batuhan Taşkaya [Sun, 8 Dec 2019 20:31:15 +0000 (23:31 +0300)] 
bpo-38994: Implement __class_getitem__ for PathLike (GH-17498)

https://bugs.python.org/issue38994

5 years agobpo-38669: patch.object now raises a helpful error (GH17034)
Elena Oat [Sun, 8 Dec 2019 20:14:38 +0000 (12:14 -0800)] 
bpo-38669: patch.object now raises a helpful error (GH17034)

This means a clearer message is now shown when patch.object is called with two string arguments, rather than a class and a string argument.

5 years agobpo-38979: fix ContextVar "__class_getitem__" method (GH-17497)
AMIR [Sun, 8 Dec 2019 11:35:59 +0000 (15:05 +0330)] 
bpo-38979: fix ContextVar "__class_getitem__" method (GH-17497)

now contextvars.ContextVar "__class_getitem__" method returns ContextVar class, not None.

https://bugs.python.org/issue38979

Automerge-Triggered-By: @asvetlov
5 years agobpo-38852: Set thread stack size to 8 Mb for debug builds on android platforms (GH...
xdegaye [Sun, 8 Dec 2019 07:40:14 +0000 (08:40 +0100)] 
bpo-38852: Set thread stack size to 8 Mb for debug builds on android platforms (GH-17337)