summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * [3.12] sliding_window() recipe: Raise ValueError for non-positive window ↵Miss Islington (bot)2023-06-061-3/+27
| | | | | | | | sizes. Add more tests. (GH-105403) (GH-105405)
| * [3.12] gh-94172: Update keyfile removal documentation (GH-105392) (#105402)Miss Islington (bot)2023-06-065-51/+7
| | | | | | | | | | | | | | | | | | gh-94172: Update keyfile removal documentation (GH-105392) Remove the "deprecated:: 3.6" markup, since the parameters (like keyfile and certfile) got removed in Python 3.12. (cherry picked from commit 2b8e6e5712a83657333948bc387c81db02549b13) Co-authored-by: Victor Stinner <vstinner@python.org>
| * [3.12] gh-102304: Fix Py_INCREF() stable ABI in debug mode (#104763) (#105352)Victor Stinner2023-06-065-27/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gh-102304: Fix Py_INCREF() stable ABI in debug mode (#104763) When Python is built in debug mode (if the Py_REF_DEBUG macro is defined), the Py_INCREF() and Py_DECREF() function are now always implemented as opaque functions to avoid leaking implementation details like the "_Py_RefTotal" variable or the _Py_DecRefTotal_DO_NOT_USE_THIS() function. * Remove _Py_IncRefTotal_DO_NOT_USE_THIS() and _Py_DecRefTotal_DO_NOT_USE_THIS() from the stable ABI. * Remove _Py_NegativeRefcount() from limited C API. (cherry picked from commit 92022d8416d9e175800b65c4d71d4e4fb47adcb0)
* | Post 3.12.0b2Thomas Wouters2023-06-061-1/+1
| |
* | Python 3.12.0b2v3.12.0b2Thomas Wouters2023-06-0654-234/+1207
|/
* [3.12] GH-105162: Account for `INSTRUMENTED_RESUME` in gen.close/throw. ↵Miss Islington (bot)2023-06-063-3/+52
| | | | | | | | (GH-105187) (#105378) GH-105162: Account for `INSTRUMENTED_RESUME` in gen.close/throw. (GH-105187) (cherry picked from commit 601ae09f0c8eda213b9050892f5ce9b91f0aa522) Co-authored-by: Mark Shannon <mark@hotpy.org>
* [3.12] gh-104411: Update test_getint for Tcl 9.0 (GH-104412) (#105356)Miss Islington (bot)2023-06-061-1/+4
| | | | | | gh-104411: Update test_getint for Tcl 9.0 (GH-104412) (cherry picked from commit 2c49c759e880a32539f50c31dbd35d2bc4b4e030) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
* [3.12] gh-104399: Use newer libtommath APIs when necessary (GH-104407) (#105343)Miss Islington (bot)2023-06-062-2/+25
| | | | | | gh-104399: Use newer libtommath APIs when necessary (GH-104407) (cherry picked from commit 00d73caf804c0474980e471347d6385757af975f) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
* [3.12] gh-102304: doc: Add links to Stable ABI and Limited C API (#105345) ↵Victor Stinner2023-06-0616-42/+53
| | | | | | | | | | | | | | | | | | | (#105371) * gh-102304: doc: Add links to Stable ABI and Limited C API (#105345) * Add "limited-c-api" and "stable-api" references. * Rename "stable-abi-list" reference to "limited-api-list". * Makefile: Document files regenerated by "make regen-limited-abi" * Remove first empty line in generated files: - Lib/test/test_stable_abi_ctypes.py - PC/python3dll.c (cherry picked from commit bae415ad02c79cf3a2eec4aa6969221a12e6716f) * gh-102304: Fix up Simple ABI doc (GH-105351) (cherry picked from commit 0202aa002e06acef9aa55ace0d939103df19cadd)
* [3.12] gh-105259: Ensure we don't show newline characters for trailing ↵Miss Islington (bot)2023-06-065-5/+17
| | | | NEWLINE tokens (GH-105364) (#105367)
* [3.12] gh-90005: Don't link with libbsd if not needed (#105236) (#105360)Erlend E. Aasland2023-06-063-5/+9
| | | | The regression was introduced with commit 5b946cada. Restore pre gh-29696 behaviour.
* [3.12] gh-105324: Fix tokenize module main function for stdin (GH-105325) ↵Miss Islington (bot)2023-06-052-2/+3
| | | | (#105330)
* [3.12] gh-89412: Add missing attributes (added in 3.10) to traceback module ↵Miss Islington (bot)2023-06-053-2/+18
| | | | | | | docs (GH-105046) (#105327) (cherry picked from commit a4f72fa39a9d391c7b931ba1906d81da4ae01949) Co-authored-by: Jakub Kuczys <me@jacken.men>
* [3.12] gh-97908: CAPI docs: Remove repeated struct names from member docs ↵Miss Islington (bot)2023-06-052-8/+23
| | | | | | | | (GH-100054) (#105057) And add raw HTML fragments to keep old links working. (cherry picked from commit 1668b41dc477bc9562e4c50ab36a232839b4621b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] What's New in 3.12: List 'Improved Modules' alphabetically ↵Hugo van Kemenade2023-06-051-107/+107
| | | | (GH-105315) (#105321)
* [3.12] Clarify that error messages are better with PEP 701 (GH-105150) (#105169)Miss Islington (bot)2023-06-051-0/+25
| | | | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
* [3.12] gh-105286: Improve `typing.py` docstrings (#105287) (#105319)Alex Waygood2023-06-051-220/+253
| | | | | | gh-105286: Improve `typing.py` docstrings (#105287) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-105280: Ensure `isinstance([], collections.abc.Mapping)` always ↵Miss Islington (bot)2023-06-053-8/+38
| | | | | | | | evaluates to `False` (GH-105281) (#105318) gh-105280: Ensure `isinstance([], collections.abc.Mapping)` always evaluates to `False` (GH-105281) (cherry picked from commit 08756dbba647440803d2ba4545ba0ab2f0cdfe1c) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105237: Allow calling `issubclass(X, typing.Protocol)` again ↵Miss Islington (bot)2023-06-053-0/+65
| | | | | | | | (GH-105239) (#105316) gh-105237: Allow calling `issubclass(X, typing.Protocol)` again (GH-105239) (cherry picked from commit cdfb201bfa35b7c50de5099c6d9078c806851d98) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105164: Detect annotations inside match blocks (GH-105177) (#105313)Miss Islington (bot)2023-06-053-0/+123
| | | | | (cherry picked from commit 69d1245685cf95ddc678633e978a56673da64865) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-98963: Restore the ability to have a dict-less property. ↵Miss Islington (bot)2023-06-053-13/+97
| | | | | | | | | | | | | | | (GH-105262) (#105297) gh-98963: Restore the ability to have a dict-less property. (GH-105262) Ignore doc string assignment failures in `property` as has been the behavior of all past Python releases. (the docstring is discarded) (cherry picked from commit 418befd75d4d0d1cba83d8b81e1a7bcc9a65be8e) This fixes a behavior regression in 3.12beta1 where an AttributeError was being raised in a situation it has never been in the past. It keeps the existing unusual single situation where AttributeError does get raised. Existing widely deployed projects depend on this not raising an exception. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-104882: Docs: fix description of relationship between ↵Miss Islington (bot)2023-06-041-1/+1
| | | | | | | | `socket.getblocking()` and `socket.gettimeout()` (GH-105026) (#105283) gh-104882: Docs: fix description of relationship between `socket.getblocking()` and `socket.gettimeout()` (GH-105026) (cherry picked from commit 5a5ed7a3e616a372f054a1dd2e9a31ba32a87a67) Co-authored-by: Joe Geisbauer <joegeisbauer@gmail.com>
* [3.12] Fix typo in Python 3.12 What's New (GH-105278) (#105282)Miss Islington (bot)2023-06-041-2/+2
| | | | | | Fix typo in Python 3.12 What's New (GH-105278) (cherry picked from commit 9a90c9ace2ed878715107bf4ae39e5967d7c931f) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] gh-104690 Disallow thread creation and fork at interpreter ↵Miss Islington (bot)2023-06-048-30/+97
| | | | | | | | | | | | | | | | | | | | | finalization (GH-104826) (#105277) gh-104690 Disallow thread creation and fork at interpreter finalization (GH-104826) Disallow thread creation and fork at interpreter finalization. in the following functions, check if interpreter is finalizing and raise `RuntimeError` with appropriate message: * `_thread.start_new_thread` and thus `threading` * `posix.fork` * `posix.fork1` * `posix.forkpty` * `_posixsubprocess.fork_exec` when a `preexec_fn=` is supplied. --------- (cherry picked from commit ce558e69d4087dd3653207de78345fbb8a2c7835) Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-89415: Mention new `IP_*` constants in `socket` module in the docs ↵Miss Islington (bot)2023-06-031-1/+2
| | | | | | | | (GH-105266) (#105270) gh-89415: Mention new `IP_*` constants in `socket` module in the docs (GH-105266) (cherry picked from commit eaff9c39aa1a70d401521847cc35bec883ae9772) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-105080: Fixed inconsistent signature on derived classes ↵Miss Islington (bot)2023-06-023-11/+31
| | | | | | | | (GH-105217) (#105257) gh-105080: Fixed inconsistent signature on derived classes (GH-105217) (cherry picked from commit 9ad199ba36791711f596393ca9a20dbf118ef858) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-104614: Fix potential ref. leak in ↵Miss Islington (bot)2023-06-021-1/+3
| | | | | | | _testcapimodule/get_basic_static_type() (GH-105225) (#105248) (cherry picked from commit e01b04c9075c6468ed57bc883693ec2a06a6dd8e) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] gh-102778: update documentation of PyErr_PrintEx and ↵Miss Islington (bot)2023-06-022-7/+11
| | | | | | | | traceback.print_last() regarding sys.last_exc (GH-105190) (#105246) gh-102778: update documentation of PyErr_PrintEx and traceback.print_last() regarding sys.last_exc (GH-105190) (cherry picked from commit 0dafc785ee6629dbcb9bec6f7aee43a56cd0b26e) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.12] gh-105194: Fix format specifier escaped characters in f-strings ↵Miss Islington (bot)2023-06-026-2/+34
| | | | (GH-105231) (#105234)
* [3.12] gh-105184: document that marshal functions can fail and need to be ↵Miss Islington (bot)2023-06-022-0/+8
| | | | | | | | checked with PyErr_Occurred (GH-105185) (#105218) gh-105184: document that marshal functions can fail and need to be checked with PyErr_Occurred (GH-105185) (cherry picked from commit ee26ca13a129da8cf549409d0a1b2e892ff2b4ec) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.12] gh-104799: Default missing lists in AST to the empty list (GH-104834) ↵Miss Islington (bot)2023-06-024-239/+400
| | | | | | | | (#105213) (cherry picked from commit 77d25795862f19c6e3d647b76cfb10d5ce1f149c) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-104614: Make Sure ob_type is Always Set Correctly by ↵Miss Islington (bot)2023-06-014-17/+128
| | | | | | | | | | PyType_Ready() (gh-105122) (gh-105211) When I added the relevant condition to type_ready_set_bases() in gh-103912, I had missed that the function also sets tp_base and ob_type (if necessary). That led to problems for third-party static types. We fix that here, by making those extra operations distinct and by adjusting the condition to be more specific. (cherry picked from commit 1469393) Co-authored-by: Eric Snow ericsnowcurrently@gmail.com
* [3.12] gh-104341: Call _PyEval_ReleaseLock() with NULL When Finalizing the ↵Miss Islington (bot)2023-06-014-9/+46
| | | | | | | | | | Current Thread (gh-105109) (gh-105209) This avoids the problematic race in drop_gil() by skipping the FORCE_SWITCHING code there for finalizing threads. (The idea for this approach came out of discussions with @markshannon.) (cherry picked from commit 3698fda) Co-authored-by: Eric Snow ericsnowcurrently@gmail.com
* [3.12] gh-105020: Share tp_bases and tp_mro Between Interpreters For All ↵Miss Islington (bot)2023-06-017-26462/+26544
| | | | | | | | Static Builtin Types (gh-105115) (gh-105124) In gh-103912 we added tp_bases and tp_mro to each PyInterpreterState.types.builtins entry. However, doing so ignored the fact that both PyTypeObject fields are public API, and not documented as internal (as opposed to tp_subclasses). We address that here by reverting back to shared objects, making them immortal in the process. (cherry picked from commit 7be667d) Co-authored-by: Eric Snow ericsnowcurrently@gmail.com
* [3.12] GH-89886: Bump to GNU Autoconf v2.71 (#104925) (#105207)Erlend E. Aasland2023-06-018-7426/+10591
| | | Co-authored-by: Christian Heimes <christian@python.org>
* [3.12] gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (GH-105174) ↵Miss Islington (bot)2023-06-0113-18/+8794
| | | | | | | | | | | | | | | | | | | | (#105199) gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (GH-105174) Upgrade builds to OpenSSL 1.1.1u. This OpenSSL version addresses a pile if less-urgent CVEs since 1.1.1t. The Mac/BuildScript/build-installer.py was already updated. Also updates _ssl_data_111.h from OpenSSL 1.1.1u, _ssl_data_300.h from 3.0.9, and adds a new _ssl_data_31.h file from 3.1.1 along with the ssl.c code to use it. Manual edits to the _ssl_data_300.h file prevent it from removing any existing definitions in case those exist in some peoples builds and were important (avoiding regressions during backporting). backports of this prior to 3.12 will not include the openssl 3.1 header. (cherry picked from commit ede89af605b1c0442353435ad22195c16274f65d) Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
* [3.12] gh-89886: Rely on HAVE_SYS_TIME_H (GH-105058) (#105192)Miss Islington (bot)2023-06-015-19/+10
| | | | | | | | | | | Quoting autoconf (v2.71): All current systems provide time.h; it need not be checked for. Not all systems provide sys/time.h, but those that do, all allow you to include it and time.h simultaneously. (cherry picked from commit 9ab587b7146618866cee52c220aecf7bd5b44b02) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-105146: Update links at end of Windows installer (uninstall/repair) ↵Miss Islington (bot)2023-05-312-3/+5
| | | | | | | (GH-105147) (cherry picked from commit ed86e14b1672f32f0a31d72070e93d361ee0e2b4) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-102251: Explicitly free state for test modules with state in ↵Miss Islington (bot)2023-05-312-5/+31
| | | | | | | | test_import (GH-105085) (#105170) (cherry picked from commit a99b9d911e0f8cb11b3436bdd8eb649b15d01a50) Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] gh-102304: Fix 2 New Stable ABI Functions (gh-104762) (gh-105123)Eric Snow2023-05-314-1/+14
|
* [3.12] GH-105113: Improve performance of `pathlib.PurePath.match()` (GH-105114)Barney Gale2023-05-313-14/+81
| | | | | | | | | We now compile a `re.Pattern` object for the entire pattern. This is made more difficult by `fnmatch` not treating directory separators as special when evaluating wildcards (`*`, `?`, etc), and so we arrange the path parts onto separate *lines* in a string, and ensure we don't set `re.DOTALL`. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105144: Runtime-checkable protocols: move all 'sanity checks' to ↵Miss Islington (bot)2023-05-313-37/+111
| | | | | | | `_ProtocolMeta.__subclasscheck__` (GH-105152) (#105160) (cherry picked from commit c05c31db8c9dfd708b9857bb57f8e5f3ce40266d) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-87729: add LOAD_SUPER_ATTR to 3.12 What's New (GH-105125) (#105143)Miss Islington (bot)2023-05-311-0/+7
|
* [3.12] gh-97933: add LOAD_FAST_AND_CLEAR to 3.12 What's New bytecode section ↵Miss Islington (bot)2023-05-311-0/+3
| | | | (GH-105126) (#105142)
* [3.12] gh-105096: Reformat wave documentation (#105136) (#105138)Victor Stinner2023-05-313-102/+109
| | | | | | | | | | | | gh-105096: Reformat wave documentation (#105136) Add ".. class::" markups in the wave documentation. * Reformat also wave.py (minor PEP 8 changes). * Remove redundant "import struct": it's already imported at top level. * Remove wave.rst from .nitignore (cherry picked from commit 85e5d03163cac106ac8ec142ef03f1349a48948b)
* [3.12] gh-105069: Add a readline-like callable to the tokenizer to consume ↵Miss Islington (bot)2023-05-317-96/+274
| | | | | | | | input iteratively (GH-105070) (#105119) gh-105069: Add a readline-like callable to the tokenizer to consume input iteratively (GH-105070) (cherry picked from commit 9216e69a87d16d871625721ed5a8aa302511f367) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] gh-105042: Disable unmatched parens syntax error in python tokenize ↵Miss Islington (bot)2023-05-315-34/+49
| | | | | | | | (GH-105061) (#105120) gh-105042: Disable unmatched parens syntax error in python tokenize (GH-105061) (cherry picked from commit 70f315c2d6de87b0514ce16cc00a91a5b60a6098) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.12] gh-105091: stable_abi.py: Remove "Unixy" check from --all on other ↵Miss Islington (bot)2023-05-311-1/+2
| | | | | | | | platforms (GH-105092) (GH-105133) gh-105091: stable_abi.py: Remove "Unixy" check from --all on other platforms (GH-105092) (cherry picked from commit 0656d23d82cd5b88e578a26c65dd4a64414c833b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-103142: Update macOS installer to use OpenSSL 1.1.1u. (GH-105132)Miss Islington (bot)2023-05-312-3/+4
| | | | | (cherry picked from commit f90d3f68db720bd6d0deda8cc0030339ccd43858) Co-authored-by: Ned Deily <nad@python.org>
* [3.12] gh-89886: Properly quote Autoconf macro arguments (#105062) (#105118)Erlend E. Aasland2023-05-302-706/+798
| | | Autoconf 2.70 macros are picky about argument quotation.