summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update outdated info in ``Tools/cases_generator/README.md`` (#114844)Kirill Podoprigora2024-02-011-7/+21
|
* Write about Tier 2 and JIT in "what's new 3.13" (#114826)Guido van Rossum2024-02-011-0/+47
| | | (This will soon be superseded by Ken Jin's much more detailed version.)
* Remove unused Py_XDECREF from _PyFrame_ClearExceptCode (GH-106158)Anders Kaseorg2024-02-011-1/+0
| | | | | | frame->frame_obj was set to NULL a few lines earlier. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
* gh-105089: Fix test_create_directory_with_write test failure in AIX (GH-105228)Ayappan Perumal2024-02-012-1/+5
|
* gh-107461 ctypes: Add a testcase for nested `_as_parameter_` lookup (GH-107462)Tomas R2024-02-011-0/+11
|
* build(deps-dev): bump types-psutil from 5.9.5.17 to 5.9.5.20240106 in /Tools ↵dependabot[bot]2024-02-011-1/+1
| | | | | | | | | | | | | | | | | | (#114852) build(deps-dev): bump types-psutil in /Tools Bumps [types-psutil](https://github.com/python/typeshed) from 5.9.5.17 to 5.9.5.20240106. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-psutil dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump actions/cache from 3 to 4 (#114856)dependabot[bot]2024-02-014-12/+12
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump hypothesis from 6.92.2 to 6.97.4 in /Tools (#114851)dependabot[bot]2024-02-011-1/+1
| | | | | | | | | | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.92.2 to 6.97.4. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.92.2...hypothesis-python-6.97.4) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps-dev): bump types-setuptools from 69.0.0.0 to 69.0.0.20240125 in ↵dependabot[bot]2024-02-011-1/+1
| | | | | | | | | | | | | | | | | | /Tools (#114853) build(deps-dev): bump types-setuptools in /Tools Bumps [types-setuptools](https://github.com/python/typeshed) from 69.0.0.0 to 69.0.0.20240125. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-setuptools dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix typos in ElementTree documentation (GH-108848)Christophe Nanteuil2024-02-011-3/+3
| | | PI objects instead of comment objects.
* gh-114746: Avoid quadratic behavior in free-threaded GC (GH-114817)Sam Gross2024-02-011-73/+29
| | | | | | | | | | | | | | The free-threaded build's GC implementation is non-generational, but was scheduled as if it were collecting a young generation leading to quadratic behavior. This increases the minimum threshold and scales it to the number of live objects as we do for the old generation in the default build. Note that the scheduling is still not thread-safe without the GIL. Those changes will come in later PRs. A few tests, like "test_sneaky_frame_object" rely on prompt scheduling of the GC. For now, to keep that test passing, we disable the scaled threshold after calls like `gc.set_threshold(1, 0, 0)`.
* gh-114364: Fix awkward wording about mmap.mmap.seekable (#114374)technillogue2024-02-012-5/+5
| | | | | | --------- Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-114648: Add IndexError exception to tutorial datastructures list.pop ↵srinivasan2024-02-011-4/+3
| | | | | | entry (#114681) Remove redundant explanation of optional argument.
* gh-67230: Add versionadded notes for QUOTE_NOTNULL and QUOTE_STRINGS (#114816)Skip Montanaro2024-02-011-0/+4
| | | | | As @GPHemsley pointed out, #29469 omitted `versionadded` notes for the 2 new items.
* gh-114811: Change '\*' to '*' in warnings.rst (#114819)Pradyot Ranjan2024-02-011-1/+1
| | | Regression in 3.12.
* CI: Test on macOS M1 (#114766)Hugo van Kemenade2024-02-011-2/+9
| | | Test on macOS M1
* gh-111112: Avoid potential confusion in TCP server example. (#111113)Aidan Holm2024-02-011-3/+4
| | | | | | | | | | | | Improve misleading TCP server docs and example. socket.recv(), as documented by the Python reference documentation, returns at most `bufsize` bytes, and the underlying TCP protocol means there is no guaranteed correspondence between what is sent by the client and what is received by the server. This conflation could mislead readers into thinking that TCP is datagram-based or has similar semantics, which will likely appear to work for simple cases, but introduce difficult to reproduce bugs.
* gh-109534: fix reference leak when SSL handshake fails (#114074)Jamie Phan2024-02-013-0/+8
|
* gh-112087: Make PyList_{Append,Size,GetSlice} to be thread-safe (gh-114651)Donghee Na2024-01-313-8/+21
|
* Add note to `sys.orig_argv` clarifying the difference from `sys.argv` (#114630)Bradley Reynolds2024-01-311-1/+4
| | | Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* gh-114788: Do not run JIT workflow on unrelated changes (#114789)Nikita Sobolev2024-01-311-2/+11
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-113939: Frame clear, clear locals (#113940)Albert Zeyer2024-01-313-0/+27
|
* gh-111741: Recognise image/webp as a standard format in the mimetypes module ↵Nachtalb2024-01-313-3/+3
| | | | | (GH-111742) Previously it was supported as a non-standard type.
* gh-59013: Set breakpoint on the first executable line of function when using ↵Tian Gao2024-01-313-22/+61
| | | | `break func` in pdb (#112470)
* gh-114790: Do not execute `workflows/require-pr-label.yml` on forks (#114791)Nikita Sobolev2024-01-311-0/+1
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Remove Alex Waygood as an Argument Clinic CODEOWNER (#114796)Alex Waygood2024-01-311-2/+2
|
* gh-114737: Revert change to ElementTree.iterparse "root" attribute (GH-114755)Sam Gross2024-01-312-1/+3
| | | | | | Prior to gh-114269, the iterator returned by ElementTree.iterparse was initialized with the root attribute as None. This restores the previous behavior.
* gh-114685: Check flags in PyObject_GetBuffer() (GH-114707)Serhiy Storchaka2024-01-314-2/+19
| | | | | PyObject_GetBuffer() now raises a SystemError if called with PyBUF_READ or PyBUF_WRITE as flags. These flags should only be used with the PyMemoryView_* C API.
* gh-101100: Fix class reference in library/test.rst (GH-114769)Skip Montanaro2024-01-311-1/+1
| | | | | The text clearly seems to be referencing `TestFuncAcceptsSequencesMixin`, for which no target is available. Name the class properly and suppress the dangling reference.
* gh-109653: Speedup import of threading module (#114509)Daniel Hollas2024-01-312-3/+2
| | | | | Avoiding an import of functools leads to 50% speedup of import time. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Docs: mark up dbm.gnu.open() and dbm.ndbm.open() using param list (#114762)Erlend E. Aasland2024-01-311-61/+56
|
* GH-114743: Set a low recursion limit for `test_main_recursion_error()` in ↵Brett Cannon2024-01-312-3/+5
| | | | | `test_runpy` (GH-114772) This can fail under a debug build of WASI when directly executing test.test_runpy.
* pathlib ABCs: drop partial, broken, untested support for `bytes` paths. ↵Barney Gale2024-01-313-21/+29
| | | | | | | (#114777) Methods like `full_match()`, `glob()`, etc, are difficult to make work with byte paths, and it's not worth the effort. This patch makes `PurePathBase` raise `TypeError` when given non-`str` path segments.
* pathlib ABCs: raise `UnsupportedOperation` directly. (#114776)Barney Gale2024-01-312-33/+31
| | | | | Raise `UnsupportedOperation` directly, rather than via an `_unsupported()` helper, to give human readers and IDEs/typecheckers/etc a bigger hint that these methods are abstract.
* 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.