]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agogh-93671: Avoid exponential backtracking in deeply nested sequence patterns in match...
Pablo Galindo Salgado [Fri, 10 Jun 2022 15:56:45 +0000 (16:56 +0100)] 
gh-93671: Avoid exponential backtracking in deeply nested sequence patterns in match statements (GH-93680)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agogh-93466: Document PyType_Spec doesn't accept repeated slot IDs; raise where this...
Petr Viktorin [Fri, 10 Jun 2022 13:55:09 +0000 (15:55 +0200)] 
gh-93466: Document PyType_Spec doesn't accept repeated slot IDs; raise where this was problematic (GH-93471)

3 years agogh-93491: Add support tier detection to configure (GH-93492)
Christian Heimes [Fri, 10 Jun 2022 13:25:33 +0000 (15:25 +0200)] 
gh-93491: Add support tier detection to configure (GH-93492)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-90763: Modernise xx template module initialisation (#93078)
Erlend Egeberg Aasland [Fri, 10 Jun 2022 10:39:02 +0000 (12:39 +0200)] 
gh-90763: Modernise xx template module initialisation (#93078)

Use C APIs such as PyModule_AddType instead of PyModule_AddObject.
Also remove incorrect module decrefs if module fails to initialise.

3 years agogh-92434: Silence compiler warning in Modules/_sqlite/connection.c on 32-bit systems...
neonene [Fri, 10 Jun 2022 08:10:04 +0000 (17:10 +0900)] 
gh-92434: Silence compiler warning in Modules/_sqlite/connection.c on 32-bit systems (#93090)

3 years agogh-90549: Fix leak of global named resources using multiprocessing spawn (#30617)
Leo Trol [Thu, 9 Jun 2022 16:55:12 +0000 (00:55 +0800)] 
gh-90549: Fix leak of global named resources using multiprocessing spawn (#30617)

Co-authored-by: XD Trol <milestonejxd@gmail.com>
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
3 years agogh-90473: Skip get_config_h() tests on WASI (GH-93645)
Christian Heimes [Thu, 9 Jun 2022 16:08:03 +0000 (18:08 +0200)] 
gh-90473: Skip get_config_h() tests on WASI (GH-93645)

3 years agogh-90473: disable user site packages on WASI/Emscripten (GH-93633)
Christian Heimes [Thu, 9 Jun 2022 15:45:29 +0000 (17:45 +0200)] 
gh-90473: disable user site packages on WASI/Emscripten (GH-93633)

3 years agoImprove logging documentation with example and additional cookbook re… (GH-93644)
Vinay Sajip [Thu, 9 Jun 2022 15:43:35 +0000 (16:43 +0100)] 
Improve logging documentation with example and additional cookbook re… (GH-93644)

3 years agobpo-45383: Get metaclass from bases in PyType_From* (GH-28748)
Sebastian Berg [Thu, 9 Jun 2022 15:11:08 +0000 (08:11 -0700)] 
bpo-45383: Get metaclass from bases in PyType_From* (GH-28748)

This checks the bases of of a type created using the FromSpec
API to inherit the bases metaclasses.  The metaclass's alloc
function will be called as is done in `tp_new` for classes
created in Python.

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agoDoc: Update references and examples of old, unsupported OSes and uarches (GH-92791)
CAM Gerlach [Thu, 9 Jun 2022 13:55:06 +0000 (08:55 -0500)] 
Doc: Update references and examples of old, unsupported OSes and uarches (GH-92791)

3 years agogh-90494: Reject 6th element of the __reduce__() tuple (GH-93609)
Serhiy Storchaka [Thu, 9 Jun 2022 07:12:43 +0000 (10:12 +0300)] 
gh-90494: Reject 6th element of the __reduce__() tuple (GH-93609)

copy.copy() and copy.deepcopy() now always raise a TypeError if
__reduce__() returns a tuple with length 6 instead of silently ignore
the 6th item or produce incorrect result.

3 years agogh-93616: Fix env changed issue in test_modulefinder (GH-93617)
Christian Heimes [Thu, 9 Jun 2022 06:32:35 +0000 (08:32 +0200)] 
gh-93616: Fix env changed issue in test_modulefinder (GH-93617)

3 years agogh-79096: Fix/improve http cookiejar tests (GH-93614)
Christian Heimes [Wed, 8 Jun 2022 21:51:04 +0000 (23:51 +0200)] 
gh-79096: Fix/improve http cookiejar tests (GH-93614)

Fixup of GH-93463:
- remove stray print
- use proper way to check file mode
- add working chmod decorator

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agogh-90473: Define HOSTRUNNER for WASI (GH-93606)
Christian Heimes [Wed, 8 Jun 2022 18:18:46 +0000 (20:18 +0200)] 
gh-90473: Define HOSTRUNNER for WASI (GH-93606)

3 years agogh-93575: Use correct way to calculate PyUnicode struct sizes (GH-93602)
Christian Heimes [Wed, 8 Jun 2022 18:18:08 +0000 (20:18 +0200)] 
gh-93575: Use correct way to calculate PyUnicode struct sizes (GH-93602)

* gh-93575: Use correct way to calculate PyUnicode struct sizes

* Add comment to keep test_sys and test_unicode in sync

* Fix case code < 256

3 years agogh-93180: Update os.copy_file_range() documentation (#93182)
Illia Volochii [Wed, 8 Jun 2022 15:49:13 +0000 (18:49 +0300)] 
gh-93180: Update os.copy_file_range() documentation (#93182)

3 years agogh-87961: Remove outdated notes from functions that aren't in the Limited API (GH...
Petr Viktorin [Wed, 8 Jun 2022 15:03:07 +0000 (17:03 +0200)] 
gh-87961: Remove outdated notes from functions that aren't in the Limited API (GH-93581)

* Remove outdated notes from functions that aren't in the Limited API

Nowadays everything that *is* in the Limited API has a note added
automatically.
These notes could mislead people to think that these functions
could never be added to the limited API. Remove them.

* Also remove forgotten note on tp_vectorcall_offset not being finalized

3 years agogh-93584: Make all install+tests targets depends on all (GH-93589)
Christian Heimes [Wed, 8 Jun 2022 13:16:20 +0000 (15:16 +0200)] 
gh-93584: Make all install+tests targets depends on all (GH-93589)

All install targets use the "all" target as synchronization point to
prevent race conditions with PGO builds. PGO builds use recursive make,
which can lead to two parallel `./python setup.py build` processes that
step on each others toes.

"test" targets now correctly compile PGO build in a clean repo.

3 years agogh-93421: Update sqlite3 cursor.rowcount only after SQLITE_DONE (#93526)
Erlend Egeberg Aasland [Wed, 8 Jun 2022 10:43:54 +0000 (12:43 +0200)] 
gh-93421: Update sqlite3 cursor.rowcount only after SQLITE_DONE (#93526)

3 years agoGH-93521: For dataclasses, filter out `__weakref__` slot if present in bases (GH...
Bluenix [Wed, 8 Jun 2022 00:53:08 +0000 (02:53 +0200)] 
GH-93521: For dataclasses, filter out `__weakref__` slot if present in bases (GH-93535)

3 years agogh-93370: Deprecate sqlite3.version and sqlite3.version_info (#93482)
Kalyan [Tue, 7 Jun 2022 23:34:50 +0000 (05:04 +0530)] 
gh-93370: Deprecate sqlite3.version and sqlite3.version_info (#93482)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
3 years agoGH-93481: Suppress expected deprecation warning in test_pyclbr (GH-93483)
Irit Katriel [Tue, 7 Jun 2022 20:35:11 +0000 (21:35 +0100)] 
GH-93481: Suppress expected deprecation warning in test_pyclbr (GH-93483)

3 years agoFix `PurePath.relative_to` links in the pathlib documentation. (GH-93268)
jacksonriley [Tue, 7 Jun 2022 18:54:16 +0000 (19:54 +0100)] 
Fix `PurePath.relative_to` links in the pathlib documentation. (GH-93268)

These are currently broken as they refer to :meth:`Path.relative_to` rather than :meth:`PurePath.relative_to`, and `relative_to` is a method on `PurePath`.

3 years agogh-92592: Allow logging filters to return a LogRecord. (GH-92591)
Adrian Garcia Badaracco [Tue, 7 Jun 2022 15:53:57 +0000 (08:53 -0700)] 
gh-92592: Allow logging filters to return a LogRecord. (GH-92591)

3 years agogh-84461: Emscripten's faccessat() does not accept flags (GHß92353)
Christian Heimes [Tue, 7 Jun 2022 12:04:27 +0000 (14:04 +0200)] 
gh-84461: Emscripten's faccessat() does not accept flags (GHß92353)

3 years agogh-93162: test_config_queue_handler requires threading (GH-93572)
Christian Heimes [Tue, 7 Jun 2022 10:34:08 +0000 (12:34 +0200)] 
gh-93162: test_config_queue_handler requires threading (GH-93572)

3 years agoFix MSVC compiler warnings in ceval.c (#93569)
Ken Jin [Tue, 7 Jun 2022 10:32:42 +0000 (18:32 +0800)] 
Fix MSVC compiler warnings in ceval.c (#93569)

3 years agoShrink the LOAD_METHOD cache by one codeunit. (#93537)
Mark Shannon [Tue, 7 Jun 2022 09:28:53 +0000 (10:28 +0100)] 
Shrink the LOAD_METHOD cache by one codeunit. (#93537)

3 years agogh-88831: In docs for asyncio.create_task, explain why strong references to tasks...
Andreas Grommek [Tue, 7 Jun 2022 08:56:09 +0000 (10:56 +0200)] 
gh-88831: In docs for asyncio.create_task, explain why strong references to tasks are needed (GH-93258)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agogh-57539: Increase calendar test coverage (GH-93468)
Hugo van Kemenade [Tue, 7 Jun 2022 08:44:29 +0000 (11:44 +0300)] 
gh-57539: Increase calendar test coverage (GH-93468)

Co-authored-by: Sean Fleming
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agogh-93162: Add ability to configure QueueHandler/QueueListener together (GH-93269)
Vinay Sajip [Tue, 7 Jun 2022 08:20:35 +0000 (09:20 +0100)] 
gh-93162: Add ability to configure QueueHandler/QueueListener together (GH-93269)

Also, provide getHandlerByName() and getHandlerNames() APIs.

Closes #93162.

3 years agogh-79096: Protect cookie file created by {LWP,Mozilla}CookieJar.save() (GH-93463)
Pascal Wittmann [Tue, 7 Jun 2022 08:11:03 +0000 (10:11 +0200)] 
gh-79096: Protect cookie file created by {LWP,Mozilla}CookieJar.save() (GH-93463)

Note: This change is not effective on Microsoft Windows.

Cookies can store sensitive information and should therefore be protected
against unauthorized third parties. This is also described in issue #79096.

The filesystem permissions are currently set to 644, everyone can read the
file. This commit changes the permissions to 600, only the creater of the file
can read and modify it. This improves security, because it reduces the attack
surface. Now the attacker needs control of the user that created the cookie or
a ways to circumvent the filesystems permissions.

This change is backwards incompatible. Systems that rely on world-readable
cookies will breake. However, one could argue that those are misconfigured in
the first place.

3 years agogh-86986: bump min sphinx version to 3.2 (GH-93337)
Davide Rizzo [Tue, 7 Jun 2022 08:05:38 +0000 (10:05 +0200)] 
gh-86986: bump min sphinx version to 3.2 (GH-93337)

3 years agoGrammar fix to socket error string (GH-93523)
Evorage [Tue, 7 Jun 2022 07:43:16 +0000 (08:43 +0100)] 
Grammar fix to socket error string (GH-93523)

3 years agoFix contributor name in WhatsNew 3.11 (GH-93556)
Samodya Abeysiriwardane [Tue, 7 Jun 2022 04:05:00 +0000 (23:05 -0500)] 
Fix contributor name in WhatsNew 3.11 (GH-93556)

3 years agobpo-42658: Use LCMapStringEx in ntpath.normcase to match OS behaviour for case-foldin...
AN Long [Mon, 6 Jun 2022 23:47:27 +0000 (07:47 +0800)] 
bpo-42658: Use LCMapStringEx in ntpath.normcase to match OS behaviour for case-folding (GH-32010)

3 years agogh-89018: Improve documentation of `sqlite3` exceptions (#27645)
Erlend Egeberg Aasland [Mon, 6 Jun 2022 21:47:15 +0000 (23:47 +0200)] 
gh-89018: Improve documentation of `sqlite3` exceptions (#27645)

- Order exceptions as in PEP 249
- Reword descriptions, so they match the current behaviour

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years agogh-93475: Expose FICLONE and FICLONERANGE constants in fcntl (#93478)
Illia Volochii [Mon, 6 Jun 2022 21:21:58 +0000 (00:21 +0300)] 
gh-93475: Expose FICLONE and FICLONERANGE constants in fcntl (#93478)

3 years ago[docs] fix some asyncio.Barrier.wait docs grammar (GH-93552)
Thomas Grainger [Mon, 6 Jun 2022 18:10:42 +0000 (19:10 +0100)] 
[docs] fix some asyncio.Barrier.wait docs grammar (GH-93552)

3 years agoRemove action=None kwarg from Barrier docs (GH-93538)
Thomas Grainger [Mon, 6 Jun 2022 17:28:05 +0000 (18:28 +0100)] 
Remove action=None kwarg from Barrier docs (GH-93538)

3 years agogh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)
Christian Heimes [Mon, 6 Jun 2022 17:24:11 +0000 (19:24 +0200)] 
gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)

WASI does not have the ``chmod(2)`` syscall yet.

3 years agogh-83728: Add hmac.new default parameter deprecation (GH-91939)
Stanley [Mon, 6 Jun 2022 16:47:40 +0000 (09:47 -0700)] 
gh-83728: Add hmac.new default parameter deprecation (GH-91939)

3 years agoasyncio.Barrier docs: Fix typo (#93371)
Omer Katz [Mon, 6 Jun 2022 14:39:51 +0000 (17:39 +0300)] 
asyncio.Barrier docs: Fix typo (#93371)

taks -> tasks

3 years agogh-90473: Skip POSIX tests that don't apply to WASI (GH-93536)
Christian Heimes [Mon, 6 Jun 2022 14:31:59 +0000 (16:31 +0200)] 
gh-90473: Skip POSIX tests that don't apply to WASI (GH-93536)

3 years agoGH-92308 What's New: list pending removals in 3.13 and future versions (#92562)
Hugo van Kemenade [Mon, 6 Jun 2022 10:12:03 +0000 (13:12 +0300)] 
GH-92308 What's New: list pending removals in 3.13 and future versions (#92562)

3 years agogh-90473: WASI requires proper open(2) flags (GH-93529)
Christian Heimes [Mon, 6 Jun 2022 10:08:07 +0000 (12:08 +0200)] 
gh-90473: WASI requires proper open(2) flags (GH-93529)

3 years agogh-93247: Fix assert function in asyncio locks test (#93248)
Cyker Way [Mon, 6 Jun 2022 01:19:18 +0000 (21:19 -0400)] 
gh-93247: Fix assert function in asyncio locks test (#93248)

3 years agoDocument LOAD_FAST_CHECK opcode (#93498)
Dennis Sweeney [Sun, 5 Jun 2022 15:24:09 +0000 (11:24 -0400)] 
Document LOAD_FAST_CHECK opcode (#93498)

3 years agogh-89973: Fix re.error in the fnmatch module. (GH-93072)
Serhiy Storchaka [Sun, 5 Jun 2022 08:46:29 +0000 (11:46 +0300)] 
gh-89973: Fix re.error in the fnmatch module. (GH-93072)

Character ranges with upper bound less that lower bound (e.g. [c-a])
are now interpreted as empty ranges, for compatibility with other glob
pattern implementations. Previously it was re.error.

3 years agogh-90473: wasmtime does not support absolute symlinks (GH-93490)
Christian Heimes [Sun, 5 Jun 2022 07:59:47 +0000 (09:59 +0200)] 
gh-90473: wasmtime does not support absolute symlinks (GH-93490)

3 years agogh-93442: Add test for _Py_CAST(nullptr). (gh-93505)
Neil Schemenauer [Sun, 5 Jun 2022 03:53:16 +0000 (20:53 -0700)] 
gh-93442: Add test for _Py_CAST(nullptr). (gh-93505)

3 years agogh-93442: Make C++ version of _Py_CAST work with 0/NULL. (#93500)
Neil Schemenauer [Sun, 5 Jun 2022 01:49:39 +0000 (18:49 -0700)] 
gh-93442: Make C++ version of _Py_CAST work with 0/NULL. (#93500)

Add C++ overloads for _Py_CAST_impl() to handle 0/NULL.  This will allow
C++ extensions that pass 0 or NULL to macros using _Py_CAST() to
continue to compile.  Without this, you get an error like:

    invalid ‘static_cast’ from type ‘int’ to type ‘_object*’

The modern way to use a NULL value in C++ is to use nullptr.  However,
we want to not break extensions that do things the old way.

Co-authored-by: serge-sans-paille
3 years ago[doc] Correct a grammatical error in a docstring. (GH-93441)
Colin Delahunty [Sat, 4 Jun 2022 16:42:08 +0000 (12:42 -0400)] 
[doc] Correct a grammatical error in a docstring. (GH-93441)

3 years agoFix missing word in sys.float_info docstring (GH-93489)
Mark Dickinson [Sat, 4 Jun 2022 16:28:14 +0000 (17:28 +0100)] 
Fix missing word in sys.float_info docstring (GH-93489)

3 years agogh-92886: Fix test that fails when running with `-O` in `test_imaplib.py` (#93237)
jackh-ncl [Sat, 4 Jun 2022 03:15:58 +0000 (04:15 +0100)] 
gh-92886: Fix test that fails when running with `-O` in `test_imaplib.py` (#93237)

3 years agonetrc: Remove unused "import shlex" (#93311)
Ulises Ojeda [Sat, 4 Jun 2022 03:14:58 +0000 (05:14 +0200)] 
netrc: Remove unused "import shlex" (#93311)

3 years agoGH-93444: remove redundant fields from basicblock: b_nofallthrough, b_exit, b_return...
Irit Katriel [Fri, 3 Jun 2022 21:43:22 +0000 (22:43 +0100)] 
GH-93444: remove redundant fields from basicblock: b_nofallthrough, b_exit, b_return (GH-93445)

3 years agogh-93156 - fix negative indexing into absolute `pathlib.PurePath().parents` (GH-93273)
Barney Gale [Fri, 3 Jun 2022 21:33:20 +0000 (22:33 +0100)] 
gh-93156 - fix negative indexing into absolute `pathlib.PurePath().parents` (GH-93273)

When a `_PathParents` object has a drive or a root, the length of the
object is *one less* than than the length of `self._parts`, which resulted
in an off-by-one error when `path.parents[-n]` was fed through to
`self._parts[:-n - 1]`. In particular, `path.parents[-1]` was a malformed
path object with spooky properties.

This is addressed by adding `len(self)` to negative indices.

3 years agogh-84461: Skip dtrace/network tests that are enabled by -u all (GH-93473)
Christian Heimes [Fri, 3 Jun 2022 20:14:31 +0000 (22:14 +0200)] 
gh-84461: Skip dtrace/network tests that are enabled by -u all (GH-93473)

3 years agogh-93382: Cache result of `PyCode_GetCode` in codeobject (GH-93383)
Ken Jin [Fri, 3 Jun 2022 16:41:18 +0000 (00:41 +0800)] 
gh-93382: Cache result of `PyCode_GetCode` in codeobject (GH-93383)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
3 years agotest.pythoninfo: Fix typo, Py_REF_DEBUG => Py_TRACE_REFS (#93467)
Victor Stinner [Fri, 3 Jun 2022 13:46:41 +0000 (15:46 +0200)] 
test.pythoninfo: Fix typo, Py_REF_DEBUG => Py_TRACE_REFS (#93467)

3 years agogh-93433: Fix dis doc example output (GH-93434)
Ken Jin [Fri, 3 Jun 2022 10:02:58 +0000 (18:02 +0800)] 
gh-93433: Fix dis doc example output (GH-93434)

3 years agogh-68966: Make mailcap refuse to match unsafe filenames/types/params (GH-91993)
Petr Viktorin [Fri, 3 Jun 2022 09:43:35 +0000 (11:43 +0200)] 
gh-68966: Make mailcap refuse to match unsafe filenames/types/params (GH-91993)

3 years agoremove redundant argument to log_helper (GH-93440)
Pieter Eendebak [Fri, 3 Jun 2022 07:40:05 +0000 (09:40 +0200)] 
remove redundant argument to log_helper (GH-93440)

3 years agogh-92932: dis._unpack_opargs should handle EXTENDED_ARG_QUICK (gh-92945)
Dong-hee Na [Fri, 3 Jun 2022 02:29:27 +0000 (11:29 +0900)] 
gh-92932: dis._unpack_opargs should handle EXTENDED_ARG_QUICK (gh-92945)

3 years agogh-91320: Fix more old-style cast warnings in C++ (#93285)
Victor Stinner [Thu, 2 Jun 2022 22:59:57 +0000 (00:59 +0200)] 
gh-91320: Fix more old-style cast warnings in C++ (#93285)

Use _PyObject_CAST() in the public C API to fix C++ compiler
warnings: "use of old-style cast" (clang -Wold-style-cast).

3 years agogh-90473: Skip and document more failing tests on WASI (GH-93436)
Christian Heimes [Thu, 2 Jun 2022 22:44:48 +0000 (00:44 +0200)] 
gh-90473: Skip and document more failing tests on WASI (GH-93436)

- Mark more ``umask()`` cases
- ``dup()`` is not supported
- ``/dev/null`` is not available
- document missing features
- mark more modules as not available

3 years agogh-93356: Lay out exception handling code at end of code unit (GH-92769)
Irit Katriel [Thu, 2 Jun 2022 13:13:43 +0000 (14:13 +0100)] 
gh-93356: Lay out exception handling code at end of code unit  (GH-92769)

3 years agogh-84461: Skip new async logging tests on Emscripten (GH-93427)
Christian Heimes [Thu, 2 Jun 2022 07:35:06 +0000 (09:35 +0200)] 
gh-84461: Skip new async logging tests on Emscripten (GH-93427)

3 years agogh-93418: Fix an assert when an f-string expression is followed by an '=', but no...
Eric V. Smith [Wed, 1 Jun 2022 23:20:06 +0000 (19:20 -0400)] 
gh-93418: Fix an assert when an f-string expression is followed by an '=', but no closing brace. (gh-93419)

3 years agogh-92597: Improve error message for AST nodes with invalid ranges (GH-93398) 93420/head
Pablo Galindo Salgado [Wed, 1 Jun 2022 12:51:17 +0000 (13:51 +0100)] 
gh-92597: Improve error message for AST nodes with invalid ranges (GH-93398)

3 years agogh-90300: split --help output into separate options (#30331)
Éric [Wed, 1 Jun 2022 09:50:01 +0000 (05:50 -0400)] 
gh-90300: split --help output into separate options (#30331)

Make --help output shorter and add new help options.

--help-env, --help-xoptions and --help-all command-line options are
added to complement --help.

3 years ago[doc] Improve discoverability of links between logging documents. (GH-93405)
Vinay Sajip [Wed, 1 Jun 2022 07:29:13 +0000 (08:29 +0100)] 
[doc] Improve discoverability of links between logging documents. (GH-93405)

3 years agoRemove the execution bit to some socket-related files. (#93368)
Ezio Melotti [Wed, 1 Jun 2022 07:11:46 +0000 (09:11 +0200)] 
Remove the execution bit to some socket-related files. (#93368)

3 years agogh-93372: Fix typo in os.rename documentation (GH-93401)
Wei-Ting Yang [Wed, 1 Jun 2022 06:54:31 +0000 (14:54 +0800)] 
gh-93372: Fix typo in os.rename documentation (GH-93401)

3 years ago📝 Make sure the phrase "constant-time compare" actually appears in the docs (GH-93396)
Noah Kantrowitz [Wed, 1 Jun 2022 01:35:28 +0000 (18:35 -0700)] 
📝 Make sure the phrase "constant-time compare" actually appears in the docs (GH-93396)

This is purely for SEO as this is the actual generic name for this kind of method and it currently does not appear in a Google search for "python constant time compare". Not creating an issue or setting this up for backports as its trivial (I think) and not a functional change.

3 years agogh-92597: Ensure that AST nodes without explicit end positions can be compiled (GH...
Pablo Galindo Salgado [Tue, 31 May 2022 23:00:47 +0000 (00:00 +0100)] 
gh-92597: Ensure that AST nodes without explicit end positions can be compiled (GH-93359)

3 years agogh-93391: fix typo in `array` docs (GH-93392)
ynfle [Tue, 31 May 2022 21:52:03 +0000 (00:52 +0300)] 
gh-93391: fix typo in `array` docs (GH-93392)

Fixes #93391

Automerge-Triggered-By: GH:rhettinger
3 years ago[doc] logging.rst - Change link to point directly to the Google Group. (GH-93390)
Moshe Kaplan [Tue, 31 May 2022 21:46:52 +0000 (17:46 -0400)] 
[doc] logging.rst - Change link to point directly to the Google Group. (GH-93390)

3 years agogh-93143: Avoid NULL check in LOAD_FAST based on analysis in the compiler (GH-93144)
Dennis Sweeney [Tue, 31 May 2022 20:32:30 +0000 (16:32 -0400)] 
gh-93143: Avoid NULL check in LOAD_FAST based on analysis in the compiler (GH-93144)

3 years agogh-69093: Fix Setup.local.in rule for _sqlite3 (GH-93380)
Christian Heimes [Tue, 31 May 2022 19:23:49 +0000 (21:23 +0200)] 
gh-69093: Fix Setup.local.in rule for _sqlite3 (GH-93380)

3 years agogh-93283: Improve error message for f-string with invalid conversion character (GH...
Serhiy Storchaka [Tue, 31 May 2022 17:38:29 +0000 (20:38 +0300)] 
gh-93283: Improve error message for f-string with invalid conversion character (GH-93349)

3 years agoRemove VOC reference (93333)
Carl Bordum Hansen [Tue, 31 May 2022 17:29:21 +0000 (19:29 +0200)] 
Remove VOC reference (93333)

VOC has been archived by the BeeWare project, and they are instead
embedding CPython, rather than transpiling to Java bytecode.

3 years agoGH-93354: Use exponential backoff to avoid excessive specialization attempts. (GH...
Mark Shannon [Tue, 31 May 2022 10:58:26 +0000 (11:58 +0100)] 
GH-93354: Use exponential backoff to avoid excessive specialization attempts. (GH-93355)

3 years agoGH-93312: Add os.PIDFD_NONBLOCK flag (#93313)
Kumar Aditya [Tue, 31 May 2022 10:51:29 +0000 (16:21 +0530)] 
GH-93312: Add os.PIDFD_NONBLOCK flag (#93313)

3 years agogh-93345: Fix a crash in substitution of nested TypeVar after TypeVarTuple (GH-93346)
Serhiy Storchaka [Tue, 31 May 2022 05:46:16 +0000 (08:46 +0300)] 
gh-93345: Fix a crash in substitution of nested TypeVar after TypeVarTuple (GH-93346)

For example: tuple[*Ts, list[T]][int, str, bool]

3 years agogh-93351: Ensure the position information in AST nodes created by the parser is alway...
Pablo Galindo Salgado [Mon, 30 May 2022 18:30:15 +0000 (14:30 -0400)] 
gh-93351: Ensure the position information in AST nodes created by the parser is always consistent (GH-93352)

3 years agobpo-42272: fix misleading warning filter message/module docs (#23172)
Kevin Locke [Mon, 30 May 2022 01:43:32 +0000 (01:43 +0000)] 
bpo-42272: fix misleading warning filter message/module docs (#23172)

* bpo-42272: improve message/module warning filter docs

"The Warnings Filter" section of the warnings module documentation
describes the message and module filters as "a string containing a
regular expression".  While that is true when they are arguments to the
filterwarnings function, it is not true when they appear in -W or
$PYTHONWARNINGS where they are matched literally (after stripping any
starting/ending whitespace).  Update the documentation to note when they
are matched literally.  Also clarify that module matches the
"fully-qualified module name", rather than "module name" which is
ambiguous.

skip news (since this is a doc fix)

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
* bpo-42272: remove bad submodule warning filter doc

The `error:::mymodule[.*]` example in the "Describing Warning Filters"
section of the warnings module documentation does not behave as the
comment describes.  Since the module portion of the filter string is
interpreted literally, it would match a module with a fully-qualified
name that is literally `mymodule[.*]`.

Unfortunately, there is not a way to match '"module" and any subpackages
of "mymodule"' as documented, since the module part of a filter string
is matched literally.  Instead, update the filter and comment to match
only "mymodule".

skip news (since this is a doc fix)

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
* bpo-42272: add warning filter doc changes to NEWS

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
3 years agoFix typo in Lib/idlelib/idle_test/test_parenmatch.py (GH-93332)
luzpaz [Mon, 30 May 2022 01:41:59 +0000 (21:41 -0400)] 
Fix typo in Lib/idlelib/idle_test/test_parenmatch.py (GH-93332)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agogh-93244: Document Py_PRINT_RAW in PyObject_Print() comment (93245)
Will Hawkins [Sun, 29 May 2022 17:18:52 +0000 (13:18 -0400)] 
gh-93244: Document Py_PRINT_RAW in PyObject_Print() comment (93245)

3 years agogh-93008: refactor compiler functions that add instructions to take only a basicblock...
Irit Katriel [Sun, 29 May 2022 16:13:29 +0000 (17:13 +0100)] 
gh-93008: refactor compiler functions that add instructions to take only a basicblock* (not the whole compiler) (GH-93009)

3 years agobpo-41287: Handle `doc` argument of `property.__init__` in subclasses (#23205)
Sergei Izmailov [Sun, 29 May 2022 03:25:51 +0000 (06:25 +0300)] 
bpo-41287: Handle `doc` argument of `property.__init__` in subclasses (#23205)

Fixes #85459

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agogh-92240 : Include release dates for "What's New In Python 3.X" (#92937)
georgically [Sun, 29 May 2022 03:24:35 +0000 (10:24 +0700)] 
gh-92240 : Include release dates for "What's New In Python 3.X" (#92937)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 years agoRevert "gh-84508: Add mapping files for Korean and Japanese. (gh-93309)" (#93320)
Dong-hee Na [Sun, 29 May 2022 00:49:19 +0000 (09:49 +0900)] 
Revert "gh-84508: Add mapping files for Korean and Japanese. (gh-93309)" (#93320)

This reverts commit dec1e9346d82fa4a4761389c81d36ef9d01f332b.

3 years agogh-92727: Add example of named group in doc for re.Match.__getitem__ (#92730)
Baptiste Mispelon [Sat, 28 May 2022 18:11:08 +0000 (20:11 +0200)] 
gh-92727: Add example of named group in doc for re.Match.__getitem__ (#92730)

3 years agogh-92839: fixed typo in _bisectmodule.c (line 131) (#92849)
oda-gitso [Sat, 28 May 2022 18:08:06 +0000 (01:08 +0700)] 
gh-92839: fixed typo in _bisectmodule.c (line 131) (#92849)

3 years agogh-84508: Add mapping files for Korean and Japanese. (gh-93309)
Dong-hee Na [Sat, 28 May 2022 03:32:00 +0000 (12:32 +0900)] 
gh-84508: Add mapping files for Korean and Japanese. (gh-93309)

3 years agobpo-40514: Drop EXPERIMENTAL_ISOLATED_SUBINTERPRETERS (gh-93185)
Eric Snow [Fri, 27 May 2022 23:38:01 +0000 (17:38 -0600)] 
bpo-40514: Drop EXPERIMENTAL_ISOLATED_SUBINTERPRETERS (gh-93185)

This was added for bpo-40514 (gh-84694) to test out a per-interpreter GIL. However, it has since proven unnecessary to keep the experiment in the repo. (It can be done as a branch in a fork like normal.) So here we are removing:

* the configure option
* the macro
* the code enabled by the macro

3 years agogh-93297: Make asyncio task groups prevent child tasks from being GCed (#93299)
Yury Selivanov [Fri, 27 May 2022 22:20:21 +0000 (15:20 -0700)] 
gh-93297: Make asyncio task groups prevent child tasks from being GCed (#93299)