]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agobpo-39416: Document some restrictions on the default string representations of numeri...
kpinc [Wed, 21 Oct 2020 17:13:50 +0000 (12:13 -0500)] 
bpo-39416: Document some restrictions on the default string representations of numeric classes (GH-18111)

[bpo-39416](): Document string representations of the Numeric classes

This is a change to the specification of the Python language.

The idea here is to put sane minimal limits on the Python language's default
representations of its Numeric classes.  That way "Marty's Robotic Massage Parlor
and Python Interpreter" implementation of Python won't do anything too
crazy.

Some discussion in the email thread:
Subject: Documenting Python's float.__str__()
https://mail.python.org/archives/list/python-dev@python.org/thread/FV22TKT3S2Q3P7PNN6MCXI6IX3HRRNAL/

5 years agobpo-41747: Ensure all dataclass methods uses their parents' qualname (GH-22155)
Batuhan Taskaya [Wed, 21 Oct 2020 13:49:22 +0000 (16:49 +0300)] 
bpo-41747: Ensure all dataclass methods uses their parents' qualname (GH-22155)

* bpo-41747: Ensure all dataclass methods uses their parents' qualname

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agoUpdate tzdata to 2020.3 (GH-22856)
Paul Ganssle [Wed, 21 Oct 2020 13:40:43 +0000 (09:40 -0400)] 
Update tzdata to 2020.3 (GH-22856)

TBH I had forgotten that we pin this 😅, and it's been updated quite a few times since we added this.

5 years agoDoc: Fix a typo/error in the docs for cached bytecode (GH-22445)
Zackery Spytz [Wed, 21 Oct 2020 08:36:03 +0000 (02:36 -0600)] 
Doc: Fix a typo/error in the docs for cached bytecode (GH-22445)

5 years agoDoc: Do not suggest `s[::-1]` for reversed order (GH-22457)
Andre Delfino [Wed, 21 Oct 2020 08:25:07 +0000 (05:25 -0300)] 
Doc: Do not suggest `s[::-1]` for reversed order (GH-22457)

5 years agoDoc: Remove old Python version from future stmt (GH-21802)
Andre Delfino [Wed, 21 Oct 2020 05:45:13 +0000 (02:45 -0300)] 
Doc: Remove old Python version from future stmt (GH-21802)

5 years agoDoc: Do not encourage using a base class name in a derived class (GH-22177)
Andre Delfino [Wed, 21 Oct 2020 05:25:05 +0000 (02:25 -0300)] 
Doc: Do not encourage using a base class name in a derived class (GH-22177)

5 years agobpo-41902: Micro optimization for range.index if step is 1 (GH-22479)
Dong-hee Na [Wed, 21 Oct 2020 02:29:56 +0000 (11:29 +0900)] 
bpo-41902: Micro optimization for range.index if step is 1 (GH-22479)

5 years agobpo-23706: Add newline parameter to pathlib.Path.write_text (GH-22420) (GH-22420)
Максим [Wed, 21 Oct 2020 02:08:19 +0000 (05:08 +0300)] 
bpo-23706: Add newline parameter to pathlib.Path.write_text (GH-22420) (GH-22420)

* Add _newline_ parameter to `pathlib.Path.write_text()`
* Update documentation of `pathlib.Path.write_text()`
* Add test case for `pathlib.Path.write_text()` calls with _newline_ parameter passed

Automerge-Triggered-By: GH:methane
5 years agobpo-41902: Micro optimization for compute_item of range (GH-22492)
Dong-hee Na [Wed, 21 Oct 2020 01:29:14 +0000 (10:29 +0900)] 
bpo-41902: Micro optimization for compute_item of range (GH-22492)

5 years agoUpdate idlelib/help.html to current Sphinx output (GH-22833)
Terry Jan Reedy [Wed, 21 Oct 2020 00:56:01 +0000 (20:56 -0400)] 
Update idlelib/help.html to current Sphinx output (GH-22833)

idle.rst is unchanged

5 years agobpo-41586: Attempt to make the pipesize tests more robust. (GH-22839)
Gregory P. Smith [Wed, 21 Oct 2020 00:37:20 +0000 (17:37 -0700)] 
bpo-41586: Attempt to make the pipesize tests more robust. (GH-22839)

Several buildbots are failing on these, likely due to an inability to
set the pipe size to the desired test value.

5 years agobpo-42010: [docs] Clarify subscription of types (GH-22822)
kj [Tue, 20 Oct 2020 23:38:08 +0000 (07:38 +0800)] 
bpo-42010: [docs] Clarify subscription of types (GH-22822)

5 years agobpo-29981: Add examples and update index for set, dict, and generator comprehensions...
Florian Dahlitz [Tue, 20 Oct 2020 21:27:07 +0000 (23:27 +0200)] 
bpo-29981: Add examples and update index for set, dict, and generator comprehensions'(GH-20272)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
5 years agobpo-42041: Clarify how subprocess searches for the executable (GH-22715)
Paul Moore [Tue, 20 Oct 2020 20:02:24 +0000 (21:02 +0100)] 
bpo-42041: Clarify how subprocess searches for the executable (GH-22715)

Clarify in the subprocess documentation how searching for the executable to run works, noting that ``sys.executable`` is the recommended way to find the current interpreter.

5 years agoMinor tweaks to typing union objects doc (GH-22741)
Andre Delfino [Tue, 20 Oct 2020 20:00:56 +0000 (17:00 -0300)] 
Minor tweaks to typing union objects doc (GH-22741)

Automerge-Triggered-By: @merwok
5 years agobpo-41192: Add documentation of undocumented audit events (GH-21308)
Saiyang Gou [Tue, 20 Oct 2020 19:23:15 +0000 (12:23 -0700)] 
bpo-41192: Add documentation of undocumented audit events (GH-21308)

5 years agobpo-38144: Re-add accidentally removed audition for glob. (GH-22805)
Serhiy Storchaka [Tue, 20 Oct 2020 16:45:38 +0000 (19:45 +0300)] 
bpo-38144: Re-add accidentally removed audition for glob. (GH-22805)

5 years agobpo-38439: Update the Windows Store package's icons for IDLE. Artwork by Andrew Clove...
Steve Dower [Tue, 20 Oct 2020 14:54:13 +0000 (15:54 +0100)] 
bpo-38439: Update the Windows Store package's icons for IDLE. Artwork by Andrew Clover (GH-22817)

5 years agobpo-41192: Clarify the sys module's description of the auditing feature (GH-22768)
Andrew Kuchling [Tue, 20 Oct 2020 14:41:02 +0000 (10:41 -0400)] 
bpo-41192: Clarify the sys module's description of the auditing feature (GH-22768)

Co-authored-by: Éric Araujo <merwok@netwok.org>
5 years agobpo-39693: mention KeyError in tarfile extractfile documentation (GH-18639)
Andrey Doroschenko [Tue, 20 Oct 2020 14:05:01 +0000 (17:05 +0300)] 
bpo-39693: mention KeyError in tarfile extractfile documentation (GH-18639)

Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com>
5 years agobpo-38439: Add 256px IDLE icon to the .ico, drop gifs from it (GH-19648)
Miro Hrončok [Tue, 20 Oct 2020 12:21:08 +0000 (14:21 +0200)] 
bpo-38439: Add 256px IDLE icon to the .ico, drop gifs from it (GH-19648)

5 years agobpo-30612: Tweak Windows registry path syntax in the docs (GH-20281)
Zackery Spytz [Tue, 20 Oct 2020 12:01:12 +0000 (06:01 -0600)] 
bpo-30612: Tweak Windows registry path syntax in the docs (GH-20281)

5 years agobpo-38324: Fix test__locale.py Windows failures (GH-20529)
TIGirardi [Tue, 20 Oct 2020 11:39:52 +0000 (08:39 -0300)] 
bpo-38324: Fix test__locale.py Windows failures (GH-20529)

Use wide-char _W_* fields of lconv structure on Windows
Remove "ps_AF" from test__locale.known_numerics on Windows

5 years agomd5module: Fix doc strings variable names (GH-22722)
Jakub Jelen [Tue, 20 Oct 2020 09:10:43 +0000 (11:10 +0200)] 
md5module: Fix doc strings variable names (GH-22722)

5 years agoDoc: Add missing spaces after period for `posix_spawn` (GH-22730)
Tomer Cohen [Tue, 20 Oct 2020 09:08:58 +0000 (12:08 +0300)] 
Doc: Add missing spaces after period for `posix_spawn` (GH-22730)

5 years agobpo-41491: plistlib: accept hexadecimal integer values in xml plist files (GH-22764)
Ronald Oussoren [Tue, 20 Oct 2020 07:26:33 +0000 (09:26 +0200)] 
bpo-41491: plistlib: accept hexadecimal integer values in xml plist files (GH-22764)

5 years agobpo-42093: Add opcode cache for LOAD_ATTR (GH-22803)
Pablo Galindo [Tue, 20 Oct 2020 05:22:44 +0000 (06:22 +0100)] 
bpo-42093: Add opcode cache for LOAD_ATTR (GH-22803)

5 years agobpo-4356: Add key function support to the bisect module (GH-20556)
Raymond Hettinger [Tue, 20 Oct 2020 05:04:01 +0000 (22:04 -0700)] 
bpo-4356: Add key function support to the bisect module (GH-20556)

5 years agobpo-38912: fix close before connect callback in test_asyncio SSL tests (GH-22691)
Justin Turner Arthur [Tue, 20 Oct 2020 01:18:57 +0000 (20:18 -0500)] 
bpo-38912: fix close before connect callback in test_asyncio SSL tests (GH-22691)

Reduces the rate at which the ENV CHANGED failure occurs in test_asyncio SSL tests (due to unclosed transport), but does not 100% resolve it.

5 years agobpo-41586: Add pipesize parameter to subprocess & F_GETPIPE_SZ and F_SETPIPE_SZ to...
Ruben Vorderman [Mon, 19 Oct 2020 23:30:02 +0000 (01:30 +0200)] 
bpo-41586: Add pipesize parameter to subprocess & F_GETPIPE_SZ and F_SETPIPE_SZ to fcntl. (GH-21921)

* Add F_SETPIPE_SZ and F_GETPIPE_SZ to fcntl module
* Add pipesize parameter for subprocess.Popen class

This will allow the user to control the size of the pipes.
On linux the default is 64K. When a pipe is full it blocks for writing.
When a pipe is empty it blocks for reading. On processes that are
very fast this can lead to a lot of wasted CPU cycles. On a typical
Linux system the max pipe size is 1024K which is much better.
For high performance-oriented libraries such as xopen it is nice to
be able to set the pipe size.

The workaround without this feature is to use my_popen_process.stdout.fileno() in
conjuction with fcntl and 1031 (value of F_SETPIPE_SZ) to acquire this behavior.

5 years agobpo-27321 Fix email.generator.py to not replace a non-existent header. (GH-18074)
Mark Sapiro [Mon, 19 Oct 2020 22:49:19 +0000 (15:49 -0700)] 
bpo-27321 Fix email.generator.py to not replace a non-existent header. (GH-18074)

This PR replaces #1977. The reason for the replacement is two-fold.

The fix itself is different is that if the CTE header doesn't exist in the original message, it is inserted. This is important because the new CTE could be quoted-printable whereas the original is implicit 8bit.

Also the tests are different. The test_nonascii_as_string_without_cte test in #1977 doesn't actually test the issue in that it passes without the fix. The test_nonascii_as_string_without_content_type_and_cte test is improved here, and even though it doesn't fail without the fix, it is included for completeness.

Automerge-Triggered-By: @warsaw
5 years agobpo-41845: Move PyObject_GenericGetDict() back into the limited API (GH22646)
Zackery Spytz [Mon, 19 Oct 2020 22:47:37 +0000 (16:47 -0600)] 
bpo-41845: Move PyObject_GenericGetDict() back into the limited API (GH22646)

It was moved out of the limited API in 7d95e4072169911b228c9e42367afb5f17fd3db0.
This change re-enables it from 3.10, to avoid generating invalid extension modules for earlier versions.

5 years agobpo-40901: Describe what "interface name" means on Windows (GH-20694)
Jakub Stasiak [Mon, 19 Oct 2020 22:30:58 +0000 (00:30 +0200)] 
bpo-40901: Describe what "interface name" means on Windows (GH-20694)

5 years agobpo-41784: make PyUnicode_AsUTF8AndSize part of the limited API (GH-22252)
Alex Gaynor [Mon, 19 Oct 2020 22:17:50 +0000 (18:17 -0400)] 
bpo-41784: make PyUnicode_AsUTF8AndSize part of the limited API (GH-22252)

5 years agobpo-41217: Fix incorrect note in the asyncio.create_subprocess_shell() docs (GH-21360)
Zackery Spytz [Mon, 19 Oct 2020 22:08:34 +0000 (16:08 -0600)] 
bpo-41217: Fix incorrect note in the asyncio.create_subprocess_shell() docs (GH-21360)

On Windows, the default asyncio event loop is ProactorEventLoop (as of 3.8).

5 years agobpo-16396: Allow wintypes to be imported on non-Windows systems. (GH-21394)
Jason R. Coombs [Mon, 19 Oct 2020 22:06:05 +0000 (18:06 -0400)] 
bpo-16396: Allow wintypes to be imported on non-Windows systems. (GH-21394)

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-41292: Fixes dead link to cx_freeze from Windows FAQ (GH-21463)
Michel Samia [Mon, 19 Oct 2020 22:02:43 +0000 (00:02 +0200)] 
bpo-41292: Fixes dead link to cx_freeze from Windows FAQ (GH-21463)

5 years agoLink to the msvcrt module from the Windows FAQ (#22268)
abdo [Mon, 19 Oct 2020 21:46:21 +0000 (00:46 +0300)] 
Link to the msvcrt module from the Windows FAQ (#22268)

5 years agobpo-38320: Clarify that expectedFailure is satisfied by either failure or error of...
Irit Katriel [Mon, 19 Oct 2020 21:27:16 +0000 (22:27 +0100)] 
bpo-38320: Clarify that expectedFailure is satisfied by either failure or error of the test. (GH-22740)

5 years agobpo-42089: Sync with current cpython branch of importlib_metadata (GH-22775)
Barry Warsaw [Mon, 19 Oct 2020 21:14:21 +0000 (14:14 -0700)] 
bpo-42089: Sync with current cpython branch of importlib_metadata (GH-22775)

~~The only differences are in the test files.~~

Automerge-Triggered-By: @jaraco
5 years agobpo-42084: Language aware diff headers (GH-22776)
Raymond Hettinger [Mon, 19 Oct 2020 19:13:01 +0000 (12:13 -0700)] 
bpo-42084: Language aware diff headers (GH-22776)

5 years agobpo-41471: Ignore invalid prefix lengths in system proxy settings on macOS (GH-22762)
Ronald Oussoren [Mon, 19 Oct 2020 18:16:21 +0000 (20:16 +0200)] 
bpo-41471: Ignore invalid prefix lengths in system proxy settings on macOS (GH-22762)

5 years agobpo-42051: Reject XML entity declarations in plist files (#22760)
Ronald Oussoren [Mon, 19 Oct 2020 18:13:49 +0000 (20:13 +0200)] 
bpo-42051: Reject XML entity declarations in plist files (#22760)

5 years agobpo-39107: Updated Tcl and Tk to 8.6.10 in Windows installer (GH-22405)
Steve Dower [Mon, 19 Oct 2020 15:55:10 +0000 (16:55 +0100)] 
bpo-39107: Updated Tcl and Tk to 8.6.10 in Windows installer (GH-22405)

5 years agobpo-41192: Fix some broken anchors for audit event entries (#21310)
Saiyang Gou [Mon, 19 Oct 2020 14:52:42 +0000 (07:52 -0700)] 
bpo-41192: Fix some broken anchors for audit event entries (#21310)

5 years agoCorrect name of bytecode in change note. (GH-22723)
Mark Shannon [Mon, 19 Oct 2020 12:20:33 +0000 (13:20 +0100)] 
Correct name of bytecode in change note. (GH-22723)

5 years agobpo-19270: Fixed sched.scheduler.cancel to cancel correct event (GH-22729)
Bar Harel [Mon, 19 Oct 2020 07:33:43 +0000 (10:33 +0300)] 
bpo-19270: Fixed sched.scheduler.cancel to cancel correct event (GH-22729)

5 years agobpo-40484: Document compiler flags under AST module (GH-19885)
Batuhan Taskaya [Mon, 19 Oct 2020 01:14:11 +0000 (04:14 +0300)] 
bpo-40484: Document compiler flags under AST module (GH-19885)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
5 years agobpo-40492: Fix --outfile with relative path when the program changes it working dir...
Anthony Sottile [Sun, 18 Oct 2020 20:48:31 +0000 (13:48 -0700)] 
bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910)

5 years agobpo-28660: Make TextWrapper break long words on hyphens (GH-22721)
Irit Katriel [Sun, 18 Oct 2020 17:01:15 +0000 (18:01 +0100)] 
bpo-28660: Make TextWrapper break long words on hyphens (GH-22721)

5 years ago3.9 whatsnew: fix bpo issue for AST change (GH-22742)
Shantanu [Sun, 18 Oct 2020 15:39:26 +0000 (08:39 -0700)] 
3.9 whatsnew: fix bpo issue for AST change (GH-22742)

5 years agobpo-20184: Convert termios to Argument Clinic. (GH-22693)
Serhiy Storchaka [Sun, 18 Oct 2020 14:54:06 +0000 (17:54 +0300)] 
bpo-20184: Convert termios to Argument Clinic. (GH-22693)

5 years agobpo-41966: Fix pickling pure datetime.time subclasses (GH-22731)
scaramallion [Sun, 18 Oct 2020 14:49:48 +0000 (01:49 +1100)] 
bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731)

5 years agobpo-38252: Use 8-byte step to detect ASCII sequence in 64bit Windows build (GH-16334)
Ma Lin [Sun, 18 Oct 2020 14:48:38 +0000 (22:48 +0800)] 
bpo-38252: Use 8-byte step to detect ASCII sequence in 64bit Windows build (GH-16334)

5 years agobpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)
Max Bernstein [Sat, 17 Oct 2020 20:38:21 +0000 (13:38 -0700)] 
bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)

5 years ago[doc] Add mentions of PEP 613 (TypeAlias) to docs (GH-22733)
Andre Delfino [Sat, 17 Oct 2020 02:34:01 +0000 (23:34 -0300)] 
[doc] Add mentions of PEP 613 (TypeAlias) to docs (GH-22733)

5 years agobpo-40341: Remove some "discouraged solutions" in Doc/faq/programming.rst (GH-22726)
Zackery Spytz [Fri, 16 Oct 2020 18:44:17 +0000 (12:44 -0600)] 
bpo-40341: Remove some "discouraged solutions" in Doc/faq/programming.rst (GH-22726)

5 years agocloses bpo-42030: Remove legacy AIX dynload support (GH-22717)
Kevin Adler [Fri, 16 Oct 2020 18:03:28 +0000 (13:03 -0500)] 
closes bpo-42030: Remove legacy AIX dynload support (GH-22717)

Since c19c5a6, AIX builds have defaulted to using dynload_shlib over
dynload_aix when dlopen is available. This function has been available
since AIX 4.3, which went out of support in 2003, the same year the
previously referenced commit was made. It has been nearly 20 years
since a version of AIX has been supported which has not used
dynload_shlib so there's no reason to keep this legacy code around.

5 years agobpo-42011: Update documentation of logging.Filter.filter() (GH-22692)
Necdet Can Atesman [Fri, 16 Oct 2020 14:14:07 +0000 (16:14 +0200)] 
bpo-42011: Update documentation of logging.Filter.filter() (GH-22692)

5 years agobpo-41919, test_codecs: Move codecs.register calls to setUp() (GH-22513)
Hai Shi [Fri, 16 Oct 2020 08:34:15 +0000 (16:34 +0800)] 
bpo-41919, test_codecs: Move codecs.register calls to setUp() (GH-22513)

* Move the codecs' (un)register operation to testcases.
* Remove _codecs._forget_codec() and _PyCodec_Forget()

5 years agoDocument that `test.support.bytecode_helper` is new in 3.9 (GH-22618)
Saiyang Gou [Thu, 15 Oct 2020 19:06:23 +0000 (12:06 -0700)] 
Document that `test.support.bytecode_helper` is new in 3.9 (GH-22618)

5 years agobpo-1635741: Add a global module state to unicodedata (GH-22712)
Victor Stinner [Thu, 15 Oct 2020 14:22:19 +0000 (16:22 +0200)] 
bpo-1635741: Add a global module state to unicodedata (GH-22712)

Prepare unicodedata to add a state per module: start with a global
"module" state, pass it to subfunctions which access &UCD_Type. This
change also prepares the conversion of the UCD_Type static type to a
heap type.

5 years agobpo-42021: Fix possible ref leaks during _sqlite3 module init (GH-22673)
Erlend Egeberg Aasland [Thu, 15 Oct 2020 12:20:15 +0000 (14:20 +0200)] 
bpo-42021: Fix possible ref leaks during _sqlite3 module init (GH-22673)

5 years agoMinor clarification (GH-22708)
Raymond Hettinger [Thu, 15 Oct 2020 06:41:55 +0000 (23:41 -0700)] 
Minor clarification (GH-22708)

5 years agobpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466)
Kevin Adler [Thu, 15 Oct 2020 01:53:27 +0000 (20:53 -0500)] 
bpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466)

When running in a non-UTF-8 locale, if an error occurs while importing a
native Python module (say because a dependent share library is missing),
the error message string returned may contain non-ASCII code points
causing a UnicodeDecodeError.

PyUnicode_DecodeFSDefault is used for buffers which may contain
filesystem  paths. For consistency with os.strerror(),
PyUnicode_DecodeLocale is used for buffers which contain system error
messages. While the shortname parameter is always encoded in ASCII
according to PEP 489, it is left decoded using PyUnicode_FromString to
minimize the changes and since it should not affect the decoding (albeit
_potentially_ slower).

In dynload_hpux, since the error buffer contains a message generated
from a static ASCII string and the module filesystem path,
PyUnicode_DecodeFSDefault is used instead of PyUnicode_DecodeLocale as
is used elsewhere.

* bpo-41894: Fix bugs in dynload error msg handling

For both dynload_aix and dynload_hpux, properly handle the possibility
that decoding strings may return NULL and when such an error happens,
properly decrement any previously decoded strings and return early.

In addition, in dynload_aix, ensure that we pass the decoded string
*object* pathname_ob to PyErr_SetImportError instead of the original
pathname buffer.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41984: GC track all user classes (GH-22701)
Brandt Bucher [Thu, 15 Oct 2020 01:44:07 +0000 (18:44 -0700)] 
bpo-41984: GC track all user classes (GH-22701)

5 years agoUpdate timings for the final release (GH-22697)
Raymond Hettinger [Wed, 14 Oct 2020 17:04:04 +0000 (10:04 -0700)] 
Update timings for the final release (GH-22697)

5 years agobpo-39337: encodings.normalize_encoding() now ignores non-ASCII characters (GH-22219)
Hai Shi [Wed, 14 Oct 2020 15:43:31 +0000 (23:43 +0800)] 
bpo-39337: encodings.normalize_encoding() now ignores non-ASCII characters (GH-22219)

5 years agobpo-41876: Overload __repr__ for tkinter Font objects (GH-22450)
Anatoliy Platonov [Wed, 14 Oct 2020 10:02:51 +0000 (13:02 +0300)] 
bpo-41876: Overload __repr__ for tkinter Font objects (GH-22450)

5 years agocloses bpo-42029: Remove dynload_dl (GH-22687)
Kevin Adler [Wed, 14 Oct 2020 01:49:24 +0000 (20:49 -0500)] 
closes bpo-42029: Remove dynload_dl (GH-22687)

All references to this dynamic loading method were removed in b9949db,
when support for this method was dropped, but the implementation code
was not dropped (seemingly in oversight).

5 years agobpo-41939: always enable test_site.test_license_exists_at_url (GH-22688)
Ned Deily [Wed, 14 Oct 2020 01:38:56 +0000 (21:38 -0400)] 
bpo-41939: always enable test_site.test_license_exists_at_url (GH-22688)

5 years agoImprove recipe readability (GH-22685)
Raymond Hettinger [Tue, 13 Oct 2020 23:41:26 +0000 (16:41 -0700)] 
Improve recipe readability (GH-22685)

5 years agobpo-40422: Move _Py_closerange to fileutils.c (GH-22680)
Kyle Evans [Tue, 13 Oct 2020 20:04:44 +0000 (15:04 -0500)] 
bpo-40422: Move _Py_closerange to fileutils.c (GH-22680)

This API is relatively lightweight and organizationally, given that it's
used by multiple modules, it makes sense to move it to fileutils.

Requires making sure that _posixsubprocess is compiled with the appropriate
Py_BUIILD_CORE_BUILTIN macro.

5 years agoAdd recipe for a version of random() with a larger population (GH-22664)
Raymond Hettinger [Tue, 13 Oct 2020 18:54:21 +0000 (11:54 -0700)] 
Add recipe for a version of random() with a larger population (GH-22664)

5 years agobpo-41756: Export PyGen_Send and wrap it in if-defs (#22677)
Vladimir Matveev [Tue, 13 Oct 2020 17:26:51 +0000 (10:26 -0700)] 
bpo-41756: Export PyGen_Send and wrap it in if-defs (#22677)

5 years agobpo-41995: Fix null ptr deref in tracemalloc_copy_trace() (GH-22660)
Yunlongs [Tue, 13 Oct 2020 06:46:31 +0000 (14:46 +0800)] 
bpo-41995: Fix null ptr deref in tracemalloc_copy_trace() (GH-22660)

Fix a null pointer dereference in tracemalloc_copy_trace()
of _tracemalloc.

5 years agobpo-40422: Move _Py_*_SUPPRESS_IPH bits into _Py_closerange (GH-22672)
Kyle Evans [Mon, 12 Oct 2020 23:53:16 +0000 (18:53 -0500)] 
bpo-40422: Move _Py_*_SUPPRESS_IPH bits into _Py_closerange (GH-22672)

This suppression is no longer needed in os_closerange_impl, as it just
invokes the internal _Py_closerange implementation. On the other hand,
consumers of _Py_closerange may not have any other reason to suppress
invalid parameter issues, so narrow the scope to here.

5 years agoFix typo in "Context manager types" section in typing.rst (GH-22676)
Saiyang Gou [Mon, 12 Oct 2020 23:34:33 +0000 (16:34 -0700)] 
Fix typo in "Context manager types" section in typing.rst (GH-22676)

Fix typo in the "Context manager types" section in `typing.rst`.

Automerge-Triggered-By: @gvanrossum
5 years agobpo-42015: Reorder dereferencing calls in meth_dealloc, to make sure m_self is kept...
Yannick Jadoul [Mon, 12 Oct 2020 21:06:19 +0000 (23:06 +0200)] 
bpo-42015: Reorder dereferencing calls in meth_dealloc, to make sure m_self is kept alive long enough (GH-22670)

5 years agoDelete PyGen_Send (#22663)
Vladimir Matveev [Mon, 12 Oct 2020 19:10:42 +0000 (12:10 -0700)] 
Delete PyGen_Send (#22663)

5 years ago[doc] Fix typo in the graphlib docs (GH-22661)
linchiwei123 [Mon, 12 Oct 2020 14:33:34 +0000 (22:33 +0800)] 
[doc] Fix typo in the graphlib docs (GH-22661)

Automerge-Triggered-By: @pablogsal
5 years ago[doc] Remove mention of async and await as soft keywords (GH-22144)
Andre Delfino [Mon, 12 Oct 2020 13:52:30 +0000 (10:52 -0300)] 
[doc] Remove mention of async and await as soft keywords (GH-22144)

5 years agobpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655)
Victor Stinner [Sun, 11 Oct 2020 22:37:20 +0000 (00:37 +0200)] 
bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655)

The test now waits until all threads complete to avoid leaking
running threads.

Also, use regular threads rather than daemon threads.

5 years agobpo-41971: Fix test failure in test.test_tools.test_c_analyzer when mutating global...
Pablo Galindo [Sun, 11 Oct 2020 20:34:51 +0000 (21:34 +0100)] 
bpo-41971: Fix test failure in test.test_tools.test_c_analyzer when mutating global state (GH-22652)

5 years agobpo-40423: Optimization: use close_range(2) if available (GH-22651)
Kyle Evans [Sun, 11 Oct 2020 20:18:53 +0000 (15:18 -0500)] 
bpo-40423: Optimization: use close_range(2) if available (GH-22651)

close_range(2) should be preferred at all times if it's available, otherwise we'll use closefrom(2) if available with a fallback to fdwalk(3) or plain old loop over fd range in order of most efficient to least.

[note that this version does check for ENOSYS, but currently ignores all other errors]

Automerge-Triggered-By: @pablogsal
5 years agobpo-40422: create a common _Py_closerange API (GH-19754)
Kyle Evans [Sun, 11 Oct 2020 18:54:11 +0000 (13:54 -0500)] 
bpo-40422: create a common _Py_closerange API (GH-19754)

Such an API can be used both for os.closerange and subprocess. For the latter, this yields potential improvement for platforms that have fdwalk but wouldn't have used it there. This will prove even more beneficial later for platforms that have close_range(2), as the new API will prefer that over all else if it's available.

The new API is structured to look more like close_range(2), closing from [start, end] rather than the [low, high) of os.closerange().

Automerge-Triggered-By: @gpshead
5 years agoFix .. code-block :: directives in decimal.rst (GH-22571)
Anthony Sottile [Sun, 11 Oct 2020 18:26:50 +0000 (11:26 -0700)] 
Fix .. code-block :: directives in decimal.rst (GH-22571)

5 years agoFix typo in listobject.h (GH-22588)
chilaxan [Sun, 11 Oct 2020 18:21:51 +0000 (14:21 -0400)] 
Fix typo in listobject.h (GH-22588)

5 years agoFix typo (GH-22582)
Gaurav Kamath [Sun, 11 Oct 2020 18:13:43 +0000 (11:13 -0700)] 
Fix typo (GH-22582)

/af/of/s

Automerge-Triggered-By: @Mariatta
5 years agobpo-41993: Fix possible issues in remove_module() (GH-22631)
Serhiy Storchaka [Sun, 11 Oct 2020 13:51:07 +0000 (16:51 +0300)] 
bpo-41993: Fix possible issues in remove_module() (GH-22631)

* PyMapping_HasKey() is not safe because it silences all exceptions and can return incorrect result.
* Informative exceptions from PyMapping_DelItem() are overridden with RuntimeError and
  the original exception raised before calling remove_module() is lost.
* There is a race condition between PyMapping_HasKey() and PyMapping_DelItem().

5 years agobpo-42002: Clean up initialization of the sys module. (GH-22642)
Serhiy Storchaka [Sun, 11 Oct 2020 12:30:43 +0000 (15:30 +0300)] 
bpo-42002: Clean up initialization of the sys module. (GH-22642)

Makes the code clearer and make errors handling more correct.

5 years agoFix typo in typing.rst (GH-22625)
abdo [Sun, 11 Oct 2020 06:10:21 +0000 (09:10 +0300)] 
Fix typo in typing.rst (GH-22625)

5 years agobpo-38605: bump the magic number for 'annotations' future (#22630)
Batuhan Taskaya [Sat, 10 Oct 2020 22:19:46 +0000 (01:19 +0300)] 
bpo-38605: bump the magic number for 'annotations' future (#22630)

5 years agobpo-41991: Remove _PyObject_HasAttrId (GH-22629)
Serhiy Storchaka [Sat, 10 Oct 2020 19:23:42 +0000 (22:23 +0300)] 
bpo-41991: Remove _PyObject_HasAttrId (GH-22629)

It can silence arbitrary exceptions.

5 years agobpo-42000: Cleanup the AST related C-code (GH-22641)
Batuhan Taskaya [Sat, 10 Oct 2020 17:14:59 +0000 (20:14 +0300)] 
bpo-42000: Cleanup the AST related C-code (GH-22641)

- Use the proper asdl sequence when creating empty arguments
- Remove reduntant casts (thanks to new typed asdl_sequences)
- Remove MarshalPrototypeVisitor and some utilities from asdl generator
- Fix the header of `Python/ast.c` (kept from pgen times)

Automerge-Triggered-By: @pablogsal
5 years agobpo-41986: Add Py_FileSystemDefaultEncodeErrors and Py_UTF8Mode back to limited API...
Serhiy Storchaka [Sat, 10 Oct 2020 14:09:45 +0000 (17:09 +0300)] 
bpo-41986: Add Py_FileSystemDefaultEncodeErrors and Py_UTF8Mode back to limited API (GH-22621)

5 years agoFix incorrect parameter name (GH-22613)
Xie Yanbo [Sat, 10 Oct 2020 02:38:43 +0000 (10:38 +0800)] 
Fix incorrect parameter name (GH-22613)

Automerge-Triggered-By: @Mariatta
5 years agobpo-41756: Add PyIter_Send function (#22443)
Vladimir Matveev [Sat, 10 Oct 2020 00:15:15 +0000 (17:15 -0700)] 
bpo-41756: Add PyIter_Send function (#22443)

5 years agobpo-41985: Add _PyLong_FileDescriptor_Converter and AC converter for "fildes". (GH...
Serhiy Storchaka [Fri, 9 Oct 2020 20:00:45 +0000 (23:00 +0300)] 
bpo-41985: Add _PyLong_FileDescriptor_Converter and AC converter for "fildes". (GH-22620)