summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-86509: Add link to Lib/_threading_local.py in threading docs (#101824)Owain Davies2023-03-101-1/+1
|
* gh-102519: Add os.listdrives, os.listvolumes and os.listmounts on Windows ↵Steve Dower2023-03-109-1/+375
| | | | (GH-102544)
* gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives in ↵Irit Katriel2023-03-102-26/+21
| | | | `_ctypes` (#102477)
* gh-102378: don't bother stripping `/` from __text_signature__ (#102379)David Hewitt2023-03-093-56/+25
|
* gh-102255: Improve build support for Windows API partitions (GH-102256)Max Bachmann2023-03-0936-100/+633
| | | | | Add `MS_WINDOWS_DESKTOP`, `MS_WINDOWS_APPS`, `MS_WINDOWS_SYSTEM` and `MS_WINDOWS_GAMES` preprocessor definitions to allow switching off functionality missing from particular API partitions ("partitions" are used in Windows to identify overlapping subsets of APIs). CPython only officially supports `MS_WINDOWS_DESKTOP` and `MS_WINDOWS_SYSTEM` (APPS is included by normal desktop builds, but APPS without DESKTOP is not covered). Other configurations are a convenience for people building their own runtimes. `MS_WINDOWS_GAMES` is for the Xbox subset of the Windows API, which is also available on client OS, but is restricted compared to `MS_WINDOWS_DESKTOP`. These restrictions may change over time, as they relate to the build headers rather than the OS support, and so we assume that Xbox builds will use the latest available version of the GDK.
* gh-81057: Vendor a Subset of distutils for the c-analyzer Tool (gh-102505)Eric Snow2023-03-0915-0/+2301
| | | | | distutils was removed in November. However, the c-analyzer relies on it. To solve that here, we vendor the parts the tool needs so it can be run against 3.12+. (Also see gh-92584.) Note that we may end up removing this code later in favor of a solution in common with the peg_generator tool (which also relies on distutils). At the least, the copy here makes sure the c-analyzer tool works on 3.12+ in the meantime.
* gh-100227: Isolate the Import State to Each Interpreter (gh-101941)Eric Snow2023-03-095-74/+85
| | | | | | | | | | | | Specific changes: * move the import lock to PyInterpreterState * move the "find_and_load" diagnostic state to PyInterpreterState Note that the import lock exists to keep multiple imports of the same module in the same interpreter (but in different threads) from stomping on each other. Independently, we use a distinct global lock to protect globally shared import state, especially related to loaded extension modules. For now we can rely on the GIL as that lock but with a per-interpreter GIL we'll need a new global lock. The remaining state in _PyRuntimeState.imports will (probably) continue being global. https://github.com/python/cpython/issues/100227
* gh-100227: Move dict_state.global_version to PyInterpreterState (gh-102338)Eric Snow2023-03-096-109/+160
| | | https://github.com/python/cpython/issues/100227
* GH-84783: Document GH-101264 (Make the slice object hashable) in What's New. ↵T. Wouters2023-03-091-0/+2
| | | | (#102548)
* gh-100227: Move next_keys_version to PyInterpreterState (gh-102335)Eric Snow2023-03-095-13/+23
| | | https://github.com/python/cpython/issues/100227
* gh-100227: Move func_state.next_version to PyInterpreterState (gh-102334)Eric Snow2023-03-085-8/+8
| | | https://github.com/python/cpython/issues/100227
* gh-102304: Consolidate Direct Usage of _Py_RefTotal (gh-102514)Eric Snow2023-03-0810-45/+127
| | | | | This simplifies further changes to _Py_RefTotal (e.g. make it atomic or move it to PyInterpreterState). https://github.com/python/cpython/issues/102304
* gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives ↵Irit Katriel2023-03-088-106/+51
| | | | (in Objects/) (#102218)
* gh-102507 Remove invisible pagebreak characters (#102531)JosephSBoyle2023-03-0816-45/+6
| | | Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
* gh-102515: Remove unused imports in the `Lib/` directory (#102516)Alex Waygood2023-03-0833-41/+8
|
* Remove or update bitbucket links (GH-101963)sblondon2023-03-086-10/+6
| | | | | | Since Mercurial removal from bitbucket.org, some links are broken. They are replaced by github.com or webarchive.org links if available. Otherwise, they are removed. Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-101100: Fix sphinx warnings in `zipapp` and `zipfile` modules (#102526)Nikita Sobolev2023-03-082-2/+2
|
* GH-102397: Fix segfault from race condition in signal handling (#102399)Kumar Aditya2023-03-083-0/+21
| | | Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Fix style in argparse.rst (#101733)Marcin Wieczorek2023-03-081-3/+3
|
* Merge in the release of Python 3.12.0a6.Thomas Wouters2023-03-0813-39/+244
|\
| * fix typo in async generator code field name `ag_code` (#102448)Kumar Aditya2023-03-081-1/+1
| |
| * gh-102381: don't call watcher callback with dead object (#102382)Carl Meyer2023-03-0812-38/+243
| | | | | | Co-authored-by: T. Wouters <thomas@python.org>
* | Post 3.12.0a6Thomas Wouters2023-03-081-1/+1
| |
* | Python 3.12.0a6v3.12.0a6Thomas Wouters2023-03-0783-229/+864
|/
* gh-102493: fix normalization in PyErr_SetObject (#102502)Irit Katriel2023-03-074-4/+56
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-87092: compiler's CFG construction moved to after codegen stage (#102320)Irit Katriel2023-03-071-184/+336
|
* gh-95913: Consolidate build requirements changes in 3.11 WhatsNew (GH-98781)C.A.M. Gerlach2023-03-071-15/+7
| | | | | Apply suggestion to combine build requirements changes in 3.11 WhatsNew Co-authored-by: Petr Viktorin <encukou@gmail.com>
* Remove redundant `_ensure_future` in favor of `ensure_future` in `asyncio` ↵Kumar Aditya2023-03-071-6/+2
| | | | (#102398)
* gh-95913: Edit Faster CPython section in 3.11 WhatsNew (GH-98429)C.A.M. Gerlach2023-03-071-77/+109
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-90110: Fix the c-analyzer Tool (#102483)Eric Snow2023-03-0711-34/+85
| | | | | | | Some incompatible changes had gone in, and the "ignore" lists weren't properly undated. This change fixes that. It's necessary prior to enabling test_check_c_globals, which I hope to do soon. Note that this does include moving last_resort_memory_error to PyInterpreterState. https://github.com/python/cpython/issues/90110
* gh-101759: Update macOS installer SQLite 3.40.1 checksum (gh-102485)Ned Deily2023-03-071-1/+1
|
* Remove unused import of `warnings` from `unittest.loader` (#102479)JosephSBoyle2023-03-061-1/+0
|
* Add gettext support to tools/extensions/c_annotations.py (#101989)Rémi Lapeyre2023-03-062-3/+9
|
* gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives in ↵Irit Katriel2023-03-061-14/+8
| | | | sub interpreters module (#102472)
* gh-95672: Fix versionadded indentation of get_pagesize in test.rst (gh-102455)Hyunkyun Moon2023-03-061-1/+1
|
* gh-102416: Do not memoize incorrectly loop rules in the parser (#102467)Pablo Galindo Salgado2023-03-063-218/+4
|
* GH-101362: Optimise PurePath(PurePath(...)) (GH-101667)Barney Gale2023-03-054-27/+45
| | | | | | | The previous `_parse_args()` method pulled the `_parts` out of any supplied `PurePath` objects; these were subsequently joined in `_from_parts()` using `os.path.join()`. This is actually a slower form of joining than calling `fspath()` on the path object, because it doesn't take advantage of the fact that the contents of `_parts` is normalized! This reduces the time taken to run `PurePath("foo", "bar")` by ~20%, and the time taken to run `PurePath(p, "cheese")`, where `p = PurePath("/foo", "bar", "baz")`, by ~40%. Automerge-Triggered-By: GH:AlexWaygood
* GH-101362: Check pathlib.Path flavour compatibility at import time (GH-101664)Barney Gale2023-03-052-5/+13
| | | | | This saves a comparison in `pathlib.Path.__new__()` and reduces the time taken to run `Path()` by ~5%. Automerge-Triggered-By: GH:AlexWaygood
* GH-101362: Call join() only when >1 argument supplied to pathlib.PurePath() ↵Barney Gale2023-03-052-1/+6
| | | | | | | (#101665) GH-101362: Call join() only when >1 argument supplied to pathlib.PurePath This reduces the time taken to run `PurePath("foo")` by ~15%
* gh-102444: Fix minor bugs in `test_typing` highlighted by pyflakes (#102445)Alex Waygood2023-03-051-19/+2
|
* GH-102341: Improve the test function for pow (#102342)Partha P. Mukherjee2023-03-051-6/+5
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Fix unused classes in a typing test (GH-102437)JosephSBoyle2023-03-051-2/+2
| | | | | As part of investigation issue https://github.com/python/cpython/issues/102433, I discovered what I believe to be an error where two classes `CI` and `DI` are not being used. The assertions beneath them act on `C` and `D`, duplicating existing assertions in this test. Automerge-Triggered-By: GH:AlexWaygood
* gh-101979: argparse: fix a bug where parentheses in metavar argument of ↵Yeojin Kim2023-03-053-3/+34
| | | | add_argument() were dropped (#102318)
* gh-102356: Add thrashcan macros to filter object dealloc (#102426)Marta Gómez Macías2023-03-054-0/+15
| | | Add thrashcan macros to the deallocator of the filter objects to protect against deeply nested destruction of chains of nested filters.
* Move around example in to_bytes() to avoid confusion (#101595)Sergey B Kirpichev2023-03-051-2/+4
| | | | Moves an example to be closer to the sentence that refers to it.
* GH-97546: fix flaky asyncio `test_wait_for_race_condition` test (#102421)Kumar Aditya2023-03-051-1/+1
|
* gh-96821: Add config option `--with-strict-overflow` (#96823)Matthias Görgens2023-03-044-18/+122
| | | | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Shantanu <hauntsaninja@gmail.com>
* gh-101992: update pstlib module documentation (#102133)Dustin Rodrigues2023-03-041-7/+16
|
* gh-63301: Set exit code when tabnanny CLI exits on error (#7699)Jaysinh Shukla2023-03-043-13/+21
| | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-101863: Fix wrong comments in EUC-KR codec (gh-102417)Byeongmin Choi2023-03-042-2/+3
|