Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-123930: Better error for "from imports" when script shadows module (#123929) | Shantanu | 2024-10-24 | 6 | -171/+342 |
| | |||||
* | gh-118950: Fix SSLProtocol.connection_lost not being called when OSError is ↵ | Javad Shafique | 2024-10-24 | 3 | -1/+53 |
| | | | | | | | thrown (#118960) Co-authored-by: Kumar Aditya <kumaraditya@python.org> | ||||
* | gh-125864: Propagate `pickle.loads()` failures in `InterpreterPoolExecutor` ↵ | Peter Bierma | 2024-10-24 | 2 | -1/+20 |
| | | | | | (gh-125898) Authored-by: Peter Bierma <zintensitydev@gmail.com> | ||||
* | gh-124218: Avoid refcount contention on builtins module (GH-125847) | Sam Gross | 2024-10-24 | 6 | -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) | partev | 2024-10-24 | 1 | -1/+1 |
| | |||||
* | gh-125842: Fix `sys.exit(0xffff_ffff)` on Windows (#125896) | Sam Gross | 2024-10-24 | 3 | -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 Gross | 2024-10-24 | 5 | -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 Shannon | 2024-10-24 | 6 | -13/+62 |
| | |||||
* | Fix typo in garbage_collector.md (#125556) | Marat Sharafutdinov | 2024-10-24 | 1 | -1/+1 |
| | |||||
* | gh-125614: annotationlib: Fix bug where not all Stringifiers are converted ↵ | Jelle Zijlstra | 2024-10-23 | 3 | -4/+73 |
| | | | | (#125635) | ||||
* | gh-125884: Support breakpoint on functions with annotations (#125892) | Tian Gao | 2024-10-23 | 3 | -2/+42 |
| | |||||
* | gh-121938: ctypes: Skip test of _pack_-ed struct with c_int64 on x86 (GH-125877) | Petr Viktorin | 2024-10-23 | 1 | -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) | Wulian | 2024-10-23 | 20 | -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 Snow | 2024-10-23 | 7 | -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 Katriel | 2024-10-23 | 2 | -0/+65 |
| | | | | (#125874) | ||||
* | gh-58032: Deprecate the argparse.FileType type converter (GH-124664) | Serhiy Storchaka | 2024-10-23 | 6 | -45/+83 |
| | |||||
* | gh-80958: unittest: discovery support for namespace packages as start ↵ | Jacob Walls | 2024-10-23 | 12 | -37/+145 |
| | | | | directory (#123820) | ||||
* | gh-125259: Fix error notes removal in enum initialization (GH-125647) | Mario Šaško | 2024-10-22 | 3 | -11/+25 |
| | |||||
* | gh-125710: [Enum] fix hashable<->nonhashable comparisons for member values ↵ | Ethan Furman | 2024-10-22 | 3 | -6/+28 |
| | | | | (GH-125735) | ||||
* | gh-125038: Fix crash after genexpr.gi_frame.f_locals manipulations (#125178) | Mikhail Efimov | 2024-10-22 | 4 | -0/+77 |
| | |||||
* | Doc: Show object descriptions in the table of contents (#125757) | Adam Turner | 2024-10-22 | 3 | -1/+9 |
| | |||||
* | gh-125355: Rewrite parse_intermixed_args() in argparse (GH-125356) | Serhiy Storchaka | 2024-10-22 | 3 | -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 Shannon | 2024-10-22 | 4 | -40/+75 |
| | | | | warnings (GH-125700) | ||||
* | gh-124889: Rework Python generator cache (#125816) | Mikhail Efimov | 2024-10-22 | 1 | -27/+48 |
| | |||||
* | gh-125811: Remove DeprecationWarnings in test_peg_generator (#125812) | Mikhail Efimov | 2024-10-22 | 1 | -2/+2 |
| | |||||
* | fix grammar in comment in dictobject.c (#125822) | Arjun Singh | 2024-10-22 | 1 | -1/+1 |
| | |||||
* | gh-119786: [doc] more consistent syntax in InternalDocs (#125815) | Irit Katriel | 2024-10-21 | 6 | -429/+380 |
| | |||||
* | gh-125716: Use A Global Mutex When Initializing Global State For The ↵ | Eric Snow | 2024-10-21 | 2 | -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) | Y5 | 2024-10-21 | 7 | -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 Snow | 2024-10-21 | 2 | -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 Storchaka | 2024-10-21 | 1 | -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 Storchaka | 2024-10-21 | 4 | -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 Storchaka | 2024-10-21 | 6 | -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) | mpage | 2024-10-21 | 3 | -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 Katriel | 2024-10-21 | 4 | -9/+400 |
| | |||||
* | gh-124218: Use per-thread reference counting for globals and builtins (#125713) | Sam Gross | 2024-10-21 | 8 | -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 Hansen | 2024-10-21 | 1 | -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) | partev | 2024-10-21 | 1 | -4/+4 |
| | |||||
* | gh-125590: Allow FrameLocalsProxy to delete and pop keys from extra locals ↵ | Tian Gao | 2024-10-21 | 3 | -8/+99 |
| | | | | (#125616) | ||||
* | gh-125703: Correctly honour tracemalloc hooks on more PyDECREF specialized ↵ | Pablo Galindo Salgado | 2024-10-21 | 1 | -0/+5 |
| | | | | paths (#125712) | ||||
* | gh-125608: Trigger dictionary watchers when inline values change (#125611) | Sam Gross | 2024-10-21 | 3 | -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' Balhar | 2024-10-21 | 1 | -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 Turner | 2024-10-21 | 3 | -3/+3 |
| | |||||
* | gh-125313: Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation ↵ | Y5 | 2024-10-21 | 2 | -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) | ember91 | 2024-10-21 | 6 | -7/+7 |
| | |||||
* | gh-125519: Improve traceback if `importlib.reload()` is called with a ↵ | Alex Waygood | 2024-10-21 | 3 | -1/+18 |
| | | | | non-module object (#125520) | ||||
* | gh-99030: Added documentation links for types and exceptions (GH-123857) | RUANG (Roy James) | 2024-10-21 | 1 | -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. Aasland | 2024-10-20 | 3 | -22/+22 |
| | | | This reverts commit e924bb667. | ||||
* | gh-125741: Update check_generated_files CI to use our published container ↵ | Donghee Na | 2024-10-20 | 1 | -9/+44 |
| | | | | image (gh-125744) | ||||
* | gh-125698: Replace EXEEXT with EXE_SUFFIX (#125699) | Erlend E. Aasland | 2024-10-20 | 3 | -22/+22 |
| |