]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agobpo-45235: Revert an argparse bugfix that caused a regression (GH-29525)
Raymond Hettinger [Fri, 12 Nov 2021 03:53:23 +0000 (21:53 -0600)] 
bpo-45235:  Revert an argparse bugfix that caused a regression (GH-29525)

* Revert "bpo-45235: Fix argparse overrides namespace with subparser defaults (GH-28420) (GH-28443)"

This reverts commit a18d52269ab6071a605d6c72f6af585a4c533ca4.

4 years agobpo-45773: Stop "optimizing" certain jump patterns (GH-29505)
Brandt Bucher [Thu, 11 Nov 2021 19:44:34 +0000 (11:44 -0800)] 
bpo-45773: Stop "optimizing" certain jump patterns (GH-29505)

4 years agobpo-45636: Merge all numeric operators (GH-29482)
Brandt Bucher [Thu, 11 Nov 2021 06:56:22 +0000 (22:56 -0800)] 
bpo-45636: Merge all numeric operators (GH-29482)

4 years agobpo-45696: Deep-freeze selected modules (GH-29118)
Guido van Rossum [Thu, 11 Nov 2021 02:01:53 +0000 (18:01 -0800)] 
bpo-45696: Deep-freeze selected modules (GH-29118)

This gains 10% or more in startup time for `python -c pass` on UNIX-ish systems.

The Makefile.pre.in generating code builds on Eric's work for bpo-45020, but the .c file generator is new.

Windows version TBD.

4 years agobpo-45723: Add --with-pkg-config to configure (GH-29517)
Christian Heimes [Wed, 10 Nov 2021 22:02:19 +0000 (00:02 +0200)] 
bpo-45723: Add --with-pkg-config to configure (GH-29517)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-45747: Detect gdbm/dbm dependencies in configure (GH-29467)
Christian Heimes [Wed, 10 Nov 2021 19:26:55 +0000 (21:26 +0200)] 
bpo-45747: Detect gdbm/dbm dependencies in configure (GH-29467)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-45754: Use correct SQLite limit when checking statement length (GH-29489)
Erlend Egeberg Aasland [Wed, 10 Nov 2021 18:46:11 +0000 (19:46 +0100)] 
bpo-45754: Use correct SQLite limit when checking statement length (GH-29489)

4 years agobpo-45711: remove unnecessary DUP_TOP and POP in exception handling (GH-29495)
Irit Katriel [Wed, 10 Nov 2021 18:08:28 +0000 (18:08 +0000)] 
bpo-45711: remove unnecessary DUP_TOP and POP in exception handling (GH-29495)

4 years agobpo-45711: Use _PyErr_ClearExcState instead of setting only exc_value to NULL (GH...
Irit Katriel [Wed, 10 Nov 2021 16:57:14 +0000 (16:57 +0000)] 
bpo-45711: Use _PyErr_ClearExcState instead of setting only exc_value to NULL (GH-29404)

4 years agobpo-45723: Improve and simplify more configure.ac checks (GH-29485)
Erlend Egeberg Aasland [Wed, 10 Nov 2021 15:30:18 +0000 (16:30 +0100)] 
bpo-45723: Improve and simplify more configure.ac checks (GH-29485)

4 years agobpo-45637: Fix cframe-based fallback in the gdb helpers (GH-29515)
Pablo Galindo Salgado [Wed, 10 Nov 2021 13:41:22 +0000 (13:41 +0000)] 
bpo-45637: Fix cframe-based fallback in the gdb helpers (GH-29515)

4 years ago[bpo-45765] Fix distribution discovery on empty path. (#29487)
Jason R. Coombs [Tue, 9 Nov 2021 23:49:43 +0000 (18:49 -0500)] 
[bpo-45765] Fix distribution discovery on empty path. (#29487)

4 years agobpo-45701: Improve documentation for *typed* parameter (GH-29498)
Raymond Hettinger [Tue, 9 Nov 2021 23:01:29 +0000 (17:01 -0600)] 
bpo-45701:  Improve documentation for *typed* parameter (GH-29498)

4 years agobpo-45723: Remove dead code for obsolete `--with-dyld` option (GH-29500)
Erlend Egeberg Aasland [Tue, 9 Nov 2021 21:05:58 +0000 (22:05 +0100)] 
bpo-45723: Remove dead code for obsolete `--with-dyld` option (GH-29500)

Was commented out by Jack Jansen in 2001-08-15 by commit
b6e9cad34ce46a6a733d8aa5bf5b9d389fa1316f:

"Ripped out Next/OpenStep support, which was broken anyway"

Automerge-Triggered-By: GH:tiran
4 years agobpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH...
Steve Dower [Tue, 9 Nov 2021 20:12:53 +0000 (20:12 +0000)] 
bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501)

4 years agobpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG before a...
Irit Katriel [Tue, 9 Nov 2021 20:07:38 +0000 (20:07 +0000)] 
bpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG before a no-arg opcode (GH-29480)

4 years agobpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477)
Steve Dower [Tue, 9 Nov 2021 16:47:28 +0000 (16:47 +0000)] 
bpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477)

4 years agoFactor-out constant calculation. (GH-29491)
Raymond Hettinger [Tue, 9 Nov 2021 16:30:06 +0000 (10:30 -0600)] 
Factor-out constant calculation. (GH-29491)

4 years agobpo-45763: Detect compression build deps in configure (GH-29483)
Christian Heimes [Tue, 9 Nov 2021 15:42:53 +0000 (17:42 +0200)] 
bpo-45763: Detect compression build deps in configure (GH-29483)

4 years agobpo-45723: Remove obsolete AC_EXEEXT from configure.ac (GH-29486)
Erlend Egeberg Aasland [Tue, 9 Nov 2021 15:32:59 +0000 (16:32 +0100)] 
bpo-45723: Remove obsolete AC_EXEEXT from configure.ac (GH-29486)

From the autoconf docs *Obsolete Macros* section:

    Defined the output variable EXEEXT based on the output of the
    compiler, which is now done automatically. Typically set to empty
    string if Posix and ‘.exe’ if a DOS variant.

4 years agobpo-45764: improve error message when missing '(' after 'def' (GH-29484)
Carl Friedrich Bolz-Tereick [Tue, 9 Nov 2021 14:03:32 +0000 (15:03 +0100)] 
bpo-45764: improve error message when missing '(' after 'def' (GH-29484)

to achieve this, change the grammar to expect the '(' token after 'def' NAME.

Automerge-Triggered-By: GH:pablogsal
4 years agobpo-45637: Remove broken fallback in gdb helpers to obtain frame variable (GH-29257)
Pablo Galindo Salgado [Tue, 9 Nov 2021 11:19:47 +0000 (11:19 +0000)] 
bpo-45637: Remove broken fallback in gdb helpers to obtain frame variable (GH-29257)

4 years agobpo-45743: Remove workaround for zlib CVE from 2002 (GH-29457)
Christian Heimes [Tue, 9 Nov 2021 08:56:05 +0000 (10:56 +0200)] 
bpo-45743: Remove workaround for zlib CVE from 2002 (GH-29457)

4 years agobpo-45743: -Wl,-search_paths_first is no longer needed (GH-29464)
Christian Heimes [Tue, 9 Nov 2021 08:06:41 +0000 (10:06 +0200)] 
bpo-45743: -Wl,-search_paths_first is no longer needed (GH-29464)

4 years agoAdd third-party Windows build definitions (GH-29476)
Steve Dower [Mon, 8 Nov 2021 22:16:53 +0000 (22:16 +0000)] 
Add third-party Windows build definitions (GH-29476)

These definition files are for OpenSSL, libffi and Tcl/Tk, which we build and sign ourselves.

4 years agobpo-45723: Prepare support for autoconf 2.71 (GH-29441)
Christian Heimes [Mon, 8 Nov 2021 18:31:14 +0000 (20:31 +0200)] 
bpo-45723: Prepare support for autoconf 2.71 (GH-29441)

4 years agobpo-45723: Add macro for disabling/enabling CC warnings (GH-29466)
Erlend Egeberg Aasland [Mon, 8 Nov 2021 17:58:22 +0000 (18:58 +0100)] 
bpo-45723: Add macro for disabling/enabling CC warnings (GH-29466)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agoCloses bpo-45712: Add missing word in control flow tutorial (GH-29460)
180909 [Mon, 8 Nov 2021 16:51:01 +0000 (00:51 +0800)] 
Closes bpo-45712: Add missing word in control flow tutorial (GH-29460)

4 years agobpo-40170: Update What's New in Python 3.9 (GH-29470)
Victor Stinner [Mon, 8 Nov 2021 16:41:56 +0000 (17:41 +0100)] 
bpo-40170: Update What's New in Python 3.9 (GH-29470)

The PyType_HasFeature() change has been reverted: the static inline
function access directly the PyTypeObject.tp_flags member.

4 years agobpo-45743: Move __APPLE_USE_RFC_3542 into socketmodule.c (GH-29456)
Christian Heimes [Mon, 8 Nov 2021 11:48:34 +0000 (13:48 +0200)] 
bpo-45743: Move __APPLE_USE_RFC_3542 into socketmodule.c (GH-29456)

4 years agoremove the repeat 'the' (#29455)
180909 [Mon, 8 Nov 2021 08:19:54 +0000 (16:19 +0800)] 
remove the repeat 'the' (#29455)

4 years agobpo-45723: Add helper macros and more caching to configure.ac (GH-29429)
Christian Heimes [Mon, 8 Nov 2021 07:06:31 +0000 (09:06 +0200)] 
bpo-45723: Add helper macros and more caching to configure.ac (GH-29429)

Almost all checks are now cached by AC_CACHE_CHECK().

Common patterns are replaced by helper macros.

Variable names now use naming scheme ``ac_cv_func_$funcname``,
``ac_cv_lib_$library_$funcname``, or ``ac_cv_header_$headername_h``.

``SYS_SELECT_WITH_SYS_TIME`` is no longer used.

``uuid_create`` and ``uuid_enc_be`` are provided by libc on BSD. It is
safe to use ``AC_CHECK_FUNCS`` here.

Caching speeds up ./configure -C from ~ 4s to 2.6s on my system.

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-45741: docs: fix plural (GH-29461)
Rafael Fontenelle [Mon, 8 Nov 2021 06:03:44 +0000 (03:03 -0300)] 
bpo-45741: docs: fix plural (GH-29461)

"entry points provides" -> "entry points provide"

Automerge-Triggered-By: GH:ericvsmith
4 years agoGeneral cleanup of test_pydoc (GH-29459)
Zachary Ware [Sun, 7 Nov 2021 23:44:11 +0000 (17:44 -0600)] 
General cleanup of test_pydoc (GH-29459)

- Uniform usage of `test.support.requires_docstrings` instead of a
  local check for `-OO`.
- Added `requires_docstrings` to a couple more methods that need it.
- Replaced a few instances of `test.test_pydoc` with `__name__` to allow
  for different methods of running just this test file.
- Rewrote `test_server` to run faster and better test the server.
- Removed unused import.
- Removed unused locals.
- Minor whitespace cleanups.

4 years agobpo-45723: Detect missing pkg-config (GH-29442)
Christian Heimes [Sun, 7 Nov 2021 10:18:45 +0000 (12:18 +0200)] 
bpo-45723: Detect missing pkg-config (GH-29442)

4 years agobpo-45392: Update the docstring of the 'type' built-in (GH-29439)
Mark Dickinson [Sat, 6 Nov 2021 19:08:44 +0000 (19:08 +0000)] 
bpo-45392: Update the docstring of the 'type' built-in (GH-29439)

4 years agobpo-27313: Use non-deprecated methods for tracing (GH-29425)
Serhiy Storchaka [Sat, 6 Nov 2021 19:01:39 +0000 (21:01 +0200)] 
bpo-27313: Use non-deprecated methods for tracing (GH-29425)

4 years agobpo-39452: [doc] Change "must" to "can" on relative import style in `__main__` (GH...
Andre Delfino [Sat, 6 Nov 2021 18:09:23 +0000 (15:09 -0300)] 
bpo-39452: [doc] Change "must" to "can" on relative import style in `__main__` (GH-29379)

4 years ago[doc] bpo-45680: Improve glossary entry for generic types (GH-29388)
Alex Waygood [Sat, 6 Nov 2021 18:00:45 +0000 (18:00 +0000)] 
[doc] bpo-45680: Improve glossary entry for generic types (GH-29388)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years ago[doc] minor fixes to expressions.rst (GH-29444)
Ethan Furman [Sat, 6 Nov 2021 17:26:43 +0000 (10:26 -0700)] 
[doc] minor fixes to expressions.rst (GH-29444)

4 years agobpo-45740: [Enum] add versionadded markers to docs (GH-29443)
Ethan Furman [Sat, 6 Nov 2021 17:16:43 +0000 (10:16 -0700)] 
bpo-45740: [Enum] add versionadded markers to docs (GH-29443)

[Enum] add versionadded markers to docs

4 years agobpo-45644: Make json.tool read infile before writing to outfile (GH-29273)
Chris Wesseling [Sat, 6 Nov 2021 17:11:35 +0000 (18:11 +0100)] 
bpo-45644:  Make json.tool read infile before writing to outfile (GH-29273)

so that

$ python -m json.tool foo.json foo.json

doesn't result in an empty foo.json.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-45731: Handle --enable-loadable-sqlite-extensions in configure (GH-29434)
Christian Heimes [Sat, 6 Nov 2021 09:30:37 +0000 (11:30 +0200)] 
bpo-45731: Handle --enable-loadable-sqlite-extensions in configure (GH-29434)

4 years agobpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)
Steve Dower [Fri, 5 Nov 2021 23:06:45 +0000 (23:06 +0000)] 
bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)

4 years agoPost 3.11.0a2
Pablo Galindo [Fri, 5 Nov 2021 21:29:33 +0000 (21:29 +0000)] 
Post 3.11.0a2

4 years agoMerge tag 'v3.11.0a2'
Pablo Galindo [Fri, 5 Nov 2021 21:29:23 +0000 (21:29 +0000)] 
Merge tag 'v3.11.0a2'

Python 3.11.0a2

4 years agobpo-43158: Regenerate configure again (GH-29433)
Christian Heimes [Fri, 5 Nov 2021 20:51:26 +0000 (22:51 +0200)] 
bpo-43158: Regenerate configure again (GH-29433)

4 years agobpo-45679: add `tuple` tests with `lru_cache` to `test_functools` (GH-29339)
Nikita Sobolev [Fri, 5 Nov 2021 19:52:46 +0000 (22:52 +0300)] 
bpo-45679: add `tuple` tests with `lru_cache` to `test_functools` (GH-29339)

4 years agoPython 3.11.0a2 v3.11.0a2
Pablo Galindo [Fri, 5 Nov 2021 19:02:44 +0000 (19:02 +0000)] 
Python 3.11.0a2

4 years agobpo-45243: Use connection limits to simplify `sqlite3` tests (GH-29356)
Erlend Egeberg Aasland [Fri, 5 Nov 2021 17:19:43 +0000 (18:19 +0100)] 
bpo-45243: Use connection limits to simplify `sqlite3` tests (GH-29356)

4 years agobpo-45762: Improve docs for ``@singledispatch``/``@singledispatchmethod`` (GH-29426)
Alex Waygood [Fri, 5 Nov 2021 16:25:08 +0000 (16:25 +0000)] 
bpo-45762: Improve docs for ``@singledispatch``/``@singledispatchmethod`` (GH-29426)

4 years agobpo-45716: Improve the error message when using True/False/None as keywords in a...
Pablo Galindo Salgado [Fri, 5 Nov 2021 13:54:55 +0000 (13:54 +0000)] 
bpo-45716: Improve the error message when using True/False/None as keywords in a call (GH-29413)

4 years agobpo-45678: Add more ``singledispatchmethod`` tests (GH-29412)
Alex Waygood [Fri, 5 Nov 2021 10:06:18 +0000 (10:06 +0000)] 
bpo-45678: Add more ``singledispatchmethod`` tests (GH-29412)

In order to fix a bug in the 3.9 branch in #29394, more tests were added to
``test_functools.py`` to ensure that ``singledispatchmethod`` still correctly
wrapped a target method, even if the target method had already been wrapped by
 multiple other decorators. This PR brings the new tests into the 3.11 and 3.10
branches as well.

4 years agobpo-45292: [PEP 654] Update traceback display code to work with exception groups...
Irit Katriel [Fri, 5 Nov 2021 09:39:18 +0000 (09:39 +0000)] 
bpo-45292: [PEP 654] Update traceback display code to work with exception groups (GH-29207)

4 years agobpo-27313: Fix ttk_guionly tests failing on Framework builds on macOS (GH-29411)
Łukasz Langa [Fri, 5 Nov 2021 08:53:13 +0000 (09:53 +0100)] 
bpo-27313: Fix ttk_guionly tests failing on Framework builds on macOS (GH-29411)

4 years agobpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291 (GH-29416)
Łukasz Langa [Fri, 5 Nov 2021 08:51:31 +0000 (09:51 +0100)] 
bpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291 (GH-29416)

4 years agoAdd generated artifacts in Mac/ to .gitignore; update copyright (GH-29408)
Łukasz Langa [Thu, 4 Nov 2021 19:09:46 +0000 (20:09 +0100)] 
Add generated artifacts in Mac/ to .gitignore; update copyright (GH-29408)

4 years agobpo-45220: Remove invalid include from resource definition files on Windows (GH-29396)
Steve Dower [Thu, 4 Nov 2021 16:39:36 +0000 (16:39 +0000)] 
bpo-45220: Remove invalid include from resource definition files on Windows (GH-29396)

4 years agobpo-43652: Actually update to Tcl/Tk 8.6.11 on Windows (GH-29397)
Steve Dower [Thu, 4 Nov 2021 16:39:07 +0000 (16:39 +0000)] 
bpo-43652: Actually update to Tcl/Tk 8.6.11 on Windows (GH-29397)

4 years agoRemove reference to ``Tuple`` at top of ``typing`` docs (GH-29401)
Alex Waygood [Thu, 4 Nov 2021 11:48:40 +0000 (11:48 +0000)] 
Remove reference to ``Tuple`` at top of ``typing`` docs (GH-29401)

``typing.Tuple`` has been deprecated since Python 3.9, so it makes no sense to mention it so prominently in the documentation for the ``typing`` module.

4 years agobpo-45697: Use PyObject_TypeCheck in type_call (GH-29392)
Itamar Ostricher [Thu, 4 Nov 2021 10:39:50 +0000 (03:39 -0700)] 
bpo-45697: Use PyObject_TypeCheck in type_call (GH-29392)

4 years agobpo-45680: ``typing`` docs: improve links to docs on ``GenericAlias``/``__class_getit...
Alex Waygood [Thu, 4 Nov 2021 04:06:34 +0000 (04:06 +0000)] 
bpo-45680: ``typing`` docs: improve links to docs on ``GenericAlias``/``__class_getitem__`` (GH-29387)

4 years agobpo-45613: Set `sqlite3.threadsafety` dynamically (GH-29227)
Erlend Egeberg Aasland [Wed, 3 Nov 2021 21:01:37 +0000 (22:01 +0100)] 
bpo-45613: Set `sqlite3.threadsafety` dynamically (GH-29227)

Use the compile-time selected default SQLite threaded mode to set the
DB-API 2.0 attribute 'threadsafety'

Mappings:
  - SQLITE_THREADSAFE=0 => threadsafety=0
  - SQLITE_THREADSAFE=1 => threadsafety=3
  - SQLITE_THREADSAFE=2 => threadsafety=1

4 years agobpo-44257: fix "assigment_expr" typo + regenerate the grammar, and remove unused...
wim glenn [Wed, 3 Nov 2021 20:57:40 +0000 (15:57 -0500)] 
bpo-44257: fix "assigment_expr" typo + regenerate the grammar, and remove unused imports (GH-29393)

Co-authored-by: Wim Glenn <wglenn@jumptrading.com>
4 years agobpo-45506: Stop skipping test_embed. (gh-29300)
Eric Snow [Wed, 3 Nov 2021 17:47:16 +0000 (11:47 -0600)] 
bpo-45506: Stop skipping test_embed. (gh-29300)

In gh-29063 I ended up disabling test_embed on non-Windows by accident. This gets it running again.

https://bugs.python.org/issue45506

4 years agobpo-45691: Make array of small ints static to fix use-after-free error. (GH-29366)
Mark Shannon [Wed, 3 Nov 2021 16:22:32 +0000 (16:22 +0000)] 
bpo-45691: Make array of small ints static to fix use-after-free error. (GH-29366)

4 years agobpo-45678: Add ``functools.singledispatchmethod`` tests (GH-29328)
Alex Waygood [Wed, 3 Nov 2021 16:12:02 +0000 (16:12 +0000)] 
bpo-45678: Add ``functools.singledispatchmethod`` tests (GH-29328)

4 years agobpo-45578: add tests for `dis.distb` (GH-29332)
Nikita Sobolev [Wed, 3 Nov 2021 13:55:42 +0000 (16:55 +0300)] 
bpo-45578: add tests for `dis.distb` (GH-29332)

4 years agobpo-24139: Fix test_sqlite3 `test_extended_error_code_on_exception()` on s390x RHEL...
Erlend Egeberg Aasland [Wed, 3 Nov 2021 09:35:42 +0000 (10:35 +0100)] 
bpo-24139: Fix test_sqlite3 `test_extended_error_code_on_exception()` on s390x RHEL buildbots (GH-29382)

4 years agobpo-24139: Add support for SQLite extended result codes (GH-28076)
Erlend Egeberg Aasland [Tue, 2 Nov 2021 23:49:38 +0000 (00:49 +0100)] 
bpo-24139: Add support for SQLite extended result codes (GH-28076)

4 years agobpo-45406: make inspect.getmodule() return None when getabsfile() raises FileNotFound...
Irit Katriel [Tue, 2 Nov 2021 21:55:51 +0000 (21:55 +0000)] 
bpo-45406: make inspect.getmodule() return None when getabsfile() raises FileNotFoundError (GH-28824)

4 years ago[doc] Link to section File input (GH-28941)
Andre Delfino [Tue, 2 Nov 2021 21:34:00 +0000 (18:34 -0300)] 
[doc] Link to section File input (GH-28941)

4 years agobpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947)
LincolnPuzey [Tue, 2 Nov 2021 21:27:44 +0000 (05:27 +0800)] 
bpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947)

Specify that SSLContext.set_default_verify_paths is called on ALL systems.

The code of SSLContext.load_default_certs was changed in bpo-22449 to do this,
this fix corrects the documentation to match that change.

4 years agobpo-44828: macOS installer: avoid leaving a zombie Save panel in Tk 8.6.12rc1 (GH...
Ned Deily [Tue, 2 Nov 2021 21:01:37 +0000 (17:01 -0400)] 
bpo-44828: macOS installer: avoid leaving a zombie Save panel in Tk 8.6.12rc1 (GH-29367)

4 years agomakefile: remove unused SGI_ABI variable (GH-29325)
Filipe Laíns [Tue, 2 Nov 2021 20:39:27 +0000 (20:39 +0000)] 
makefile: remove unused SGI_ABI variable (GH-29325)

SGI_ABI support was removed in [1] but this variable was never removed
from the makefile. Currently, it is just a bad variable that does not
get replaced by the configure script.

[1] https://github.com/python/cpython/pull/3294

Signed-off-by: Filipe Laíns <lains@riseup.net>
4 years agobpo-42064: Adapt `sqlite3` to multi-phase init (PEP 489) (GH-29234)
Erlend Egeberg Aasland [Tue, 2 Nov 2021 15:35:51 +0000 (16:35 +0100)] 
bpo-42064: Adapt `sqlite3` to multi-phase init (PEP 489) (GH-29234)

4 years agobpo-45633: Fix newtypes doc typo (GH-29318)
Dmitry Smirnov [Tue, 2 Nov 2021 14:47:06 +0000 (17:47 +0300)] 
bpo-45633: Fix newtypes doc typo (GH-29318)

4 years agobpo-43158: Use configure values for building _uuid extension (GH-29353)
Christian Heimes [Tue, 2 Nov 2021 11:25:13 +0000 (13:25 +0200)] 
bpo-43158: Use configure values for building _uuid extension (GH-29353)

4 years agobpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358)
Christian Heimes [Tue, 2 Nov 2021 11:08:40 +0000 (13:08 +0200)] 
bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358)

4 years agoRemove Programs/_freeze_importlib (#29357)
Brandt Bucher [Tue, 2 Nov 2021 01:09:26 +0000 (18:09 -0700)] 
Remove Programs/_freeze_importlib (#29357)

4 years agobpo-45243: Add support for setting/getting `sqlite3` connection limits (GH-28463)
Erlend Egeberg Aasland [Mon, 1 Nov 2021 22:50:53 +0000 (23:50 +0100)] 
bpo-45243: Add support for setting/getting `sqlite3` connection limits (GH-28463)

4 years agoUpdate macOS installer to use Tk 8.6.12rc1 pre-release. (GH-29354)
Ned Deily [Mon, 1 Nov 2021 15:53:05 +0000 (11:53 -0400)] 
Update macOS installer to use Tk 8.6.12rc1 pre-release. (GH-29354)

4 years agobpo-45666: Use `%S` for MSVC and `%s` elsewhere for `swprintf` in `_testembed.c`...
Nikita Sobolev [Mon, 1 Nov 2021 12:11:34 +0000 (15:11 +0300)] 
bpo-45666: Use `%S` for MSVC and `%s` elsewhere for `swprintf` in `_testembed.c` (GH-29341)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agobpo-45668: Fix PGO tests without test extensions (GH-29315)
Christian Heimes [Mon, 1 Nov 2021 10:14:53 +0000 (12:14 +0200)] 
bpo-45668: Fix PGO tests without test extensions (GH-29315)

4 years agobpo-10572: Fixup Lib/test/libregrtest/pgo.py (GH-29327)
Erlend Egeberg Aasland [Mon, 1 Nov 2021 09:57:28 +0000 (10:57 +0100)] 
bpo-10572: Fixup Lib/test/libregrtest/pgo.py (GH-29327)

4 years agobpo-45618: Update Sphinx version used to build the documentation to 4.2.0 (GH-29256)
m-aciek [Sun, 31 Oct 2021 20:51:33 +0000 (21:51 +0100)] 
bpo-45618: Update Sphinx version used to build the documentation to 4.2.0 (GH-29256)

Updating version of Sphinx to most recent one, 4.2.0. Documentation builds without warnings.

Sphinx 4.2.0 release notes: https://www.sphinx-doc.org/en/master/changes.html#release-4-2-0-released-sep-12-2021.

cc @JulienPalard

Automerge-Triggered-By: GH:JulienPalard
4 years agoUpdated README with Python 3.11 release info (GH-29338)
Jacob Walls [Sun, 31 Oct 2021 19:53:08 +0000 (15:53 -0400)] 
Updated README with Python 3.11 release info (GH-29338)

4 years agoMove field width to the right field (GH-29344)
Olaf van der Spek [Sun, 31 Oct 2021 17:44:23 +0000 (18:44 +0100)] 
Move field width to the right field (GH-29344)

Automerge-Triggered-By: GH:vsajip
4 years agobpo-45516: fix Traversable.name documentation (GH-29194)
Filipe Laíns [Sun, 31 Oct 2021 14:57:21 +0000 (14:57 +0000)] 
bpo-45516: fix Traversable.name documentation (GH-29194)

Here we go again... Sorrry!

Signed-off-by: Filipe Laíns <lains@riseup.net>
Automerge-Triggered-By: GH:jaraco
4 years agobpo-45634: Don't combine error checks when adding `sqlite3` int constants (GH-29251)
Erlend Egeberg Aasland [Sun, 31 Oct 2021 10:01:19 +0000 (11:01 +0100)] 
bpo-45634: Don't combine error checks when adding `sqlite3` int constants (GH-29251)

4 years agobpo-45679: Fix caching of multi-value typing.Literal (GH-29334)
Serhiy Storchaka [Sun, 31 Oct 2021 08:22:16 +0000 (10:22 +0200)] 
bpo-45679: Fix caching of multi-value typing.Literal (GH-29334)

Literal[True, 2] is no longer equal to Literal[1, 2].

4 years agobpo-45666: fixes warning with `swprintf` and `%s` (GH-29307)
Nikita Sobolev [Sun, 31 Oct 2021 02:13:54 +0000 (05:13 +0300)] 
bpo-45666: fixes warning with `swprintf` and `%s` (GH-29307)

4 years agoFix docs source link for importlib.metadata (GH-29025)
Philipp A [Sat, 30 Oct 2021 15:12:47 +0000 (17:12 +0200)] 
Fix docs source link for importlib.metadata (GH-29025)

The link broke for Python 3.10 since importlib.metadata was made from a module into a package

I think this is trivial enough to not need a bpo issue.

Automerge-Triggered-By: GH:jaraco
4 years agobpo-10572: Move `sqlite3` tests to `Lib/test` (GH-29304)
Erlend Egeberg Aasland [Fri, 29 Oct 2021 22:08:19 +0000 (00:08 +0200)] 
bpo-10572: Move `sqlite3` tests to `Lib/test` (GH-29304)

Automerge-Triggered-By: GH:brettcannon
4 years agobpo-45379: clarify FROZEN_EXCLUDED and FROZEN_INVALID documentation (GH-29189)
Filipe Laíns [Fri, 29 Oct 2021 20:55:14 +0000 (21:55 +0100)] 
bpo-45379: clarify FROZEN_EXCLUDED and FROZEN_INVALID documentation (GH-29189)

Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals memory error...
Erlend Egeberg Aasland [Fri, 29 Oct 2021 20:21:58 +0000 (22:21 +0200)] 
bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals memory error (GH-29171)

4 years agobpo-45600: Enhanced / clarified the docs for os.environ and os.environb (GH-29204)
andrei kulakov [Fri, 29 Oct 2021 20:18:45 +0000 (16:18 -0400)] 
bpo-45600: Enhanced / clarified the docs for os.environ and os.environb (GH-29204)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-45335: Add note to `sqlite3` docs about "timestamp" converter (GH-29200)
Ian Fisher [Fri, 29 Oct 2021 20:17:22 +0000 (16:17 -0400)] 
bpo-45335: Add note to `sqlite3` docs about "timestamp" converter (GH-29200)

4 years agobpo-45548: Some test modules must be built as shared libs (GH-29268)
Christian Heimes [Fri, 29 Oct 2021 15:49:57 +0000 (18:49 +0300)] 
bpo-45548: Some test modules must be built as shared libs (GH-29268)

Some test cases don't work when test modules are static extensions.

Add dependency on Modules/config.c to trigger a rebuild whenever a
module build type is changed.

``makesetup`` puts shared extensions into ``Modules/`` directory. Create
symlinks from pybuilddir so the extensions can be imported.

Note: It is not possible to use the content of pybuilddir.txt as a build
target. Makefile evaluates target variables in the first pass. The
pybuilddir.txt file does not exist at that point.

4 years agobpo-45655: Add ref to union type expressions at top of typing docs (GH-29309)
Alex Waygood [Fri, 29 Oct 2021 13:56:21 +0000 (14:56 +0100)] 
bpo-45655: Add ref to union type expressions at top of typing docs (GH-29309)