]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agogh-90005: Port readline and curses to PY_STDLIB_MOD (GH-94452)
Christian Heimes [Wed, 6 Jul 2022 09:56:25 +0000 (11:56 +0200)] 
gh-90005: Port readline and curses to PY_STDLIB_MOD (GH-94452)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-94438: in frameobject's mark_stacks switch, the PUSH_EXC_INFO and POP_EXCEPT cases...
Irit Katriel [Wed, 6 Jul 2022 06:15:59 +0000 (07:15 +0100)] 
gh-94438: in frameobject's mark_stacks switch, the PUSH_EXC_INFO and POP_EXCEPT cases are no longer reachable (GH-94582)

3 years agogh-94510: Raise on re-entrant calls to sys.setprofile and sys.settrace (GH-94511)
Pablo Galindo Salgado [Tue, 5 Jul 2022 18:18:47 +0000 (19:18 +0100)] 
gh-94510: Raise on re-entrant calls to sys.setprofile and sys.settrace (GH-94511)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agogh-91330: Tests and docs for dataclass descriptor-typed fields (GH-94424)
Erik De Bonte [Tue, 5 Jul 2022 18:09:41 +0000 (11:09 -0700)] 
gh-91330: Tests and docs for dataclass descriptor-typed fields (GH-94424)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agogh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from...
Pablo Galindo Salgado [Tue, 5 Jul 2022 16:39:21 +0000 (17:39 +0100)] 
gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin (#94386)

* gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* nitty nit

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agogh-90355: Add isolated flag if currently isolated (GH-92857)
Carter Dodd [Tue, 5 Jul 2022 15:23:44 +0000 (10:23 -0500)] 
gh-90355: Add isolated flag if currently isolated (GH-92857)

Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agogh-92897: Ensure `venv --copies` respects source build property of the creating inter...
Jeremy Kloth [Tue, 5 Jul 2022 15:08:20 +0000 (10:08 -0500)] 
gh-92897: Ensure `venv --copies` respects source build property of the creating interpreter (GH-92899)

3 years agoDocs: Convert PEP 630 (Isolating Extension Modules) to a HOWTO (GH-94489)
Petr Viktorin [Tue, 5 Jul 2022 14:37:28 +0000 (16:37 +0200)] 
Docs: Convert PEP 630 (Isolating Extension Modules) to a HOWTO (GH-94489)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years agobpo-46755: Don't log stack info twice in QueueHandler (GH-31355)
Erik Montnemery [Tue, 5 Jul 2022 14:23:12 +0000 (16:23 +0200)] 
bpo-46755: Don't log stack info twice in QueueHandler (GH-31355)

3 years agogh-94485: Set line number of module's RESUME instruction to 0, as specified by PEP...
Irit Katriel [Tue, 5 Jul 2022 12:38:44 +0000 (13:38 +0100)] 
gh-94485: Set line number of module's RESUME instruction to 0, as specified by PEP 626 (GH-94552)

Co-authored-by: Mark Shannon <mark@hotpy.org>
3 years agogh-84753: Clarify change made to `inspect` functions (#94554)
Łukasz Langa [Tue, 5 Jul 2022 12:14:19 +0000 (14:14 +0200)] 
gh-84753: Clarify change made to `inspect` functions (#94554)

3 years agogh-94379: Remove zipimport find_loader() and find_module() methods (#94380)
Victor Stinner [Tue, 5 Jul 2022 10:11:42 +0000 (12:11 +0200)] 
gh-94379: Remove zipimport find_loader() and find_module() methods (#94380)

zipimport: Remove find_loader() and find_module() methods, deprecated
in Python 3.10: use the find_spec() method instead. See PEP 451 for
the rationale.

3 years agoDocs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551)
Ned Batchelder [Tue, 5 Jul 2022 09:16:10 +0000 (05:16 -0400)] 
Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551)

Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021

3 years agogh-94538: Fix Argument Clinic output to custom file (#94539)
Erlend Egeberg Aasland [Tue, 5 Jul 2022 09:06:04 +0000 (11:06 +0200)] 
gh-94538: Fix Argument Clinic output to custom file (#94539)

3 years agogh-93626: Set the release for `__future__.annotations` to `None` (GH-93628)
KotlinIsland [Tue, 5 Jul 2022 08:46:39 +0000 (18:46 +1000)] 
gh-93626: Set the release for `__future__.annotations` to `None` (GH-93628)

Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
3 years agogh-93939: Add script to check extension modules (#94545)
Christian Heimes [Tue, 5 Jul 2022 07:25:45 +0000 (09:25 +0200)] 
gh-93939: Add script to check extension modules (#94545)

Add script ``Tools/scripts/check_modules.py`` to check and validate builtin
and shared extension modules. The script also handles ``Modules/Setup`` and
will eventually replace ``setup.py``.

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-94383: Remove ElementTree.Element.copy() method (#94384)
Victor Stinner [Mon, 4 Jul 2022 13:51:01 +0000 (15:51 +0200)] 
gh-94383: Remove ElementTree.Element.copy() method (#94384)

xml.etree: Remove the ElementTree.Element.copy() method of the pure
Python implementation, deprecated in Python 3.10, use the copy.copy()
function instead. The C implementation of xml.etree has no copy()
method, only a __copy__() method.

3 years agogh-94352: shlex.split() no longer accepts None (#94353)
Victor Stinner [Mon, 4 Jul 2022 13:29:19 +0000 (15:29 +0200)] 
gh-94352: shlex.split() no longer accepts None (#94353)

shlex.split(): Passing None for s argument now raises an exception,
rather than reading sys.stdin. The feature was deprecated in Python
3.9.

3 years agogh-94512: Fix forced arg format in AC-processed multiprocessing (GH-94517)
Oleg Iarygin [Mon, 4 Jul 2022 13:11:11 +0000 (16:11 +0300)] 
gh-94512: Fix forced arg format in AC-processed multiprocessing (GH-94517)

3 years agogh-94512: Fix forced arg format in AC-processed winreg (GH-94513)
Oleg Iarygin [Mon, 4 Jul 2022 13:10:10 +0000 (16:10 +0300)] 
gh-94512: Fix forced arg format in AC-processed winreg (GH-94513)

3 years agogh-94512: Fix forced arg format in AC-processed msvcrtmodule (GH-94514)
Oleg Iarygin [Mon, 4 Jul 2022 13:09:34 +0000 (16:09 +0300)] 
gh-94512: Fix forced arg format in AC-processed msvcrtmodule (GH-94514)

3 years agoUpdate logging documentation: change cross-reference and add webapp r… (GH-94540)
Vinay Sajip [Mon, 4 Jul 2022 05:06:43 +0000 (06:06 +0100)] 
Update logging documentation: change cross-reference and add webapp r… (GH-94540)

3 years agogh-93963: Officially deprecate abcs and warn about their usage. (GH-93965)
Jason R. Coombs [Sun, 3 Jul 2022 19:17:27 +0000 (15:17 -0400)] 
gh-93963: Officially deprecate abcs and warn about their usage. (GH-93965)

Fixes #93963

Automerge-Triggered-By: GH:jaraco
3 years agogh-92869: ctypes: Add c_time_t (#92870)
Thomas Perl [Sun, 3 Jul 2022 18:58:02 +0000 (20:58 +0200)] 
gh-92869: ctypes: Add c_time_t (#92870)

Adds `ctypes.c_time_t` to represent the C `time_t` type accurately as its size varies.

Primarily-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
3 years agoIDLE doc: Tweek RESTART and Windows console start (#94530)
Terry Jan Reedy [Sun, 3 Jul 2022 16:56:44 +0000 (12:56 -0400)] 
IDLE doc: Tweek RESTART and Windows console start (#94530)

3 years agogh-93096: Remove `python -m base64 -t` (gh-94230)
Oleg Iarygin [Sat, 2 Jul 2022 06:53:43 +0000 (09:53 +0300)] 
gh-93096: Remove `python -m base64 -t` (gh-94230)

3 years agoDoc: fix sqlite3 blob reference anchor (#94505)
Erlend Egeberg Aasland [Sat, 2 Jul 2022 06:35:48 +0000 (08:35 +0200)] 
Doc: fix sqlite3 blob reference anchor (#94505)

3 years agogh-94393: Remove unneeded module state from _json (#94394)
Erlend Egeberg Aasland [Sat, 2 Jul 2022 06:24:19 +0000 (08:24 +0200)] 
gh-94393: Remove unneeded module state from _json (#94394)

3 years agogh-93096: Remove `python -m codecs` (gh-94233)
Oleg Iarygin [Sat, 2 Jul 2022 05:45:31 +0000 (08:45 +0300)] 
gh-93096: Remove `python -m codecs` (gh-94233)

3 years agogh-90005: Port _dbm module to PY_STDLIB_MOD (GH-94433)
Christian Heimes [Fri, 1 Jul 2022 19:48:38 +0000 (21:48 +0200)] 
gh-90005: Port _dbm module to PY_STDLIB_MOD (GH-94433)

3 years agogh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416)
Sam Ezeh [Fri, 1 Jul 2022 16:21:27 +0000 (17:21 +0100)] 
gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416)

3 years agoUpdate code sample when importing modules in queue doc (GH-94244)
Mariatta Wijaya [Fri, 1 Jul 2022 15:51:46 +0000 (08:51 -0700)] 
Update code sample when importing modules in queue doc (GH-94244)

In the queue documentation, the code snippet shows the import to be not PEP 8 compliant.

Since people typically copy-paste from such code samples, I think it's important to show best-practices here.

3 years agogh-75372: Specify major version in README for installation (GH-92759)
Stanley [Fri, 1 Jul 2022 15:18:07 +0000 (08:18 -0700)] 
gh-75372: Specify major version in README for installation (GH-92759)

3 years agogh-94216: add pseudo instructions to the dis/opcodes modules (GH-94241)
Irit Katriel [Fri, 1 Jul 2022 14:33:35 +0000 (15:33 +0100)] 
gh-94216: add pseudo instructions to the dis/opcodes modules (GH-94241)

3 years agoGH-94438: Account for NULLs on evaluation stack when jumping lines. (GH-94444)
Mark Shannon [Fri, 1 Jul 2022 13:01:14 +0000 (14:01 +0100)] 
GH-94438: Account for NULLs on evaluation stack when jumping lines. (GH-94444)

3 years agoRemove pr trigger from project-updater GHA. (#94483)
Ezio Melotti [Fri, 1 Jul 2022 11:06:09 +0000 (13:06 +0200)] 
Remove pr trigger from project-updater GHA. (#94483)

3 years agoGH-94262: Don't create frame objects for frames that aren't yet complete. (GH-94371)
Mark Shannon [Fri, 1 Jul 2022 10:08:20 +0000 (11:08 +0100)] 
GH-94262: Don't create frame objects for frames that aren't yet complete. (GH-94371)

3 years agogh-84461: Tool/wasm/python.html: Add subresource integrity hashes (#93953)
Petr Viktorin [Fri, 1 Jul 2022 09:54:30 +0000 (11:54 +0200)] 
gh-84461: Tool/wasm/python.html: Add subresource integrity hashes (#93953)

3 years agogh-84461: Improve WebAssembly in-browser demo (#91879)
Trey Hunner [Fri, 1 Jul 2022 09:52:58 +0000 (02:52 -0700)] 
gh-84461: Improve WebAssembly in-browser demo (#91879)

* Buffer standard input line-by-line

* Add non-root .editorconfig for JS & HTML indent

* Add support for clearing REPL with CTRL+L

* Support unicode in stdout and stderr

* Remove \r\n normalization

* Note that local .editorconfig file extends root

* Only normalize lone \r characters (convert to \n)

* Skip non-printable characters in buffered input

* Fix Safari bug (regex lookbehind not supported)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agoAdd a workflow to add issues/PRs to projects. (#94447)
Ezio Melotti [Fri, 1 Jul 2022 08:33:10 +0000 (10:33 +0200)] 
Add a workflow to add issues/PRs to projects. (#94447)

* Add a workflow to add issues/PRs to projects.

* Apply suggestions from code review

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
3 years agogh-90005-ffi: Fix building _ctypes without pkg-config (GH-94451)
Christian Heimes [Fri, 1 Jul 2022 07:23:41 +0000 (09:23 +0200)] 
gh-90005-ffi: Fix building _ctypes without pkg-config (GH-94451)

The fallback path did not set LIBFFI_LIBS variable to link with ``-lffi``.

3 years agomultiprocessing.spawn doc: Capitalize the p in "Python" (gh-94462)
Mariatta Wijaya [Thu, 30 Jun 2022 17:23:04 +0000 (10:23 -0700)] 
multiprocessing.spawn doc: Capitalize the p in "Python" (gh-94462)

3 years agoGH-94398: TaskGroup: Fail create_task() during shutdown (GH-94400)
Guido van Rossum [Thu, 30 Jun 2022 17:10:46 +0000 (10:10 -0700)] 
GH-94398: TaskGroup: Fail create_task() during shutdown (GH-94400)

Once the task group is shutting down, it should not be possible to create a new task.
Here "shutting down" means `self._aborting` is set, indicating that at least one task
has failed and we have cancelled all others.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agogh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (#94050)
Mehdi ABAAKOUK [Thu, 30 Jun 2022 17:08:38 +0000 (19:08 +0200)] 
gh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (#94050)

The inspect version was not working with unittest.mock.AsyncMock.

The fix introduces special-casing of AsyncMock in
`inspect.iscoroutinefunction` equivalent to the one
performed in `asyncio.iscoroutinefunction`.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agoxml.dom.minidom docs: fix typo (#93437)
Jean-Christophe Helary [Thu, 30 Jun 2022 17:06:42 +0000 (02:06 +0900)] 
xml.dom.minidom docs: fix typo (#93437)

3 years agoGH-90908: Document asyncio.TaskGroup (GH-94359)
Guido van Rossum [Thu, 30 Jun 2022 16:16:22 +0000 (09:16 -0700)] 
GH-90908: Document asyncio.TaskGroup (GH-94359)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
3 years agogh-93491: Fix PEP 11 tier detection for FreeBSD (GH-94441)
Christian Heimes [Thu, 30 Jun 2022 16:04:10 +0000 (18:04 +0200)] 
gh-93491: Fix PEP 11 tier detection for FreeBSD (GH-94441)

3 years agogh-91719: Reload opcode on unknown error so that C can optimize the dispatching in...
neonene [Thu, 30 Jun 2022 15:38:29 +0000 (00:38 +0900)] 
gh-91719: Reload opcode on unknown error so that C can optimize the dispatching in ceval.c (#94364)

3 years agogh-89038: [doc] update dis.findlinestarts documentation for changes related to PEP...
Irit Katriel [Thu, 30 Jun 2022 14:57:35 +0000 (15:57 +0100)] 
gh-89038: [doc] update dis.findlinestarts documentation for changes related to PEP-626 (GH-94247)

3 years agoGH-94329: Don't raise on excessive stack consumption (GH-94421)
Mark Shannon [Thu, 30 Jun 2022 14:27:14 +0000 (15:27 +0100)] 
GH-94329: Don't raise on excessive stack consumption (GH-94421)

3 years agoDelete DOS-only PC/testpy.py (GH-94419)
Oleg Iarygin [Thu, 30 Jun 2022 13:17:35 +0000 (16:17 +0300)] 
Delete DOS-only PC/testpy.py (GH-94419)

3 years agogh-94332: make it safe to call assemble_free when assemble_init has not been called...
Irit Katriel [Thu, 30 Jun 2022 11:26:29 +0000 (12:26 +0100)] 
gh-94332: make it safe to call assemble_free when assemble_init has not been called (GH-94389)

3 years agogh-92336: linecache.getline should not raise exceptions on decoding errors (GH-94410)
Irit Katriel [Thu, 30 Jun 2022 09:18:18 +0000 (10:18 +0100)] 
gh-92336: linecache.getline should not raise exceptions on decoding errors (GH-94410)

3 years agobpo-92336: [doc] clarify that the dfile is read by the traceback display code (GH...
Irit Katriel [Wed, 29 Jun 2022 19:24:43 +0000 (20:24 +0100)] 
bpo-92336: [doc] clarify that the dfile is read by the traceback display code (GH-94409)

3 years agoDocs: Update SyntaxError message in REPL example for list comprehension (GH-93901)
Cheryl Sabella [Wed, 29 Jun 2022 17:06:51 +0000 (13:06 -0400)] 
Docs: Update SyntaxError message in REPL example for list comprehension (GH-93901)

3 years agogh-94401: Remove unneeded bz2 module state (#94402)
Erlend Egeberg Aasland [Wed, 29 Jun 2022 15:51:36 +0000 (17:51 +0200)] 
gh-94401: Remove unneeded bz2 module state (#94402)

3 years agoDelete unused PC/empty.c (GH-94418)
Oleg Iarygin [Wed, 29 Jun 2022 14:58:56 +0000 (17:58 +0300)] 
Delete unused PC/empty.c (GH-94418)

3 years agogh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (GH-94413)
Christian Heimes [Wed, 29 Jun 2022 13:44:14 +0000 (15:44 +0200)] 
gh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (GH-94413)

``PY_STDMODULE_CFLAGS`` may contain include directories with system
headers. This can break compiling with built-in libmpdec.

3 years agogh-94401: Remove unneeded overlapped module state (#94403)
Erlend Egeberg Aasland [Wed, 29 Jun 2022 10:24:51 +0000 (12:24 +0200)] 
gh-94401: Remove unneeded overlapped module state (#94403)

3 years agogh-86404: [doc] Two 'make suspicious' false positives. (GH-94407)
Julien Palard [Wed, 29 Jun 2022 08:18:54 +0000 (10:18 +0200)] 
gh-86404: [doc] Two 'make suspicious' false positives. (GH-94407)

3 years agogh-94026: Buffer regrtest worker stdout in temporary file (GH-94253)
Christian Heimes [Wed, 29 Jun 2022 08:05:16 +0000 (10:05 +0200)] 
gh-94026: Buffer regrtest worker stdout in temporary file (GH-94253)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agogh-94404: makesetup: use correct CFLAGS and macOS workaround (GH-94405)
Christian Heimes [Wed, 29 Jun 2022 07:46:39 +0000 (09:46 +0200)] 
gh-94404: makesetup: use correct CFLAGS and macOS workaround (GH-94405)

``makesetup`` now works around an issue with sed on macOS and uses correct
CFLAGS for object files that end up in a shared extension.

3 years agogh-94395: Remove unneeded module state from mmap (#94396)
Erlend Egeberg Aasland [Wed, 29 Jun 2022 05:20:53 +0000 (07:20 +0200)] 
gh-94395: Remove unneeded module state from mmap (#94396)

3 years agoFix typos in comments (#94305)
yutotnh [Tue, 28 Jun 2022 14:28:21 +0000 (23:28 +0900)] 
Fix typos in comments (#94305)

3 years agogh-88116: Avoid undefined behavior when decoding varints in code objects (#94375)
Pablo Galindo Salgado [Tue, 28 Jun 2022 13:24:54 +0000 (14:24 +0100)] 
gh-88116: Avoid undefined behavior when decoding varints in code objects (#94375)

3 years agogh-93939: Create and install scripts in Makefile (GH-94324)
Christian Heimes [Tue, 28 Jun 2022 12:56:06 +0000 (14:56 +0200)] 
gh-93939: Create and install scripts in Makefile (GH-94324)

Scripts for 2to3, idle, and pydoc are now created and installed by make.

3 years agogh-94172: Remove ssl.PROTOCOL_SSLv2 dead code (#94312)
Victor Stinner [Tue, 28 Jun 2022 11:57:08 +0000 (13:57 +0200)] 
gh-94172: Remove ssl.PROTOCOL_SSLv2 dead code (#94312)

Remove dead code related to ssl.PROTOCOL_SSLv2. ssl.PROTOCOL_SSLv2
was already removed in Python 3.10.

In test_ssl, @requires_tls_version('SSLv2') always returned False.

Extract of the removed code: "OpenSSL has removed support for SSLv2".

3 years agogh-61585: Clarify import scope in modules tutorial (GH-93455)
Stanley [Tue, 28 Jun 2022 10:15:44 +0000 (03:15 -0700)] 
gh-61585: Clarify import scope in modules tutorial (GH-93455)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
3 years agogh-94018: Remove trailing spaces in _sanitize_windows_name (GH-94040)
Robin Plumey [Tue, 28 Jun 2022 10:09:22 +0000 (12:09 +0200)] 
gh-94018: Remove trailing spaces in _sanitize_windows_name (GH-94040)

Closes #94018.

Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
3 years agoAdd docs for decorated object and field specifier params (GH-94354)
Erik De Bonte [Tue, 28 Jun 2022 09:58:35 +0000 (02:58 -0700)] 
Add docs for decorated object and field specifier params (GH-94354)

3 years agogh-87995: Make MappingProxyType hashable (GH-94252)
Serhiy Storchaka [Tue, 28 Jun 2022 09:54:58 +0000 (12:54 +0300)] 
gh-87995: Make MappingProxyType hashable (GH-94252)

3 years agogh-94199: Remove hashlib.pbkdf2_hmac() Python implementation (GH-94200)
Victor Stinner [Tue, 28 Jun 2022 09:51:13 +0000 (11:51 +0200)] 
gh-94199: Remove hashlib.pbkdf2_hmac() Python implementation (GH-94200)

Remove the pure Python implementation of hashlib.pbkdf2_hmac(),
deprecated in Python 3.10. Python 3.10 and newer requires OpenSSL
1.1.1 or newer (PEP 644), this OpenSSL version provides a C
implementation of pbkdf2_hmac() which is faster.

3 years agoGeneralize build_msi GitHub action (GH-94201)
Oleg Iarygin [Tue, 28 Jun 2022 09:33:23 +0000 (12:33 +0300)] 
Generalize build_msi GitHub action (GH-94201)

3 years agogh-86404: [doc] Fix missing space in idle documentation. (GH-94366)
Julien Palard [Tue, 28 Jun 2022 07:44:52 +0000 (09:44 +0200)] 
gh-86404: [doc] Fix missing space in idle documentation. (GH-94366)

This should have been spotted by sphinx-lint, tracked here:

https://github.com/sphinx-contrib/sphinx-lint/issues/39

3 years agogh-94208: Add more TLS version/protocol checks for FreeBSD (GH-94347)
Christian Heimes [Tue, 28 Jun 2022 07:33:06 +0000 (09:33 +0200)] 
gh-94208: Add more TLS version/protocol checks for FreeBSD (GH-94347)

Three test cases were failing on FreeBSD with latest OpenSSL.

3 years agoGH-89988: Fix memory leak in pickle.Pickler dispatch_table lookup (GH-94298)
Kumar Aditya [Tue, 28 Jun 2022 07:01:43 +0000 (12:31 +0530)] 
GH-89988: Fix memory leak in pickle.Pickler dispatch_table lookup (GH-94298)

3 years agogh-82006: IDLE doc improvements (#94349)
Terry Jan Reedy [Mon, 27 Jun 2022 22:59:26 +0000 (18:59 -0400)] 
gh-82006: IDLE doc improvements (#94349)

0. Update text start and stop conditions.
1. Title-case sections but not subsections.
2. Edit Shell Window sections: title, execute, restart.

3 years agogh-87347: Fix test_pymem_new() reference leak (#94330)
Victor Stinner [Mon, 27 Jun 2022 21:46:22 +0000 (23:46 +0200)] 
gh-87347: Fix test_pymem_new() reference leak (#94330)

Delete the allocated object with Py_DECREF() rather than
PyObject_Free().

Rename also test_pymem_new() to test_pyobject_new().

3 years agogh-94280: Require Python 3.9 or higher to compile CPython on Windows (GH-94281)
Shixian Li [Mon, 27 Jun 2022 19:48:36 +0000 (03:48 +0800)] 
gh-94280: Require Python 3.9 or higher to compile CPython on Windows (GH-94281)

3 years agogh-94315: Check for DAC override capability (GH-94316)
Christian Heimes [Mon, 27 Jun 2022 18:27:19 +0000 (20:27 +0200)] 
gh-94315: Check for DAC override capability (GH-94316)

``os.geteuid() == 0`` is not a reliable check whether the current user
has the capability to bypass permission checks. Tests now probe for DAC
override.

3 years agogh-93858: Prevent error when activating venv in nested fish instances (GH-93931)
Thomas B. Brunner [Mon, 27 Jun 2022 15:26:02 +0000 (17:26 +0200)] 
gh-93858: Prevent error when activating venv in nested fish instances (GH-93931)

3 years agogh-90473: Reduce recursion limit on WASI even further (GH-94333)
Christian Heimes [Mon, 27 Jun 2022 14:19:47 +0000 (16:19 +0200)] 
gh-90473: Reduce recursion limit on WASI even further (GH-94333)

750 fails sometimes with newer wasmtime versions. 600 is a more
conservative value.

3 years agoGH-94163: Add BINARY_SLICE and STORE_SLICE instructions. (GH-94168)
Mark Shannon [Mon, 27 Jun 2022 11:24:23 +0000 (12:24 +0100)] 
GH-94163: Add BINARY_SLICE and STORE_SLICE instructions. (GH-94168)

3 years agogh-94318: Strip trailing spaces in pydoc text output (GH-94319)
Serhiy Storchaka [Mon, 27 Jun 2022 10:33:34 +0000 (13:33 +0300)] 
gh-94318: Strip trailing spaces in pydoc text output (GH-94319)

3 years agogh-88239: Use sqlite3_stmt_busy() to determine if statements are in use (#25984)
Erlend Egeberg Aasland [Mon, 27 Jun 2022 07:58:56 +0000 (09:58 +0200)] 
gh-88239: Use sqlite3_stmt_busy() to determine if statements are in use (#25984)

3 years agogh-90005: Rename MODULE_EGG variable to MODULE_EGG_STATE (GH-94301)
Christian Heimes [Mon, 27 Jun 2022 05:52:06 +0000 (07:52 +0200)] 
gh-90005: Rename MODULE_EGG variable to MODULE_EGG_STATE (GH-94301)

It makes it easier to look for module states in sysconfig without
special casing suffixes "_CFLAGS", "_DEPS", "_LDFLAGS", "_OBJS",
and "CTYPES_MALLOC_CLOSURE".

3 years agogh-85023: [doc] clarify parameters vs arguments explanation in FAQ (GH-94282)
Arun Mani J [Sun, 26 Jun 2022 21:57:41 +0000 (03:27 +0530)] 
gh-85023: [doc] clarify parameters vs arguments explanation in FAQ (GH-94282)

3 years agogh-94192: Fix error for dictionary literals with invalid expression as value. (#94304)
wookie184 [Sun, 26 Jun 2022 18:42:47 +0000 (19:42 +0100)] 
gh-94192: Fix error for dictionary literals with invalid expression as value. (#94304)

* Fix error for dictionary literals with invalid expression as value.

* Remove trailing whitespace

3 years agogh-94214: Add venv context.lib_path and document the context (GH-94221)
Paul Moore [Sun, 26 Jun 2022 16:49:03 +0000 (17:49 +0100)] 
gh-94214: Add venv context.lib_path and document the context (GH-94221)

3 years agogh-90005: Port _ctypes to PY_STDLIB_MOD (GH-32229)
Christian Heimes [Sun, 26 Jun 2022 11:04:43 +0000 (13:04 +0200)] 
gh-90005: Port _ctypes to PY_STDLIB_MOD (GH-32229)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Automerge-Triggered-By: GH:tiran
3 years agogh-94226: Remove the locale.format() function (#94229)
Victor Stinner [Sun, 26 Jun 2022 10:41:19 +0000 (12:41 +0200)] 
gh-94226: Remove the locale.format() function (#94229)

Remove the locale.format() function, deprecated in Python
3.7: use locale.format_string() instead.

Remove TestFormatPatternArg test case: it is irrelevant for
locale.format_string() which accepts complex formats.

3 years agogh-87347: Fix PyObject_NEW() regression (#94234)
Victor Stinner [Sun, 26 Jun 2022 10:40:17 +0000 (12:40 +0200)] 
gh-87347: Fix PyObject_NEW() regression (#94234)

Don't add parenthesis around the type parameter.

Add unit tests on PyObject_NEW() and similar functions.

3 years agoGH-94254: Make _struct module types immutable (#94269)
Kumar Aditya [Sun, 26 Jun 2022 10:12:01 +0000 (15:42 +0530)] 
GH-94254: Make _struct module types immutable (#94269)

3 years agogh-93370: Drop deprecated sqlite3.version from pythoninfo.py (#94277)
Erlend Egeberg Aasland [Sun, 26 Jun 2022 10:10:28 +0000 (12:10 +0200)] 
gh-93370: Drop deprecated sqlite3.version from pythoninfo.py (#94277)

3 years ago[doc] fix typo in reference to tp_descr_get and tp_descr_set (GH-94140)
Max Bachmann [Sun, 26 Jun 2022 10:02:29 +0000 (12:02 +0200)] 
[doc] fix typo in reference to tp_descr_get and tp_descr_set (GH-94140)

3 years agogh-94172: urllib.request avoids deprecated key_file/cert_file (#94232)
Victor Stinner [Sun, 26 Jun 2022 08:43:21 +0000 (10:43 +0200)] 
gh-94172: urllib.request avoids deprecated key_file/cert_file (#94232)

The urllib.request module no longer uses the deprecated key_file and
cert_file parameter of the http.client module.

3 years agoRun Tools/scripts/reindent.py (#94225)
Victor Stinner [Sun, 26 Jun 2022 08:34:06 +0000 (10:34 +0200)] 
Run Tools/scripts/reindent.py (#94225)

Reindent files which were not properly formatted (PEP 8: 4 spaces).

Remove also some trailing spaces.

3 years agogh-83499: Fix closing file descriptors in tempfile (GH-93874)
Serhiy Storchaka [Sun, 26 Jun 2022 07:58:28 +0000 (10:58 +0300)] 
gh-83499: Fix closing file descriptors in tempfile (GH-93874)

3 years agogh-93820: Pickle enum.Flag by name (GH-93891)
Serhiy Storchaka [Sun, 26 Jun 2022 07:54:00 +0000 (10:54 +0300)] 
gh-93820: Pickle enum.Flag by name (GH-93891)

3 years agoRevert "bpo-45162: Revert "Remove many old deprecated unittest features"" (GH-92556)
Serhiy Storchaka [Sun, 26 Jun 2022 07:18:06 +0000 (10:18 +0300)] 
Revert "bpo-45162: Revert "Remove many old deprecated unittest features"" (GH-92556)

This reverts commit b50322d20337ca468f2070eedb051a16ee1eba94.