summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-123930: Better error for "from imports" when script shadows module (#123929)Shantanu2024-10-246-171/+342
|
* gh-118950: Fix SSLProtocol.connection_lost not being called when OSError is ↵Javad Shafique2024-10-243-1/+53
| | | | | | | thrown (#118960) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-125864: Propagate `pickle.loads()` failures in `InterpreterPoolExecutor` ↵Peter Bierma2024-10-242-1/+20
| | | | | (gh-125898) Authored-by: Peter Bierma <zintensitydev@gmail.com>
* gh-124218: Avoid refcount contention on builtins module (GH-125847)Sam Gross2024-10-246-47/+74
| | | | | | | This replaces `_PyEval_BuiltinsFromGlobals` with `_PyDict_LoadBuiltinsFromGlobals`, which returns a new reference instead of a borrowed reference. Internally, the new function uses per-thread reference counting when possible to avoid contention on the refcount fields on the builtins module.
* gh-125909: Avoid a redirect when linking to the devguide (#125826)partev2024-10-241-1/+1
|
* gh-125842: Fix `sys.exit(0xffff_ffff)` on Windows (#125896)Sam Gross2024-10-243-33/+63
| | | | | | | | | | On Windows, `long` is a signed 32-bit integer so it can't represent `0xffff_ffff` without overflow. Windows exit codes are unsigned 32-bit integers, so if a child process exits with `-1`, it will be represented as `0xffff_ffff`. Also fix a number of other possible cases where `_Py_HandleSystemExit` could return with an exception set, leading to a `SystemError` (or fatal error in debug builds) later on during shutdown.
* gh-125859: Fix crash when `gc.get_objects` is called during GC (#125882)Sam Gross2024-10-245-73/+160
| | | | | | | | | This fixes a crash when `gc.get_objects()` or `gc.get_referrers()` is called during a GC in the free threading build. Switch to `_PyObjectStack` to avoid corrupting the `struct worklist` linked list maintained by the GC. Also, don't return objects that are frozen (`gc.freeze()`) or in the process of being collected to more closely match the behavior of the default build.
* GH-125868: Fix STORE_ATTR_WITH_HINT specialization (GH-125876)Mark Shannon2024-10-246-13/+62
|
* Fix typo in garbage_collector.md (#125556)Marat Sharafutdinov2024-10-241-1/+1
|
* gh-125614: annotationlib: Fix bug where not all Stringifiers are converted ↵Jelle Zijlstra2024-10-233-4/+73
| | | | (#125635)
* gh-125884: Support breakpoint on functions with annotations (#125892)Tian Gao2024-10-233-2/+42
|
* gh-121938: ctypes: Skip test of _pack_-ed struct with c_int64 on x86 (GH-125877)Petr Viktorin2024-10-231-0/+14
| | | | The current auto-generated tests don't cover this; it's instead tested manually.
* gh-125665: Update turtledemo docstrings with correct file names (#125691)Wulian2024-10-2320-86/+32
| | | | Co-authored-by: Wulian <xiguawulian@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-125286: Share the Main Refchain With Legacy Interpreters (gh-125709)Eric Snow2024-10-237-61/+99
| | | | | They used to be shared, before 3.12. Returning to sharing them resolves a failure on Py_TRACE_REFS builds. Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-119786: move 'changing grammar' checklist from devguide to InternalDocs ↵Irit Katriel2024-10-232-0/+65
| | | | (#125874)
* gh-58032: Deprecate the argparse.FileType type converter (GH-124664)Serhiy Storchaka2024-10-236-45/+83
|
* gh-80958: unittest: discovery support for namespace packages as start ↵Jacob Walls2024-10-2312-37/+145
| | | | directory (#123820)
* gh-125259: Fix error notes removal in enum initialization (GH-125647)Mario Šaško2024-10-223-11/+25
|
* gh-125710: [Enum] fix hashable<->nonhashable comparisons for member values ↵Ethan Furman2024-10-223-6/+28
| | | | (GH-125735)
* gh-125038: Fix crash after genexpr.gi_frame.f_locals manipulations (#125178)Mikhail Efimov2024-10-224-0/+77
|
* Doc: Show object descriptions in the table of contents (#125757)Adam Turner2024-10-223-1/+9
|
* gh-125355: Rewrite parse_intermixed_args() in argparse (GH-125356)Serhiy Storchaka2024-10-223-82/+80
| | | | | | | | | | | * The parser no longer changes temporarily during parsing. * Default values are not processed twice. * Required mutually exclusive groups containing positional arguments are now supported. * The missing arguments report now includes the names of all required optional and positional arguments. * Unknown options can be intermixed with positional arguments in parse_known_intermixed_args().
* GH-125521: Remove `if (true)` from generated output to reduce C compiler ↵Mark Shannon2024-10-224-40/+75
| | | | warnings (GH-125700)
* gh-124889: Rework Python generator cache (#125816)Mikhail Efimov2024-10-221-27/+48
|
* gh-125811: Remove DeprecationWarnings in test_peg_generator (#125812)Mikhail Efimov2024-10-221-2/+2
|
* fix grammar in comment in dictobject.c (#125822)Arjun Singh2024-10-221-1/+1
|
* gh-119786: [doc] more consistent syntax in InternalDocs (#125815)Irit Katriel2024-10-216-429/+380
|
* gh-125716: Use A Global Mutex When Initializing Global State For The ↵Eric Snow2024-10-212-57/+79
| | | | | | | _interpqueues Module (gh-125803) This includes a drive-by cleanup in _queues_init() and _queues_fini(). This change also applies to the _interpchannels module.
* gh-124651: Quote template strings in `venv` activation scripts (GH-124712)Y52024-10-217-21/+135
| | | | This patch properly quotes template strings in `venv` activation scripts. This mitigates potential command injection.
* gh-125716: Raise an Exception If _globals_init() Fails In the _interpqueues ↵Eric Snow2024-10-212-3/+5
| | | | | | | Module (gh-125802) The fix applies to the _interpchannels module as well. I've also included a drive-by typo fix for _interpqueues.
* gh-53203: Fix test_strptime on Solaris (GH-125785)Serhiy Storchaka2024-10-211-0/+9
| | | | | Use fixed timezone. Skip roundtrip tests on locales with 2-digit year.
* gh-124969: Make locale.nl_langinfo(locale.ALT_DIGITS) returning a string ↵Serhiy Storchaka2024-10-214-27/+50
| | | | | | | | again (GH-125774) This is a follow up of GH-124974. Only Glibc needed a fix. Now the returned value is a string consisting of semicolon-separated symbols on all Posix platforms.
* gh-125767: Fix pickling and copying of super objects (GH-125781)Serhiy Storchaka2024-10-216-1/+86
| | | | | | | | | Previously, copying a super object returned a copy of the instance invoking super(). Pickling a super object could pickle the instance invoking super() or fail, depending on its type and protocol. Now deep copying returns a new super object and pickling pickles the super object. Shallow copying returns the same super object.
* gh-121459: Fix a couple of uses of `PyStackRef_FromPyObjectSteal` (#125711)mpage2024-10-213-12/+18
| | | | | | | | | | | * Fix usage of PyStackRef_FromPyObjectSteal in CALL_TUPLE_1 This was missed in gh-124894 * Fix usage of PyStackRef_FromPyObjectSteal in _CALL_STR_1 This was missed in gh-124894 * Regenerate code
* gh-119786: move interpreter doc from devguide to InternalDocs (#125715)Irit Katriel2024-10-214-9/+400
|
* gh-124218: Use per-thread reference counting for globals and builtins (#125713)Sam Gross2024-10-218-11/+115
| | | | Use per-thread refcounting for the reference from function objects to the globals and builtins dictionaries.
* Doc: C API: Move `tp_dealloc` paragraph to `tp_dealloc` section (#125737)Richard Hansen2024-10-211-11/+13
| | | | | | | | | | | | It looks like commit 43cf44ddcce6b225f959ea2a53e4817244ca6054 (gh-31501) accidentally moved the paragraph to the `tp_finalize` section when the intent was to move it to the `tp_dealloc` section (according to the commit message). Also: * Convert the paragraph to a warning. * Apply the appropriate font style to `tp_dealloc`. * Unlinkify the first mention of `tp_dealloc` since the paragraph is already in the `tp_dealloc` section.
* gh-125766: Docs: minor rewording of installation on Linux section (GH-125743)partev2024-10-211-4/+4
|
* gh-125590: Allow FrameLocalsProxy to delete and pop keys from extra locals ↵Tian Gao2024-10-213-8/+99
| | | | (#125616)
* gh-125703: Correctly honour tracemalloc hooks on more PyDECREF specialized ↵Pablo Galindo Salgado2024-10-211-0/+5
| | | | paths (#125712)
* gh-125608: Trigger dictionary watchers when inline values change (#125611)Sam Gross2024-10-213-6/+35
| | | | | Dictionary watchers on an object's attributes dictionary (`object.__dict__`) were not triggered when the managed dictionary used the object's inline values.
* gh-119311: Add missing magic number (3571) for 3.13.0b1 (#125771)Lumír 'Frenzy' Balhar2024-10-211-0/+1
| | | | | Add missing magic number 3571 for 3.13b1 It was added after branching in https://github.com/python/cpython/commit/6394a72e99b342d980297ec437ecafea92a044c4#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4R475
* gh-125741: Update `build.yml` for the new check_autoconf_regen job (#125772)Adam Turner2024-10-213-3/+3
|
* gh-125313: Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation ↵Y52024-10-212-6/+9
| | | | | | | notes (#125317) Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation notes. Signed-off-by: y5c4l3 <y5c4l3@proton.me>
* Doc: Fix typos (#125728)ember912024-10-216-7/+7
|
* gh-125519: Improve traceback if `importlib.reload()` is called with a ↵Alex Waygood2024-10-213-1/+18
| | | | non-module object (#125520)
* gh-99030: Added documentation links for types and exceptions (GH-123857)RUANG (Roy James)2024-10-211-4/+8
| | | | | | | | | | | | | * Added documentation links for types and exceptions * Shortened description sentences * Change content * Change documentation * Move seealso * Add a spaces
* gh-125698: Restore EXEEXT in configure and Make (#125758)Erlend E. Aasland2024-10-203-22/+22
| | | This reverts commit e924bb667.
* gh-125741: Update check_generated_files CI to use our published container ↵Donghee Na2024-10-201-9/+44
| | | | image (gh-125744)
* gh-125698: Replace EXEEXT with EXE_SUFFIX (#125699)Erlend E. Aasland2024-10-203-22/+22
|