summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-110190: Fix ctypes structs with array on Windows ARM64 (GH-114753)Diego Russo2024-01-302-1/+2
|
* gh-106392: Fix inconsistency in deprecation warnings in datetime module ↵Serhiy Storchaka2024-01-301-3/+3
| | | | (GH-114761)
* GH-113464: Add aarch64-apple-darwin/clang to JIT CI (GH-114759)Brandt Bucher2024-01-301-3/+8
|
* gh-101100: Fix references in csv docs (GH-114658)Skip Montanaro2024-01-302-8/+7
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-112606: Use pthread_cond_timedwait_relative_np() in parking_lot.c when ↵Matt Prodani2024-01-304-3/+17
| | | | | | | available (#112616) Add a configure define for HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP and replaces pthread_cond_timedwait() with pthread_cond_timedwait_relative_np() for relative time when supported in semaphore waiting logic.
* GH-70303: Make `pathlib.Path.glob('**')` return both files and directories ↵Barney Gale2024-01-306-23/+35
| | | | | | | | | | | | (#114684) Return files and directories from `pathlib.Path.glob()` if the pattern ends with `**`. This is more compatible with `PurePath.full_match()` and with other glob implementations such as bash and `glob.glob()`. Users can add a trailing slash to match only directories. In my previous patch I added a `FutureWarning` with the intention of fixing this in Python 3.15. Upon further reflection I think this was an unnecessarily cautious remedy to a clear bug.
* ``importlib/_bootstrap.py``: Reduce size of ``_List`` instances (GH-114747)Kirill Podoprigora2024-01-301-1/+1
| | | Reduce size of _List instances
* Clarify one-item tuple (#114745)Terry Jan Reedy2024-01-301-2/+3
| | | | A 'single tuple' means 'one typle, of whatever length. Remove the unneeded and slight distracting parenthetical 'singleton' comment.
* gh-112075: refactor dictionary lookup functions for better re-usability ↵Dino Viehland2024-01-301-97/+95
| | | | | (#114629) Refactor dict lookup functions to use force inline helpers
* gh-113744: Add a new IncompleteInputError exception to improve incomplete ↵Pablo Galindo Salgado2024-01-3011-4/+21
| | | | | input detection in the codeop module (#113745) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-112919: Speed-up datetime, date and time.replace() (GH-112921)Eugene Toder2024-01-307-96/+476
| | | | | Use argument clinic and call new_* functions directly. This speeds up these functions 6x to 7.5x when calling with keyword arguments.
* gh-109975: Copyedit "What's New in Python 3.13" (#114401)Hugo van Kemenade2024-01-301-110/+108
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* GH-114610: Fix `pathlib._abc.PurePathBase.with_suffix('.ext')` handling of ↵Barney Gale2024-01-303-12/+7
| | | | | | | | | stems (#114613) Raise `ValueError` if `with_suffix('.ext')` is called on a path without a stem. Paths may only have a non-empty suffix if they also have a non-empty stem. ABC-only bugfix; no effect on public classes.
* gh-114706: Allow QueueListener.stop() to be called more than once. (GH-114748)Vinay Sajip2024-01-302-3/+5
|
* gh-113732: Fix support of QUOTE_NOTNULL and QUOTE_STRINGS in csv.reader ↵Serhiy Storchaka2024-01-304-18/+57
| | | | (GH-113738)
* gh-103323: Remove current_fast_get() unused parameter (#114593)Victor Stinner2024-01-301-26/+24
| | | | The current_fast_get() static inline function doesn't use its 'runtime' parameter, so just remove it.
* GH-80789: Get rid of the ``ensurepip`` infra for many wheels (#109245)Sviatoslav Sydorenko (Святослав Сидоренко)2024-01-303-108/+73
| | | | | | Co-authored-by: vstinner@python.org Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com> Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* GH-113464: Make Brandt a codeowner for JIT stuff (GH-114739)Brandt Bucher2024-01-301-1/+1
|
* gh-114569: Use PyMem_* APIs for non-PyObjects in compiler (#114587)Erlend E. Aasland2024-01-292-16/+15
|
* Set `hosted_on` for Read the Docs builds (#114697)Hugo van Kemenade2024-01-291-18/+19
|
* gh-114569: Use PyMem_* APIs for non-PyObjects in unicodeobject.c (#114690)Erlend E. Aasland2024-01-291-6/+6
|
* TaskGroup: Use explicit None check for cancellation error (#114708)Matan Perelman2024-01-291-1/+1
|
* gh-114678: Fix incorrect deprecation warning for 'N' specifier in Decimal ↵Serhiy Storchaka2024-01-293-7/+20
| | | | | format (GH-114683) Co-authored-by: Stefan Krah <skrah@bytereef.org>
* gh-112075: Dictionary global version counter should use atomic increments ↵Dino Viehland2024-01-291-0/+6
| | | | | (#114568) Dictionary global version counter should use atomic increments
* gh-112075: Use PyMem_* for allocating dict keys objects (#114543)Dino Viehland2024-01-291-43/+23
| | | Use PyMem_* for keys allocation
* gh-112240: Add option to calendar module CLI to specify the weekday to start ↵Steven Ward2024-01-293-1/+16
| | | | each week (GH-112241)
* Fix more references to datetime and time classes (GH-114717)Serhiy Storchaka2024-01-294-11/+11
| | | They could be confused with references to datetime and time modules.
* gh-85984: Add POSIX pseudo-terminal functions. (GH-102413)Soumendra Ganguly2024-01-299-11/+468
| | | | | Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* Remove limit in calendar CLI help message for year arg (GH-114719)Steven Ward2024-01-291-1/+1
| | | The limit was removed in 66c88ce30ca2b23daa37038e1a3c0de98f241f50 (GH-4109).
* gh-91325: Skip Stable ABI checks with Py_TRACE_REFS special build (GH-92046)Petr Viktorin2024-01-294-20/+48
| | | | | | Skip Stable ABI checks with Py_TRACE_REFS special build This build is not compatible with Py_LIMITED_API nor with the stable ABI.
* gh-112050: Adapt collections.deque to Argument Clinic (#113963)mpage2024-01-297-152/+685
|
* gh-101100: Fix datetime reference warnings (GH-114661)Skip Montanaro2024-01-293-54/+58
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-101100: Fix Sphinx warnings in `whatsnew/2.2.rst` (#112366)Hugo van Kemenade2024-01-292-71/+70
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-101100: Fix sphinx warnings in `Doc/c-api/memoryview.rst` (GH-114669)Nikita Sobolev2024-01-292-1/+13
|
* gh-110893: Improve the documentation for __future__ module (#114642)Shantanu2024-01-291-42/+56
| | | | | | | | | | | nedbat took issue with the phrasing "real module". I'm actually fine with that phrasing, but I do think the `__future__` page should be clear about the way in which the `__future__` module is special. (Yes, there was a footnote linking to the future statements part of the reference, but there should be upfront discussion). I'm sympathetic to nedbat's claim that no one really cares about `__future__._Feature`, so I've moved the interesting table up to the top.
* gh-114685: Fix incorrect use of PyBUF_READ in import.c (GH-114686)Nikita Sobolev2024-01-291-1/+1
|
* gh-109653: Improve import time of importlib.metadata / email.utils (#114664)Shantanu2024-01-293-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My criterion for delayed imports is that they're only worth it if the majority of users of the module would benefit from it, otherwise you're just moving latency around unpredictably. mktime_tz is not used anywhere in the standard library and grep.app indicates it's not got much use in the ecosystem either. Distribution.files is not nearly as widely used as other importlib.metadata APIs, so we defer the csv import. Before: ``` λ hyperfine -w 8 './python -c "import importlib.metadata"' Benchmark 1: ./python -c "import importlib.metadata" Time (mean ± σ): 65.1 ms ± 0.5 ms [User: 55.3 ms, System: 9.8 ms] Range (min … max): 64.4 ms … 66.4 ms 44 runs ``` After: ``` λ hyperfine -w 8 './python -c "import importlib.metadata"' Benchmark 1: ./python -c "import importlib.metadata" Time (mean ± σ): 62.0 ms ± 0.3 ms [User: 52.5 ms, System: 9.6 ms] Range (min … max): 61.3 ms … 62.8 ms 46 runs ``` for about a 3ms saving with warm disk cache, maybe 7-11ms with cold disk cache.
* gh-89159: Add some TarFile attribute types (GH-114520)Stanley2024-01-291-0/+6
| | | | Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* GH-113464: A JIT backend for tier 2 (GH-113465)Brandt Bucher2024-01-290-0/+0
| | | | | | | | Add an option (--enable-experimental-jit for configure-based builds or --experimental-jit for PCbuild-based ones) to build an *experimental* just-in-time compiler, based on copy-and-patch (https://fredrikbk.com/publications/copy-and-patch.pdf). See Tools/jit/README.md for more information, including how to install the required build-time tooling. Merry JIT-mas! ;)
* GH-113464: Add a JIT backend for tier 2 (GH-113465)Brandt Bucher2024-01-2929-5/+1738
| | | | | | | Add an option (--enable-experimental-jit for configure-based builds or --experimental-jit for PCbuild-based ones) to build an *experimental* just-in-time compiler, based on copy-and-patch (https://fredrikbk.com/publications/copy-and-patch.pdf). See Tools/jit/README.md for more information on how to install the required build-time tooling.
* gh-55664: Add warning when creating a type using a namespace dictionary with ↵Furkan Onder2024-01-283-1/+28
| | | | | non-string keys. (GH-105338) Co-authored-by: Daniel Urban <durban@users.noreply.github.com>
* gh-100734: Add 'Notable change in 3.11.x' to `whatsnew/3.11.rst` (#114657)Hugo van Kemenade2024-01-281-0/+26
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fix indentation in `__post_init__` documentation. (gh-114666)Bhushan Mohanraj2024-01-281-2/+2
|
* Correction Skip Montanaro's email address (#114677)Skip Montanaro2024-01-284-5/+5
|
* Use bool in fileinput.input() docstring and tests for the inplace argument ↵Ville Skyttä2024-01-272-3/+3
| | | | | (GH-111998) The `.rst` docs, most tests, and typeshed already use bool for it.
* GH-79634: Speed up pathlib globbing by removing `joinpath()` call. (#114623)Barney Gale2024-01-273-5/+6
| | | | | Remove `self.joinpath('')` call that should have been removed in 6313cdde. This makes `PathBase.glob('')` yield itself *without* adding a trailing slash. It's hard to say whether this is more or less correct, but at least everything else is faster, and there's no behaviour change in the public classes where empty glob patterns are disallowed.
* gh-114100: Remove superfluous writing to fd 1 in test_pty (GH-114647)Serhiy Storchaka2024-01-271-1/+21
|
* gh-101100: Fix sphinx warnings in `reference/import.rst` (#114646)Nikita Sobolev2024-01-272-4/+4
|
* gh-101100: Fix Sphinx warnings in `whatsnew/3.11.rst` and related (#114531)Hugo van Kemenade2024-01-2715-70/+70
|
* gh-113560: Improve docstrings for set.issubset() and set.issuperset() ↵Charlie Zhao2024-01-271-2/+10
| | | | (GH-113562)