summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add myself to CODEOWNERS for WASM/emscripten and Android (#126210)Russell Keith-Magee2024-10-311-3/+3
| | | Add RKM to CODEOWNERS for WASM/emscripten and Android.
* GH-126205: Fix conversion of UNC paths to file URIs (#126208)Barney Gale2024-10-303-13/+10
| | | File URIs for Windows UNC paths should begin with two slashes, not four.
* gh-121267: Improve performance of tarfile (#121267) (#121269)Johan Förberg2024-10-302-8/+19
| | | | | | | | | | | | | | | Tarfile in the default write mode spends much of its time resolving UIDs into usernames and GIDs into group names. By caching these mappings, a significant speedup can be achieved. In my simple benchmark[1], this extra caching speeds up tarfile by 8x. [1] https://gist.github.com/jforberg/86af759c796199740c31547ae828aef2 --------- Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-125674: Doc: Fix type of `newfunc` first parameter (GH-125675)Richard Hansen2024-10-301-2/+2
| | | | | | | | | * gh-125674: Doc: Fix type of `newfunc` first parameter * fixup! gh-125674: Doc: Fix type of `newfunc` first parameter --------- Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-114990: Add missing mixin methods in collections.abc's document (GH-114991)AN Long2024-10-301-2/+3
| | | Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-125315: Avoid crashing in _wmimodule due to slow WMI calls on some ↵Steve Dower2024-10-302-7/+17
| | | | Windows machines (GH-126141)
* GH-125498: Update JIT builds to use LLVM 19 and preserve_none (GH-125499)Savannah Ostrowski2024-10-3011-78/+69
|
* gh-126055: Add omitted command (in docs [os.walk]) for code to fulfill ↵Victor Wheeler2024-10-301-0/+1
| | | | | | | | | `shutil.rmtree` algorithm (GH-126067) * gh-126055: Add omitted command (in docs [os.walk]) for code to fulfill `shutil.rmtree` algorithm. Resolves #126055 * gh-126055: Fix omitted code highlighting
* gh-60712: Include the "object" type in the lists of documented types (GH-103036)Furkan Onder2024-10-304-18/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add test for the predefined object's attributes * Include the "object" type in the lists of documented types * remove 'or' from augment tuple * 📜🤖 Added by blurb_it. * Add cross-reference to news Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> * Fix format for the function parameter Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> * Add space Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> * add reference for the 'object' Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> * add reference for NotImplemented Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> * Change ref:`string <textseq>` as class:`str` Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> * remove hyphen from `newly-created` * Update Doc/reference/datamodel.rst 'dictionaries' to 'dict' Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> * Update predefined attribute types in testPredefinedAttrs * Change `universal type` as `top type` * Don't mention about the top type * Update the description of richcmpfuncs * Update Doc/library/stdtypes.rst Co-authored-by: Éric <merwok@netwok.org> * Revert: Hierarchy Section in Data Model Documentation * Revert to original explanations of __new__ and __init__ methods in datamodel.rst for improved clarity. * Update Doc/reference/datamodel.rst Co-authored-by: Éric <merwok@netwok.org> * Remove blank line Co-authored-by: Éric <merwok@netwok.org> * Use ref:`str <textseq>` instead of :class:`str Co-authored-by: Éric <merwok@netwok.org> * Revert changes the description of Other Built-in Types in stdtypes.rst * Update Doc/reference/datamodel.rst Co-authored-by: Éric <merwok@netwok.org> --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* Fix incorrect indentation in importlib.metadata.rst (GH-126189)Rafael Fontenelle2024-10-301-3/+3
|
* gh-85583: Add f-string index in tutorial/inputoutput.rst (GH-21681)amaajemyfren2024-10-301-0/+7
| | | | | | | | | | | | * bpo-41411 fstring index in tutorial/inputoutput To assist in searching for fstrings I have added an index * Add newline --------- Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-126068: Fix exceptions in the argparse module (GH-126069)Serhiy Storchaka2024-10-304-58/+72
| | | | | | | | * Only error messages for ArgumentError and ArgumentTypeError are now translated. * ArgumentError is now only used for command line errors, not for logical errors in the program. * TypeError is now raised instead of ValueError for some logical errors.
* gh-125669: Do not run `-ugui` tests by default on `make test` (#125730)sobolevn2024-10-306-4/+20
| | | Adds `make ci` target for use in CI and keeping `make test` for the local development.
* gh-91962: Fix `hstrerror` detection issues on Solaris (GH-91963)Jakub Kulík2024-10-303-9/+88
|
* gh-125206: Correct detection of complex numbers support in libffi (#126104)Sergey B Kirpichev2024-10-303-6/+22
|
* gh-126072: do not add `None` to `co_consts` if there is no docstring (GH-126101)Xuanteng Huang2024-10-3016-58/+148
|
* gh-126071: Improve formatting of the argparse documentation (GH-126073)Serhiy Storchaka2024-10-301-65/+72
| | | | | | | | | * Use appropriate roles for ArgumentParser, Action, etc. * Remove superfluous repeated links. * Explicitly document signatures and add index entries for some methods and classes. * Make it more clear that some parameters are keyword-only. * Fix some minor errors.
* gh-118633: Add warning regarding the unsafe usage of eval and exec (GH-118437)Daniel Ruf2024-10-301-0/+10
| | | | | | | | | | | | | | | | | | | | | | * Add warning regarding the unsafe usage of eval * Add warning regarding the unsafe usage of exec * Move warning under parameters table * Use suggested shorter text Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> * Use suggested shorter text Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> * Improve wording as suggested --------- Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-58032: Docs: Sort argparse alphabetically (GH-125871)Hugo van Kemenade2024-10-302-21/+20
| | | Sort argparse alphabetically
* gh-124855: Don't allow the JIT and perf support to be active at the same ↵Pablo Galindo Salgado2024-10-304-7/+26
| | | | time (#124856)
* docs: restore an anchor to for/else (#126154)Ned Batchelder2024-10-301-0/+1
|
* gh-126139: Improve error message location for future statement with unknown ↵Brian Schubert2024-10-294-8/+18
| | | | feature (#126140)
* gh-125588: Teach the python PEG generator the new f-string tokens (#125589)Pablo Galindo Salgado2024-10-296-2/+61
| | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* Doc: Note that pydoc uses and prefers ``MANPAGER`` (#125362)Matthieu Ancellin2024-10-292-2/+4
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* bpo-41793: Fix an inaccuracy about reflected methods in datamodel docs ↵Wim Jeantine-Glenn2024-10-291-11/+14
| | | | | | | (GH-22257) * Qualifying that the right operand's type must be a *strict* subclass for the reflected method to take precedence avoids an edge case / counter-example when the types are actually equal. Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* gh-116938: Fix `dict.update` docstring and remove erraneous full stop from ↵Prometheus33752024-10-292-3/+3
| | | | | `dict` documentation (#125421) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-126146: Remove ``__cmp__`` method from tests (#126147)Kirill Podoprigora2024-10-292-8/+0
| | | Remove ``__cmp__`` method from the tests because it was removed in 3.0 version.
* gh-124932: Distinguish build prefix from host prefix in cross builds (#124933)Hood Chatham2024-10-294-2/+57
| | | | | | | | | | | | | In Emscripten and other cross builds, the build file system and the host file system look different. For instance, we may want to install into `cross-build/$TARGET/lib`, and then mount that as `/lib` in the host file system. This change adds a distinction between: * `prefix` -- the path in the build file system where we want to install the files * `host_prefix` -- the path in the host file system where getpath.c will look for the files And similarly for `exec_prefix` and `host_exec_prefix`. At present, this is only used for Emscripten.
* GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (#125993)Barney Gale2024-10-291-86/+77
| | | | | | | Merge `URL2PathNameTests` and `PathName2URLTests` test cases (which test only the Windows-specific implementations from `nturl2path`) into the main `Pathname_Tests` test case for these functions. Copy/port some test cases for `pathlib.Path.as_uri()` and `from_uri()`.
* gh-126084: Fix venvwlauncher.exe to run pythonw.exe (GH-126088)Christian Ullrich2024-10-293-1/+24
|
* Add lightweight comments to conf.py and update docs readme (GH-126100)Carol Willing2024-10-292-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update contributing contact info in readme * Add lightweight comments to improve docs workflow understanding * Apply code review suggestions from @hugovk Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> * Add code review suggestion from @AA-Turner Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> * Update Doc/conf.py Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> * Update Doc/conf.py Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> * Update Doc/conf.py Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --------- Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-118423: Add `INSTRUCTION_SIZE` macro to code generator (GH-125467)Tomas R.2024-10-299-34/+115
|
* gh-126105: Fix crash in `ast` module, when `._fields` is deleted (#126115)sobolevn2024-10-294-20/+34
| | | | Previously, if the `ast.AST._fields` attribute was deleted, attempts to create a new `as`t node would crash due to the assumption that `_fields` always had a non-NULL value. Now it has been fixed by adding an extra check to ensure that `_fields` does not have a NULL value (this can happen when you manually remove `_fields` attribute).
* gh-122767: document "new style" formatting for complexes (GH-122848)Sergey B Kirpichev2024-10-291-5/+15
| | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* GH-125837: Split `LOAD_CONST` into three. (GH-125972)Mark Shannon2024-10-2933-538/+706
| | | | | | | | * Add LOAD_CONST_IMMORTAL opcode * Add LOAD_SMALL_INT opcode * Remove RETURN_CONST opcode
* tomllib: Add a comment about implicit lru_cache bound (GH-126078)Taneli Hukkinen2024-10-291-0/+3
|
* gh-126106: Fix `NULL` possible derefrence in `Modules/_ssl.c` (#126111)sobolevn2024-10-292-3/+4
| | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Align functools.reduce() docstring with PEP-257 (#126045)Sergey B Kirpichev2024-10-292-12/+16
| | | Yak-shave in preparation for Argument Clinic adaption in gh-125999.
* gh-126014: Ignore `__pycache__`-only folders in makefile tests (#126066)sobolevn2024-10-291-1/+4
| | | Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
* gh-124928: Emscripten node support: Clean up old node <= 16 flags (#124929)Hood Chatham2024-10-294-83/+12
| | | | | | Clean up configure flags for old node versions These flags are only needed for node <= 16. Node 16 has been end of life since October of 2023.
* gh-89762: Document strftime %G, %V, and %u format specifiers (#124572)RUANG (James Roy)2024-10-281-0/+13
|
* gh-125985: Add free threading scaling micro benchmarks (#125986)Sam Gross2024-10-281-0/+324
| | | | | | | | These consist of a number of short snippets that help identify scaling bottlenecks in the free threaded interpreter. The current bottlenecks are in calling functions in benchmarks that call functions (due to `LOAD_ATTR` not yet using deferred reference counting) and when accessing thread-local data.
* GH-125912: Teach the JIT's optimizer about _BINARY_OP_INPLACE_ADD_UNICODE ↵Brandt Bucher2024-10-282-0/+37
| | | | (GH-125935)
* Pre-commit: prevent spaces in news entry paths (#126063)Hugo van Kemenade2024-10-285-0/+16
|
* Lint GitHub Actions and Dependabot (#126002)Hugo van Kemenade2024-10-287-67/+85
|
* gh-126081: For PRs labeled with "type-feature", require a core review ↵Łukasz Langa2024-10-281-4/+42
| | | | | | (GH-126082) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* GH-125515: Reduce number of compiler warnings in generated code (GH-125697)Mark Shannon2024-10-284-8/+11
|
* gh-126035: add missing whitespace to *Py_EnterRecursiveCall() messages (#126036)Bénédikt Tran2024-10-272-3/+3
|
* gh-124295: Skip translation tests when pygettext is missing (GH-126051)Tomas R.2024-10-271-0/+2
|
* gh-125966: fix use-after-free on `fut->fut_callback0` due to an evil ↵Bénédikt Tran2024-10-273-1/+26
| | | | callback's `__eq__` in asyncio (#125967)