summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-117953: Small Cleanup of Extensions-Related Machinery Code (gh-118167)Eric Snow2024-04-233-75/+105
| | | This is a collection of very basic cleanups I've pulled out of gh-118116. It is mostly renaming variables and moving a couple bits of code in functionally equivalent ways.
* gh-118168: Fix Unpack interaction with builtin aliases (#118169)Jelle Zijlstra2024-04-233-2/+39
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-118140: Make the``test_concurrent_futures.test_init`` quiet. (GH-118141)Kirill Podoprigora2024-04-231-1/+2
| | | Add stream argument to unittest.TextTestRunner call
* gh-118082: Improve `import` without names syntax error message (#118083)Nikita Sobolev2024-04-234-149/+219
|
* gh-68114: Fix handling for removed PyArg_ParseTuple 'w' formatters (GH-8204)Joe Jevnik2024-04-234-17/+146
| | | | Co-authored-by: Joe Jevnik <joe@quantopian.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-116984: Install mimalloc headers (#116985)Yichen Yan2024-04-233-2/+22
| | | | - Install mimalloc header only when enabled - Rename WITH_MIMALLOC to INSTALL_MIMALLOC
* gh-118039: Fix config.cache key on WASI (#118137)Nice Zombies2024-04-232-2/+5
|
* gh-95754: Better error when script shadows a standard library or third party ↵Shantanu2024-04-238-53/+456
| | | | module (#113769)
* gh-116741: Upgrade libexpat to 2.6.2 (#117296)Seth Michael Larson2024-04-235-26/+47
| | | Upgrade libexpat to 2.6.2
* GH-118074: Executors in the COLD_EXITS array are not GC'able (#118117)Guido van Rossum2024-04-222-0/+12
|
* Set proper permissions for `jit.yml` workflow (#118084)Nikita Sobolev2024-04-221-0/+3
|
* gh-109118: Allow lambdas in annotation scopes in classes (#118019)Jelle Zijlstra2024-04-224-13/+53
|
* Remove more remnants of deepfreeze (#118159)Guido van Rossum2024-04-225-29/+0
|
* bpo-18108: Adding dir_fd and follow_symlinks keyword args to shutil.chown ↵tahia2024-04-225-4/+53
| | | | | | | | | | | (GH-15811) * Adding dir_fd and follow_symlinks keyword args to shutil.chown * Extending test_shutil.TestShutil.test_chown to include new kwargs * Updating shutil.chown documentation Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Berker Peksag <berker.peksag@gmail.com> Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
* gh-118030: Group definitions for `ParamSpecArgs` and `ParamSpecKwargs` in ↵Nice Zombies2024-04-221-1/+1
| | | | `typing.rst` (#118154)
* gh-118148: Improve tests for shutil.make_archive() (GH-118149)Serhiy Storchaka2024-04-221-71/+176
|
* GH-115480: Reduce guard strength for binary ops when type of one operand is ↵Mark Shannon2024-04-2210-103/+316
| | | | known already (GH-118050)
* gh-115986 Improve pprint documentation accuracy (#117403)Kerim Kabirov2024-04-221-3/+2
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-117995: Don't raise DeprecationWarnings for indexed nameless params (#118001)Erlend E. Aasland2024-04-223-1/+17
| | | | | Filter out '?NNN' placeholders when looking for named params. Co-authored-by: AN Long <aisk@users.noreply.github.com>
* gh-112075: Make instance attributes stored in inline "dict" thread safe ↵Dino Viehland2024-04-2213-142/+419
| | | | | (#114742) Make instance attributes stored in inline "dict" thread safe on free-threaded builds
* Docs: replace Harry Potter reference with Monty Python (#118130)Clément Robert2024-04-211-3/+3
|
* gh-115961: Add name and mode attributes for compressed file-like objects ↵Serhiy Storchaka2024-04-2117-37/+246
| | | | | | | | | | (GH-116036) * Add name and mode attributes for compressed and archived file-like objects in modules bz2, lzma, tarfile and zipfile. * Change the value of the mode attribute of GzipFile from integer (1 or 2) to string ('rb' or 'wb'). * Change the value of the mode attribute of ZipExtFile from 'r' to 'rb'.
* gh-118121: Fix `test_doctest.test_look_in_unwrapped` (#118122)Nikita Sobolev2024-04-211-1/+16
|
* gh-91629 Use conf.d configs and fish_add_path to set the PATH when ↵Andrew Cassidy2024-04-212-6/+8
| | | | | installing for the Fish shell. (GH-91630) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-114099: Formalize Tier 3 status of iOS (GH-118020)Russell Keith-Magee2024-04-212-0/+17
|
* ``Objects/typeobject.c``: Fix typo (#118126)Kirill Podoprigora2024-04-211-1/+1
|
* Clarifying nonlocal doc: SyntaxError is raised if nearest enclosing scope is ↵Quazi Irfan2024-04-211-2/+3
| | | | | global (#114009) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* GH-112855: Speed up `pathlib.PurePath` pickling (#112856)Barney Gale2024-04-202-3/+3
| | | | | | | The second item in the tuple returned from `__reduce__()` is a tuple of arguments to supply to path constructor. Previously we returned the `parts` tuple here, which entailed joining, parsing and normalising the path object, and produced a compact pickle representation. With this patch, we instead return a tuple of paths that were originally given to the path constructor. This makes pickling much faster (at the expense of compactness). It's worth noting that, in the olden times, pathlib performed this parsing/normalization up-front in every case, and so using `parts` for pickling was almost free. Nowadays pathlib only parses/normalises paths when it's necessary or advantageous to do so (e.g. computing a path parent, or iterating over a directory, respectively).
* GH-115874: Fix segfault in FutureIter_dealloc (GH-117741)Savannah Ostrowski2024-04-192-2/+17
|
* gh-116818: Make `sys.settrace`, `sys.setprofile`, and monitoring thread-safe ↵Dino Viehland2024-04-1918-61/+528
| | | | | | | (#116775) Makes sys.settrace, sys.setprofile, and monitoring generally thread-safe. Mostly uses a stop-the-world approach and synchronization around the code object's _co_instrumentation_version. There may be a little bit of extra synchronization around the monitoring data that's required to be TSAN clean.
* [gh-117657] _Py_MergeZeroLocalRefcount isn't loading ob_ref_shared with ↵Dino Viehland2024-04-191-1/+1
| | | | | strong enough semantics (#118111) Use acquire for load of ob_ref_shared
* Fix a typo in dictobject.c documentation (#117515)Noah Kim2024-04-191-1/+1
|
* gh-114099: Modify preprocessor symbol usage to support older macOS SDKs ↵Russell Keith-Magee2024-04-194-4/+12
| | | | | (GH-118073) Co-authored-by: Joshua Root jmr@macports.org
* gh-118100: Improve links in `ast.rst` (#118101)Nikita Sobolev2024-04-191-2/+3
| | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-117657: use relaxed loads for checking dict keys immortality (#118067)Dino Viehland2024-04-192-4/+2
| | | Use relaxed load to check if dictkeys are immortal
* gh-118079: Fix ``requires_singlephase_init`` helper (#118081)Kirill Podoprigora2024-04-191-3/+2
| | | | | Before this PR tests decorated with a `requires_singlephase_init` helper did not run because of an incorrect call to the `requires_gil_enabled` helper.
* gh-114053: Fix bad interaction of PEP-695, PEP-563 and ``get_type_hints`` ↵Alex Waygood2024-04-195-10/+81
| | | | | | (#118009) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-116931: Add fileobj parameter check for Tarfile.addfile (GH-117988)lyc85032024-04-194-9/+25
| | | | | | Tarfile.addfile now throws an ValueError when the user passes in a non-zero size tarinfo but does not provide a fileobj, instead of writing an incomplete entry.
* setobject: remove out of date docstring info (GH-118048)Rostyslav Lobov2024-04-191-1/+1
|
* gh-88035: update doc-string of `epoch` in timemodule.c (GH-118076)lit2024-04-191-2/+2
| | | | | | Follow #88035, update doc-string of epoch in timemodule.c The epoch is `January 1st, 1970 on all platforms`, according to current documentation.
* gh-115775: Add whatsnew entry about __static_attributes__ (GH-117909)Irit Katriel2024-04-193-0/+17
| | | | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-116935: Document that heap types need to support garbage collection ↵Savannah Ostrowski2024-04-191-1/+2
| | | | (GH-118021)
* gh-117518: Clarify PyTuple_GetItem() borrowed reference in the doc (GH-117920)Victor Stinner2024-04-191-0/+6
|
* GH-116202: Incorporate invalidation check into _START_EXECUTOR. (GH-118044)Mark Shannon2024-04-195-4/+10
|
* GH-115419: Improve list of escaping functions (GH-118054)Mark Shannon2024-04-194-25/+37
|
* gh-64588: Clarify the difference between mu and xbar in statistics docs ↵Mariusz Felisiak2024-04-191-7/+7
| | | | | (#117333) Thanks Davin Potts for the clarification idea.
* build(deps): bump hypothesis from 6.98.15 to 6.100.0 in /Tools (#117416)dependabot[bot]2024-04-191-1/+1
| | | | | | | | | | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.98.15 to 6.100.0. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.98.15...hypothesis-python-6.100.0) --- 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>
* Docs: Fix CVE link (#118077)Jelle Zijlstra2024-04-191-1/+1
|
* gh-117535: Change unknown filename of warnings from `sys` to `<sys>` (#118018)Tian Gao2024-04-194-6/+7
|
* Use "Contributed by" in a couple of occurrences of 3.12 whatsnew (#118070)Rafael Fontenelle2024-04-191-3/+3
|