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

3 years agogh-93259: Validate arg to ``Distribution.from_name``. (GH-94270)
Jason R. Coombs [Sun, 26 Jun 2022 01:04:28 +0000 (21:04 -0400)] 
gh-93259: Validate arg to ``Distribution.from_name``. (GH-94270)

Syncs with importlib_metadata 4.12.0.

3 years agogh-70474: [doc] fix wording of GET_ANEXT doc (GH-94048)
Irit Katriel [Sat, 25 Jun 2022 22:44:30 +0000 (23:44 +0100)] 
gh-70474: [doc] fix wording of GET_ANEXT doc (GH-94048)

3 years agobpo-39971: Change examples to be runnable (GH-32172)
Stanley [Sat, 25 Jun 2022 20:51:26 +0000 (13:51 -0700)] 
bpo-39971: Change examples to be runnable (GH-32172)

3 years agogh-90016: Reword sqlite3 adapter/converter docs (#93095)
Erlend Egeberg Aasland [Sat, 25 Jun 2022 20:06:06 +0000 (22:06 +0200)] 
gh-90016: Reword sqlite3 adapter/converter docs (#93095)

Also add adapters and converter recipes.

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com
3 years agogh-77560: Report possible errors in restoring builtins at finalization (GH-94255)
Serhiy Storchaka [Sat, 25 Jun 2022 16:02:09 +0000 (19:02 +0300)] 
gh-77560: Report possible errors in restoring builtins at finalization (GH-94255)

Seems in the past the copy of builtins was not made in some scenarios,
and the error was silenced. Write it now to stderr, so we have a chance
to see it.

3 years agogh-94245: Test pickling and copying of typing.Tuple[()] (GH-94259)
Serhiy Storchaka [Sat, 25 Jun 2022 15:46:33 +0000 (18:46 +0300)] 
gh-94245: Test pickling and copying of typing.Tuple[()] (GH-94259)

3 years agogh-94207: Fix struct module leak (GH-94239)
Mark Dickinson [Sat, 25 Jun 2022 14:11:58 +0000 (15:11 +0100)] 
gh-94207: Fix struct module leak (GH-94239)

Make _struct.Struct a GC type

This fixes a memory leak in the _struct module, where as soon
as a Struct object is stored in the cache, there's a cycle from
the _struct module to the cache to Struct objects to the Struct
type back to the module. If _struct.Struct is not gc-tracked, that
cycle is never collected.

This PR makes _struct.Struct GC-tracked, and adds a regression test.

3 years agogh-94199: Remove ssl.match_hostname() function (#94224)
Victor Stinner [Sat, 25 Jun 2022 10:54:11 +0000 (12:54 +0200)] 
gh-94199: Remove ssl.match_hostname() function (#94224)

3 years agogh-70441: Fix test_tarfile on systems w/o bz2 (gh-2962) (#94258)
Christian Heimes [Sat, 25 Jun 2022 10:53:37 +0000 (12:53 +0200)] 
gh-70441: Fix test_tarfile on systems w/o bz2 (gh-2962) (#94258)

3 years agobpo-26253: Add compressionlevel to tarfile stream (GH-2962)
Yaron de Leeuw [Sat, 25 Jun 2022 08:43:54 +0000 (11:43 +0300)] 
bpo-26253: Add compressionlevel to tarfile stream (GH-2962)

`tarfile` already accepts a compressionlevel argument for creating
files. This patch adds the same for stream-based tarfile usage.
The default is 9, the value that was previously hard-coded.

3 years agobpo-46642: Explicitly disallow subclassing of instaces of TypeVar, ParamSpec, etc...
Gregory Beauregard [Sat, 25 Jun 2022 06:35:33 +0000 (01:35 -0500)] 
bpo-46642: Explicitly disallow subclassing of instaces of TypeVar, ParamSpec, etc (GH-31148)

The existing test covering this case passed only incidentally. We
explicitly disallow doing this and add a proper error message.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agogh-85308: Add argparse tests for reading non-ASCII arguments from file (GH-94160)
Serhiy Storchaka [Fri, 24 Jun 2022 20:09:13 +0000 (23:09 +0300)] 
gh-85308: Add argparse tests for reading non-ASCII arguments from file (GH-94160)

3 years agogh-94217: Skip import tests when _testcapi is a builtin (GH-94218)
Christian Heimes [Fri, 24 Jun 2022 18:28:04 +0000 (20:28 +0200)] 
gh-94217: Skip import tests when _testcapi is a builtin (GH-94218)

3 years agogh-93382: Sync up `co_code` changes with 3.11 (GH-94227)
Ken Jin [Fri, 24 Jun 2022 17:55:18 +0000 (01:55 +0800)] 
gh-93382: Sync up `co_code` changes with 3.11 (GH-94227)

Sync up co_code changes with 3.11 commit 852b4d4bcd12b0b6839a015a262ce976b134f6f3.

3 years agoDocs: Remove `Provides [...]` from `multiprocessing.shared_memory` description (...
Oleg Iarygin [Fri, 24 Jun 2022 17:08:45 +0000 (20:08 +0300)] 
Docs: Remove `Provides [...]` from `multiprocessing.shared_memory` description (#92761)

3 years agoIDLE: replace if statement with expression (#94228)
Terry Jan Reedy [Fri, 24 Jun 2022 16:59:49 +0000 (12:59 -0400)] 
IDLE: replace if statement with expression (#94228)

3 years agogh-94172: urllib.request avoids deprecated check_hostname (#94193)
Victor Stinner [Fri, 24 Jun 2022 15:45:28 +0000 (17:45 +0200)] 
gh-94172: urllib.request avoids deprecated check_hostname (#94193)

The urllib.request no longer uses the deprecated check_hostname
parameter of the http.client module.

Add private http.client._create_https_context() helper to http.client,
used by urllib.request.

Remove the now redundant check on check_hostname and verify_mode in
http.client: the SSLContext.check_hostname setter already implements
the check.

3 years agogh-84461: Build Emscripten with WASM BigInt support (#94219)
Christian Heimes [Fri, 24 Jun 2022 15:03:42 +0000 (17:03 +0200)] 
gh-84461: Build Emscripten with WASM BigInt support (#94219)

3 years agogh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH...
Steve Dower [Fri, 24 Jun 2022 10:48:53 +0000 (11:48 +0100)] 
gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH-94206)

3 years agogh-84461: Fix ctypes and test_ctypes on Emscripten (#94142)
Christian Heimes [Fri, 24 Jun 2022 10:40:43 +0000 (12:40 +0200)] 
gh-84461: Fix ctypes and test_ctypes on Emscripten (#94142)

- c_longlong and c_longdouble need experimental WASM bigint.
- Skip tests that need threading
- Define ``CTYPES_MAX_ARGCOUNT`` for Emscripten. libffi-emscripten 2022-06-23 supports up to 1000 args.

3 years agogh-93692: remove "build finished successfully" message from setup.py (#93693)
Erlend Egeberg Aasland [Fri, 24 Jun 2022 10:36:59 +0000 (12:36 +0200)] 
gh-93692: remove "build finished successfully" message from setup.py (#93693)

The message was only emitted when the build succeeded _and_ there were
missing modules.

3 years agogh-94196: Remove gzip.GzipFile.filename attribute (#94197)
Victor Stinner [Fri, 24 Jun 2022 09:59:32 +0000 (11:59 +0200)] 
gh-94196: Remove gzip.GzipFile.filename attribute (#94197)

gzip: Remove the filename attribute of gzip.GzipFile,
deprecated since Python 2.6, use the name attribute instead. In write
mode, the filename attribute added '.gz' file extension if it was not
present.

3 years agogh-94199: Remove ssl.RAND_pseudo_bytes() function (#94202)
Victor Stinner [Fri, 24 Jun 2022 09:05:53 +0000 (11:05 +0200)] 
gh-94199: Remove ssl.RAND_pseudo_bytes() function (#94202)

Remove the ssl.RAND_pseudo_bytes() function, deprecated in Python
3.6: use os.urandom() or ssl.RAND_bytes() instead.

3 years agogh-94169: Remove deprecated io.OpenWrapper (#94170)
Victor Stinner [Fri, 24 Jun 2022 06:46:53 +0000 (08:46 +0200)] 
gh-94169: Remove deprecated io.OpenWrapper (#94170)

Remove io.OpenWrapper and _pyio.OpenWrapper, deprecated in Python
3.10: just use :func:`open` instead. The open() (io.open()) function
is a built-in function. Since Python 3.10, _pyio.open() is also a
static method.

3 years agoAdd more tests for throwing into yield from (GH-94097)
Brandt Bucher [Thu, 23 Jun 2022 23:48:28 +0000 (16:48 -0700)] 
Add more tests for throwing into yield from (GH-94097)

3 years agoAdd ABI dump script (#94135)
Pablo Galindo Salgado [Thu, 23 Jun 2022 21:52:43 +0000 (22:52 +0100)] 
Add ABI dump script (#94135)

3 years ago[Enum] Remove automatic docstring generation (GH-94188)
Sam Ezeh [Thu, 23 Jun 2022 20:35:37 +0000 (21:35 +0100)] 
[Enum] Remove automatic docstring generation (GH-94188)

3 years agogh-91219: Add an index_pages default list and parameter to SimpleHTTPRequestHandler...
Myron Walker [Thu, 23 Jun 2022 20:30:44 +0000 (16:30 -0400)] 
gh-91219: Add an index_pages default list and parameter to SimpleHTTPRequestHandler (GH-31985)

* Add an index_pages default list to SimpleHTTPRequestHandler and an
optional constructor parameter that allows the default indexes pages
list to be overridden.  This makes it easy to set a new index page name
without having to override send_head.

3 years agogh-93771: Clarify how deepfreeze.py is run (#94150)
Guido van Rossum [Thu, 23 Jun 2022 16:31:39 +0000 (10:31 -0600)] 
gh-93771: Clarify how deepfreeze.py is run (#94150)

3 years agogh-92858: Improve error message for some suites with syntax error before ':' (#92894)
wookie184 [Thu, 23 Jun 2022 16:31:09 +0000 (17:31 +0100)] 
gh-92858: Improve error message for some suites with syntax error before ':' (#92894)

3 years ago[Enum] fix typo (GH-94158)
Ethan Furman [Thu, 23 Jun 2022 14:48:25 +0000 (07:48 -0700)] 
[Enum] fix typo (GH-94158)

3 years agoGH-91742: Fix pdb crash after jump (GH-94171)
Kumar Aditya [Thu, 23 Jun 2022 14:19:13 +0000 (19:49 +0530)] 
GH-91742: Fix pdb crash after jump  (GH-94171)

3 years agogh-89121: Keep the number of pending SQLite statements to a minimum (#30379)
Erlend Egeberg Aasland [Thu, 23 Jun 2022 10:14:05 +0000 (12:14 +0200)] 
gh-89121: Keep the number of pending SQLite statements to a minimum (#30379)

Make sure statements that have run to completion or errored are
reset and cleared off the cursor for all paths in execute() and
executemany().

3 years agogh-86404: [doc] Fix missing backtick and double target name. (#94120)
Julien Palard [Thu, 23 Jun 2022 07:12:18 +0000 (09:12 +0200)] 
gh-86404: [doc] Fix missing backtick and double target name. (#94120)

3 years agogh-84461: Fix test_sqlite for Emscripten/WASI (#94125)
Christian Heimes [Thu, 23 Jun 2022 06:31:55 +0000 (08:31 +0200)] 
gh-84461: Fix test_sqlite for Emscripten/WASI (#94125)

3 years agogh-91456: [Enum] Deprecate default auto() behavior with mixed value types (GH-91457)
Oscar R [Thu, 23 Jun 2022 06:20:24 +0000 (02:20 -0400)] 
gh-91456: [Enum] Deprecate default auto() behavior with mixed value types (GH-91457)

When used with plain Enum, auto() returns the last numeric value assigned, skipping any incompatible member values (such as strings); starting in 3.13 the default auto() for plain Enums will require all the values to be of compatible types, and will return a new value that is 1 higher than any existing value.

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
3 years agoCloses gh-94152: Update pyvideo.org URL (GH-94075)
partev [Thu, 23 Jun 2022 03:35:02 +0000 (23:35 -0400)] 
Closes gh-94152: Update pyvideo.org URL (GH-94075)

The URL is now https://pyvideo.org, which uses HTTPS and avoids a redirect.

3 years agogh-85308: argparse: Use filesystem encoding for arguments file (GH-93277)
Inada Naoki [Thu, 23 Jun 2022 03:09:57 +0000 (12:09 +0900)] 
gh-85308: argparse: Use filesystem encoding for arguments file (GH-93277)

3 years agogh-84623: Remove unused imports in idlelib (#94143)
Victor Stinner [Wed, 22 Jun 2022 22:09:48 +0000 (00:09 +0200)] 
gh-84623: Remove unused imports in idlelib (#94143)

Remove commented code in test_debugger_r.py.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agoAdd ABI dump Makefile target (#94136)
Pablo Galindo Salgado [Wed, 22 Jun 2022 21:22:27 +0000 (22:22 +0100)] 
Add ABI dump Makefile target (#94136)

3 years agogh-84623: Move imports in doctests (#94133)
Victor Stinner [Wed, 22 Jun 2022 20:24:45 +0000 (22:24 +0200)] 
gh-84623: Move imports in doctests (#94133)

Move imports in doctests to prevent false alarms in pyflakes.

3 years agogh-54781: Move Lib/tkinter/test/test_ttk/ to Lib/test/test_ttk/ (#94070)
Victor Stinner [Wed, 22 Jun 2022 20:23:37 +0000 (22:23 +0200)] 
gh-54781: Move Lib/tkinter/test/test_ttk/ to Lib/test/test_ttk/ (#94070)

* Move Lib/tkinter/test/test_tkinter/ to Lib/test/test_tkinter/.
* Move Lib/tkinter/test/test_ttk/ to Lib/test/test_ttk/.
* Add Lib/test/test_ttk/__init__.py based on test_ttk_guionly.py.
* Add Lib/test/test_tkinter/__init__.py
* Remove old Lib/test/test_tk.py.
* Remove old Lib/test/test_ttk_guionly.py.
* Add __main__ sub-modules.
* Update imports and update references to rename files.

3 years agogh-84623: Remove unused imports (#94132)
Victor Stinner [Wed, 22 Jun 2022 17:14:27 +0000 (19:14 +0200)] 
gh-84623: Remove unused imports (#94132)

3 years agogh-94114: Remove obsolete reference to python.org mirrors (GH-94115)
partev [Wed, 22 Jun 2022 16:55:06 +0000 (12:55 -0400)] 
gh-94114: Remove obsolete reference to python.org mirrors (GH-94115)

* gh-94114

3 years agogh-91172: Create a workflow for verifying bundled pip and setuptools (GH-31885)
Illia Volochii [Wed, 22 Jun 2022 13:32:22 +0000 (16:32 +0300)] 
gh-91172: Create a workflow for verifying bundled pip and setuptools (GH-31885)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 years agogh-93951: In test_bdb.StateTestCase.test_skip, avoid including auxiliary importers...
Jason R. Coombs [Wed, 22 Jun 2022 12:05:45 +0000 (08:05 -0400)] 
gh-93951: In test_bdb.StateTestCase.test_skip, avoid including auxiliary importers. (GH-93962)

Co-authored-by: Brett Cannon <brett@python.org>
3 years agoFix typo in _io.TextIOWrapper Clinic input (#94037)
fikotta [Wed, 22 Jun 2022 12:02:14 +0000 (14:02 +0200)] 
Fix typo in _io.TextIOWrapper Clinic input (#94037)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agogh-94101 Disallow instantiation of SSLSession objects (GH-94102)
chgnrdv [Wed, 22 Jun 2022 10:10:22 +0000 (13:10 +0300)] 
gh-94101 Disallow instantiation of SSLSession objects (GH-94102)

Fixes #94101

Automerge-Triggered-By: GH:tiran
3 years agogh-74696: Do not change the current working directory in shutil.make_archive() if...
Serhiy Storchaka [Wed, 22 Jun 2022 08:47:25 +0000 (11:47 +0300)] 
gh-74696: Do not change the current working directory in shutil.make_archive() if possible (GH-93160)

It is no longer changed when create a zip or tar archive.

It is still changed for custom archivers registered with shutil.register_archive_format()
if root_dir is not None.

Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agoStats: Add summary of top instructions for misses and deferred specialization. (GH...
Mark Shannon [Wed, 22 Jun 2022 07:50:02 +0000 (08:50 +0100)] 
Stats: Add summary of top instructions for misses and deferred specialization. (GH-94072)

3 years agogh-88123: Implement new Enum __contains__ (GH-93298)
Carl Bordum Hansen [Wed, 22 Jun 2022 07:04:04 +0000 (09:04 +0200)] 
gh-88123: Implement new Enum __contains__ (GH-93298)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
3 years agobpo-30535: [doc] state that sys.meta_path is not empty by default (GH-94098)
Irit Katriel [Tue, 21 Jun 2022 22:03:08 +0000 (23:03 +0100)] 
bpo-30535: [doc] state that sys.meta_path is not empty by default (GH-94098)

Co-authored-by: Windson yang <wiwindson@outlook.com>
3 years agogh-89336: Remove configparser APIs that were deprecated for 3.12 (#92503)
Gregory P. Smith [Tue, 21 Jun 2022 21:31:25 +0000 (14:31 -0700)] 
gh-89336: Remove configparser APIs that were deprecated for 3.12 (#92503)

https://github.com/python/cpython/issue/89336: Remove configparser 3.12 deprecations.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>