Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-104837: Revert "gh-104341: Add a Separate "Running" Lock for Each Thread ↵ | Gregory P. Smith | 2023-05-24 | 2 | -53/+41 |
| | | | | | | | (gh-104754) (#104838) gh-104837: Revert "gh-104341: Add a Separate "Running" Lock for Each Thread (gh-104754)" This reverts commit 097b7830cd67f039ff36ba4fa285d82d26e25e84. | ||||
* | gh-104372: use == -1 before PyErr_Occurred (#104831) | Gregory P. Smith | 2023-05-24 | 1 | -1/+1 |
| | | | The ideal pattern for this. (already in the 3.11 backport) | ||||
* | gh-85934: Use getattr_static when adding mock spec (#22209) | melanie witt | 2023-05-23 | 3 | -1/+40 |
| | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> | ||||
* | GH-83863: Drop support for using `pathlib.Path` objects as context managers ↵ | Barney Gale | 2023-05-23 | 4 | -39/+7 |
| | | | | | | | | | | (GH-104807) In Python 3.8 and prior, `pathlib.Path.__exit__()` marked a path as closed; some subsequent attempts to perform I/O would raise an IOError. This functionality was never documented, and had the effect of making `Path` objects mutable, contrary to PEP 428. In Python 3.9 we made `__exit__()` a no-op, and in 3.11 `__enter__()` began raising deprecation warnings. Here we remove both methods. | ||||
* | gh-103295: fix stack overwrite on 32-bit in perf map test harness (#104811) | Carl Meyer | 2023-05-23 | 1 | -4/+9 |
| | |||||
* | gh-104770: Let generator.close() return value (#104771) | Nicolas Tessore | 2023-05-23 | 4 | -9/+105 |
| | | | | Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | ||||
* | gh-102120: [TarFile] Add an iter function that doesn't cache (GH-102128) | Robert O'Shea | 2023-05-23 | 4 | -7/+42 |
| | |||||
* | gh-104341: Add a Separate "Running" Lock for Each Thread (gh-104754) | Eric Snow | 2023-05-23 | 2 | -41/+53 |
| | | | | | Having a separate lock means Thread.join() doesn't need to wait for the thread to be cleaned up first. It can wait for the thread's Python target to finish running. This gives us some flexibility in how we clean up threads. (This is a minor cleanup as part of a fix for gh-104341.) | ||||
* | Remove gh-103207 changelog item as it was never part of any release. (GH-104814) | Ned Deily | 2023-05-23 | 1 | -10/+0 |
| | |||||
* | Fix missing/incomplete NULL checks in multiple source files (#104564) | chgnrdv | 2023-05-23 | 5 | -1/+20 |
| | | | Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> | ||||
* | gh-104780: Remove 2to3 program and lib2to3 module (#104781) | Victor Stinner | 2023-05-23 | 135 | -21000/+26 |
| | | | | | | | | | * Remove the Tools/scripts/2to3 script. * Remove the Lib/test/test_lib2to3/ directory. * Doc/tools/extensions/pyspecific.py: remove the "2to3fixer" object type. * Makefile and PC/layout/main.py no longer compile lib2to3 grammar files. * Update Makefile for 2to3 removal. | ||||
* | gh-81005: Refactor str tests to reflect that str and unicode are merged in ↵ | Daniel Fortunov | 2023-05-23 | 5 | -39/+31 |
| | | | | | | Python 3 (#13172) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> | ||||
* | gh-104469: Convert _testcapi/long to use AC (gh-104720) | Dong-hee Na | 2023-05-23 | 2 | -35/+250 |
| | |||||
* | gh-92871: Remove typing.{io,re} namespaces (#92873) | Sebastian Rittau | 2023-05-23 | 5 | -76/+7 |
| | | | | | | Closes #92871 Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | gh-104773: PEP 594: Remove the telnetlib module (#104778) | Victor Stinner | 2023-05-23 | 14 | -1355/+11 |
| | |||||
* | gh-104764: [Enum] fix 3.13-specific tests (GH-104779) | Ethan Furman | 2023-05-23 | 2 | -43/+19 |
| | |||||
* | gh-99108: Release the GIL around hashlib built-in computation (#104675) | Gregory P. Smith | 2023-05-23 | 7 | -15/+207 |
| | | | | | | | This matches the GIL releasing behavior of our existing `_hashopenssl` module, extending it to the HACL* built-ins. Includes adding comments to better describe the ENTER/LEAVE macros purpose and explain the lock strategy in both existing and new code. | ||||
* | Add codeowners for the tokenizer module (#104753) | Pablo Galindo Salgado | 2023-05-22 | 1 | -0/+2 |
| | |||||
* | gh-104764: Skip failing tests in test_enum that started failing. (#104765) | T. Wouters | 2023-05-22 | 1 | -7/+7 |
| | | | Skip failing tests in test_enum that started failing when the version was bumped to 3.13. | ||||
* | Add the 3.12 branch to the github workflows. (#104768) | T. Wouters | 2023-05-22 | 2 | -0/+4 |
| | |||||
* | gh-102304: Temporarily Bump Py_LIMITED_API for 2 New Functions (#104766) | Eric Snow | 2023-05-22 | 1 | -1/+1 |
| | | | Quick and dirty. | ||||
* | Update Windows library names for the Python version bump (#104755) | Kirill Podoprigora | 2023-05-22 | 1 | -2/+2 |
| | |||||
* | Regenerate configure after the Python version bump (#104757) | T. Wouters | 2023-05-22 | 1 | -13/+13 |
| | | | Regenerate configure after the Python version bump. | ||||
* | Fix whatsnew for 3.13. (GH-104756) | Ned Deily | 2023-05-22 | 2 | -0/+1 |
| | |||||
* | GH-104668: Don't call PyOS_* hooks in subinterpreters (GH-104674) | Brandt Bucher | 2023-05-22 | 4 | -7/+47 |
| | |||||
* | Merge branch 'main' of https://github.com/python/cpython into main | Thomas Wouters | 2023-05-22 | 2 | -9/+3 |
|\ | |||||
| * | GH-101291: Avoid using macros with casts in low-level long API. (#104742) | Mark Shannon | 2023-05-22 | 1 | -2/+3 |
| | | |||||
| * | howto/urllib2: remove link to an outdated french translation (GH-104193) | Mathieu Dupuy | 2023-05-22 | 1 | -7/+0 |
| | | | | | | We now have our own translation and it's not outdated | ||||
* | | Python 3.13.0a0 | Thomas Wouters | 2023-05-22 | 5 | -17/+149 |
| | | |||||
* | | Python 3.12.0b1v3.12.0b1 | Thomas Wouters | 2023-05-22 | 232 | -628/+2669 |
|/ | |||||
* | gh-101282: Apply BOLT optimizations to libpython for shared builds (#104709) | Gregory Szorc | 2023-05-22 | 6 | -130/+153 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply BOLT optimizations to libpython for shared builds. Most of the C code is in libpython so it is critical to apply BOLT there fully realize BOLT benefits. This change also reworks how BOLT instrumentation is applied. It effectively removes the readelf based logic added in gh-101525 and replaces it with a mechanism that saves a copy of the pre-bolt binary and restores that copy when necessary. This allows us to perform BOLT optimizations without having to manually delete the output binary to force a new bolt run. Also: - add a clean-bolt target for purging BOLT files and hook that up to the clean target - .gitignore BOLT related files Before and after this refactor, `make` will no-op after a previous run. Both versions should also share common make DAG deficiencies where targets fail to trigger as often as they need to or can trigger prematurely in certain scenarios. e.g. after this change you may need to `rm profile-bolt-stamp` to force a BOLT run because there aren't appropriate non-phony targets for BOLT's make target to depend on. To make it easier to iterate on custom BOLT settings, the flags to pass to instrumentation and application are now defined in configure and can be overridden by passing BOLT_INSTRUMENT_FLAGS and BOLT_APPLY_FLAGS. | ||||
* | gh-104741: Add line number attribute to indentation error exception (#104743) | Marta Gómez Macías | 2023-05-22 | 3 | -8/+20 |
| | |||||
* | gh-102856: Allow comments inside multi-line f-string expresions (#104006) | Cristián Maureira-Fredes | 2023-05-22 | 2 | -7/+38 |
| | |||||
* | gh-94473: Flatten arguments in tkinter.Canvas.coords() (GH-98479) | Serhiy Storchaka | 2023-05-22 | 4 | -1/+21 |
| | | | | | It now accepts not only "x1, y1, x2, y2, ..." and "[x1, y1, x2, y2, ...]", but also "(x1, y1), (x2, y2), ..." and "[(x1, y1), (x2, y2), ...]". | ||||
* | Update macOS installer ReadMe and Welcome screens for 3.12.0b1. (GH-104739) | Ned Deily | 2023-05-22 | 2 | -27/+6 |
| | |||||
* | gh-99834: Update macOS installer to Tcl/Tk 8.6.13. (GH-104738) | Ned Deily | 2023-05-22 | 2 | -3/+4 |
| | |||||
* | gh-104656: Rename typeparams AST node to type_params (#104657) | Jelle Zijlstra | 2023-05-22 | 14 | -287/+290 |
| | |||||
* | gh-104536: Improve `multiprocessing.process._cleanup` logic (#104537) | Luccccifer | 2023-05-22 | 2 | -1/+4 |
| | | | | | | | | | | Fix a race condition in the internal `multiprocessing.process` cleanup logic that could manifest as an unintended `AttributeError` when calling `BaseProcess.close()`. --------- Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> Co-authored-by: Gregory P. Smith <greg@krypto.org> | ||||
* | GH-103092: isolate `_ssl` (#104725) | Kumar Aditya | 2023-05-22 | 3 | -14/+21 |
| | |||||
* | gh-102856: Tokenize performance improvement (#104731) | Marta Gómez Macías | 2023-05-22 | 2 | -13/+17 |
| | |||||
* | gh-104683: clinic.py: Modernise `parse_converter()` using pattern-matching ↵ | Alex Waygood | 2023-05-21 | 1 | -15/+19 |
| | | | | (#104696) | ||||
* | gh-104686: Fix tracing for decorated classes (#104708) | Jelle Zijlstra | 2023-05-21 | 2 | -0/+50 |
| | |||||
* | gh-104683: `clinic.py`: Improve coverage for the `parse_converter` method ↵ | Alex Waygood | 2023-05-21 | 1 | -0/+39 |
| | | | | (#104729) | ||||
* | gh-98836: Extend PyUnicode_FromFormat() (GH-98838) | Serhiy Storchaka | 2023-05-21 | 10 | -288/+585 |
| | | | | | | | | | * Support for conversion specifiers o (octal) and X (uppercase hexadecimal). * Support for length modifiers j (intmax_t) and t (ptrdiff_t). * Length modifiers are now applied to all integer conversions. * Support for wchar_t C strings (%ls and %lV). * Support for variable width and precision (*). * Support for flag - (left alignment). | ||||
* | gh-104050: Add more type annotations to Argument Clinic (#104631) | Erlend E. Aasland | 2023-05-21 | 1 | -23/+44 |
| | | | | | | | Annotate methods of the following classes: - class Function - class Parameter - class LandMine | ||||
* | gh-104050: Add basic type hints to Argument Clinic clinic class (#104705) | Erlend E. Aasland | 2023-05-21 | 1 | -17/+38 |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-104050: Annotate Argument Clinic return converters (#104706) | Erlend E. Aasland | 2023-05-21 | 1 | -30/+75 |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-103857: Document utcnow and utcfromtimestamp deprecations in What's New ↵ | Hugo van Kemenade | 2023-05-21 | 2 | -1/+11 |
| | | | | | | (#104542) Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com> | ||||
* | gh-104719: IDLE - delete useless monkeypatch of tokenize (#104726) | Terry Jan Reedy | 2023-05-21 | 1 | -12/+6 |
| | |||||
* | gh-104719: Restore Tokenize module constants (#104722) | Marta Gómez Macías | 2023-05-21 | 1 | -0/+101 |
| |