Skip to content

gh-119517: Fixes for pasting in pyrepl #120251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 282 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
282 commits
Select commit Hold shift + click to select a range
cceb758
[3.13] gh-118846: Fix free-threading test failures when run sequentia…
miss-islington May 10, 2024
7dc9e92
[3.13] gh-117657: Log TSAN warnings to separate files and archive the…
miss-islington May 10, 2024
93ef7aa
[3.13] gh-118921: Add `copy()` method for `FrameLocalsProxy` (GH-1189…
miss-islington May 10, 2024
d309474
[3.13] gh-117655: Prevent `test_strptime` from raising a DeprecationW…
miss-islington May 11, 2024
6e855b3
[3.13] gh-118899: Add tests for `NotImplemented` attribute access (GH…
miss-islington May 12, 2024
9d2c10b
[3.13] GH-118844: Fix build failures when combining --disable-gil wit…
miss-islington May 13, 2024
a8ea966
[3.13] gh-87106: Fix inspect.signature.bind() handling of positional-…
miss-islington May 13, 2024
9418832
[3.13] Improve the `rmtree` doc for `dir_fd` param addition in 3.11 (…
miss-islington May 13, 2024
44995aa
gh-118876: Ensure PC/layout sets ns.temp before using it (GH-118880)
miss-islington May 13, 2024
09d4c07
[3.13] gh-58933: Make pdb return to caller frame correctly when f_tra…
miss-islington May 13, 2024
d1aac22
[3.13] gh-119010: Adds docs about `__type_params__` to `functools.upd…
miss-islington May 13, 2024
c7628b0
[3.13] gh-118998: Handle errors correctly in `tmtotuple` in `timemodu…
miss-islington May 13, 2024
29a2f9c
[3.13] GH-118836: Fix JIT build error when SHT_NOTE section is presen…
miss-islington May 13, 2024
8720006
[3.13] gh-67693: Fix urlunparse() and urlunsplit() for URIs with path…
miss-islington May 14, 2024
54839f0
[3.13] Add yet few cases for urlparse/urlunparse roundtrip tests (GH-…
miss-islington May 14, 2024
041cc2a
[3.13] typing tests: remove some unnecessary uses of `exec()` (GH-119…
miss-islington May 14, 2024
87f683e
[3.13] Itertools docs: fix parameter names and indentation in Python …
miss-islington May 14, 2024
8439d09
[3.13] Misc improvements to the itertools docs (gh-119040) (#119045)
miss-islington May 14, 2024
dd8a61f
[3.13] 3.13 What's New: Add PEP 702 (GH-118922) (#119062)
miss-islington May 15, 2024
e1dfa97
gh-118486: Simplify test_win32_mkdir_700 to check the exact ACL (GH-1…
miss-islington May 15, 2024
f85d59c
[3.13] Remove references to private symbols from zipimport module doc…
miss-islington May 15, 2024
4f81915
[3.13] gh-118760: Fix errors in calling Tkinter bindings on Windows (…
miss-islington May 15, 2024
7c224dd
[3.13] gh-119009: Add gettext target (GH-119006) (#119074)
miss-islington May 15, 2024
bca7fb0
[3.13] Use literal syntax in origin property (GH-119029) (#119083)
miss-islington May 16, 2024
1dc7fcd
[3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in t…
miss-islington May 16, 2024
8a4730e
[3.13] Add Tkinter tests for different events (GH-118778) (GH-119091)
miss-islington May 16, 2024
c69fe80
[3.13] gh-108267: Fix object.__setattr__ regression in dataclasses do…
miss-islington May 16, 2024
45fbca9
[3.13] Explain how to install LLVM on Fedora (GH-119100)
miss-islington May 16, 2024
acffe20
[3.13] GH-118943: Fix a race condition when generating jit_stencils.h…
miss-islington May 16, 2024
ada4ad0
[3.13] Fix typos in documentation (GH-119092) (#119116)
miss-islington May 17, 2024
ced71d3
[3.13] gh-119049: Fix incorrect display of warning which is construct…
miss-islington May 17, 2024
374655f
[3.13] Minor improvements to the docs for itertools.tee() (gh-119135)…
miss-islington May 18, 2024
1bb3a9d
[3.13] gh-119078: Clarify venv tutorial (GH-119129) (GH-119142)
miss-islington May 18, 2024
9c2de86
[3.13] gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (GH-11…
miss-islington May 18, 2024
641e59d
[3.13] docs: make mimalloc license text literal (GH-119046) (#119149)
miss-islington May 18, 2024
ec88e9f
[3.13] gh-119132: Update sys.version to identify free-threaded or not…
miss-islington May 18, 2024
9129614
[3.13] gh-119050: Add type hints to libregrtest/results.py (GH-119144…
miss-islington May 18, 2024
7407267
[3.13] GH-118447: Fix handling of unreadable symlinks in `os.path.rea…
miss-islington May 18, 2024
bc5e47c
[3.13] marshal docs: Remove reference to "Sun" (GH-119161) (#119167)
miss-islington May 19, 2024
fdc50ba
[3.13] GH-118447: Fix FreeBSD test failures. (GH-119170) (#119181)
miss-islington May 19, 2024
27b61c1
[3.13] GH-119113: Raise `TypeError` from `pathlib.PurePath.with_suffi…
miss-islington May 19, 2024
3b90807
[3.13] IDLE: fix url in config.py comment (GH-119198) (#119199)
miss-islington May 20, 2024
3a8ab99
[3.13] gh-119121: Fix and test `async.staggered.staggered_race` (GH-1…
miss-islington May 20, 2024
cbf064b
[3.13] typing docs: Fix formatting issue (GH-119210) (#119212)
miss-islington May 20, 2024
a52ed7e
[3.13] gh-119185: Fix typo in `_pyrepl.pager`: `tempfilepager` should…
miss-islington May 20, 2024
8f3fc01
[3.13] [docs] TypeVarTuple default is keyword-only (GH-119215) (#119224)
miss-islington May 20, 2024
e370b64
[3.13] gh-115119: Fall back to bundled libmpdec if system libmpdec is…
miss-islington May 20, 2024
a6b873f
[3.13] GH-119146: Don't run JIT CI on unrelated changes (GH-119226)
miss-islington May 20, 2024
fda3291
[3.13] DOCS: Suggest always calling exec with a globals argument and …
miss-islington May 20, 2024
d8c562a
[3.13] gh-112844: Update CPE references for external dependencies (GH…
miss-islington May 20, 2024
054f1af
[3.13] gh-92081: Fix for email.generator.Generator with whitespace be…
miss-islington May 20, 2024
906f6cb
[3.13] Use correct markup in unittest.mock.reset_mock documentation (…
miss-islington May 20, 2024
b4462aa
[3.13] gh-118760: Restore the default value of tkinter.wantobjects to…
miss-islington May 20, 2024
572b0b0
[3.13] gh-119189: Add more tests for mixed Fraction arithmetic (GH-11…
miss-islington May 20, 2024
071d996
[3.13] gh-119253: use ImportError in _ios_support (GH-119254) (#119265)
miss-islington May 20, 2024
42a8d11
[3.13] gh-119050: Add XML support to libregrtest refleak checker (GH-…
miss-islington May 20, 2024
d8fbe5b
[3.13] gh-108267 Fix another dataclasses docs typo (GH-119277) (#119279)
miss-islington May 20, 2024
24b0e8d
[3.13] gh-118912: Remove description of issue fixed in 3.5 from autos…
miss-islington May 20, 2024
f7303cd
[3.13] gh-119174: Fix high DPI causes turtledemo(turtle-graphics exam…
miss-islington May 21, 2024
db64dae
[3.13] gh-74929: PEP 667 general docs update (gh-119291)
miss-islington May 21, 2024
49ad4d0
[3.13] Use `fail-fast: false` in `mypy.yml` (GH-119297) (#119304)
miss-islington May 21, 2024
f028451
[3.13] gh-119102: Fix REPL for dumb terminal (GH-119269) (#119308)
miss-islington May 21, 2024
1929b7e
[3.13] Docs: Ensure no warnings are found in the NEWS file before a g…
hugovk May 21, 2024
dcb8030
[3.13] gh-119053: Implement the fast path for list.__getitem__ (gh-11…
miss-islington May 21, 2024
d93c4f9
[3.13] GH-119292: Add job to JIT CI to build and test with --disable-…
miss-islington May 21, 2024
11ca1d9
[3.13] GH-110383: Improve Tutorial for Input Ouput (GH-119230) (GH-11…
miss-islington May 21, 2024
256b791
[3.13] gh-110383: Document `socket.makefile()` accepts combined modes…
miss-islington May 21, 2024
8860f83
[3.13] gh-119035: Add Ctrl+← and Ctrl+→ word-skipping keybindings to …
miss-islington May 21, 2024
fef202f
[3.13] Fix typos in documentation (GH-119295) (#119337)
miss-islington May 21, 2024
0582016
[3.13] Docs: Add central references to free-threading-related options…
miss-islington May 21, 2024
f371565
[3.13] gh-119102: Fix REPL for dumb terminal (GH-119332) (#119359)
miss-islington May 22, 2024
f15fbe9
gh-118507 : Refactor `nt._path_is*` to improve applicability for othe…
miss-islington May 22, 2024
e992217
[3.13] gh-118877: Fix AssertionError crash in pyrepl (GH-118936) (#11…
miss-islington May 22, 2024
455b386
[3.13] gh-110383: Align dict.get(), .fromkeys(), and .setdefault() do…
miss-islington May 22, 2024
b5b0e32
[3.13] DOCS: fix error in exec namespace note (gh-119380)
miss-islington May 22, 2024
f757996
[3.13] Clarify that dklen is expected in bytes for the hashlib functi…
miss-islington May 22, 2024
ec484b6
[3.13] gh-119189: Add yet more tests for mixed Fraction arithmetic (G…
miss-islington May 22, 2024
0e61989
[3.13] Fix typos in NEWS entries for 3.13 (GH-119374) (GH-119385)
miss-islington May 22, 2024
414346e
[3.13] Fix version number in use_load_tests deprecation reference (GH…
miss-islington May 22, 2024
6892b40
[3.13] gh-118643: Fix AttributeError in the email module (GH-119099) …
miss-islington May 22, 2024
7214598
[3.13] gh-119306: Break up _pyrepl tests (GH-119307) (#119362)
lysnikolaou May 22, 2024
ac91636
[3.13] gh-111201: Remove readline dependency from the PyREPL (GH-1192…
lysnikolaou May 22, 2024
aefe2e6
[3.13] gh-111201: Add append to screen method to avoid recalculation …
miss-islington May 22, 2024
eafd633
[3.13] gh-119205: Fix autocompletion bug in new repl (GH-119229) (#11…
miss-islington May 22, 2024
a463cd8
[3.13] gh-118893: Evaluate all statements in the new REPL separately …
miss-islington May 22, 2024
bfd9c3e
[3.13] gh-119213: Be More Careful About _PyArg_Parser.kwtuple Across …
miss-islington May 22, 2024
cd39da7
[3.13] Improve `pyrepl` type-annotation coverage (GH-119081) (#119415)
miss-islington May 22, 2024
0841606
[3.13] gh-119247: Add macros to use PySequence_Fast safely in free-th…
miss-islington May 22, 2024
0bd7c87
[3.13] gh-112066: Fix versionadded in PyDict_SetDefaultRef docs (GH-1…
miss-islington May 22, 2024
3e30a38
gh-117505: Run ensurepip in isolated env in Windows installer (GH-118…
miss-islington May 22, 2024
e6e4efc
[3.13] gh-119357: Increase test coverage for keymap in _pyrepl (GH-11…
lysnikolaou May 22, 2024
6bc7fc0
[3.13] gh-113978: Ignore warnings on text completion inside REPL (GH-…
miss-islington May 22, 2024
81440c5
[3.13] Enable some stricter mypy settings on `Lib/_pyrepl` (GH-119077…
miss-islington May 22, 2024
9435124
[3.13] gh-111201: auto-indentation in _pyrepl (GH-119348) (#119427)
lysnikolaou May 22, 2024
a6ed742
[3.13] gh-70795: Rework RLock documentation (GH-103853) (#119436)
miss-islington May 22, 2024
cd35e9d
[3.13] gh-117657: Fix missing atomic in dict_resize (GH-119312) (#119…
miss-islington May 22, 2024
dbff1f1
[3.13] gh-119434: Fix culmitive errors in wrapping as lines proceed (…
miss-islington May 23, 2024
9fa1b4f
[3.13] gh-118911: Trailing whitespace in a block shouldn't prevent th…
lysnikolaou May 23, 2024
58dbb4a
[3.13] gh-111201: Speed up paste mode in the REPL (#119341) (GH-11943…
miss-islington May 23, 2024
89e2689
[3.13] gh-90562: Mention slots pitfall in dataclass docs (GH-107391) …
miss-islington May 23, 2024
dbe4f8a
[3.13] Fix typos in what's new documentation (GH-119448) (#119449)
miss-islington May 23, 2024
251ef2e
[3.13] GH-117195: Avoid assertion error in `object.__sizeof__` (GH-11…
miss-islington May 23, 2024
8fd8cc5
[3.13] gh-119469: Fix _pyrepl reference leaks (GH-119470) (#119471)
miss-islington May 23, 2024
d98d6b1
[3.13] gh-118727: Don't drop the GIL in `drop_gil()` unless the curre…
miss-islington May 23, 2024
c750061
[3.13] gh-119461: Fix ThreadedVSOCKSocketStreamTest (#119465) (#119479)
vstinner May 23, 2024
e27e369
[3.13] GH-113464: Run the JIT interpreter before any other JIT CI (GH…
miss-islington May 24, 2024
c864efb
[3.13] gh-118692: Avoid creating unnecessary StopIteration instances …
miss-islington May 24, 2024
0bab0b3
[3.13] gh-69214: Fix fcntl.ioctl() request type (GH-119498) (#119504)
miss-islington May 24, 2024
217d57f
[3.13] GH-119496: accept UTF-8 BOM in .pth files (GH-119508)
miss-islington May 24, 2024
cc38ee1
gh-118263: Add additional arguments to path_t (Argument Clinic type) …
miss-islington May 24, 2024
392a3d8
[3.13] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-119520) (#119…
miss-islington May 24, 2024
5544651
[3.13] Misc improvement to the docs for itertools (gh-119529) (#119531)
rhettinger May 24, 2024
f49749c
[3.13] gh-111999: Fix the signature of str.format_map() (GH-119540) (…
miss-islington May 25, 2024
317cc3b
[3.13] FAQ: Add reference to Python version numbering scheme (GH-1192…
miss-islington May 25, 2024
2404cd9
[3.13] gh-99180: Make `StackSummary.should_show_carets` private (GH-1…
miss-islington May 25, 2024
3f0198d
[3.13] docs: fix a few typos identified by codespell (GH-119516) (#11…
miss-islington May 26, 2024
825a5ae
[3.13] gh-111997: Fix argument count for LINE event and clarify type …
miss-islington May 26, 2024
46d7712
[3.13] Fix typos in HISTORY documentation (GH-119453) (#119597)
miss-islington May 27, 2024
f1302c1
[3.13] gh-119467: Fix Py_buffer.format type and correct documentation…
miss-islington May 27, 2024
ba71835
[3.13] Docs: Only install sphinx-autobuild for `make htmllive` (GH-11…
miss-islington May 27, 2024
9edf010
[3.13] gh-119580: Improve version added section for convenience varia…
miss-islington May 27, 2024
8117cb5
[3.13] Misc cleanups and wording improvements for the itertools docs …
miss-islington May 27, 2024
0a4a318
[3.13] Docs: Move inline JavaScript to own file to reduce duplication…
hugovk May 27, 2024
bd9983c
[3.13] gh-119560: Drop an Invalid Assert in PyState_FindModule() (gh-…
miss-islington May 27, 2024
660125f
[3.13] gh-119584: Fix test_import Failed Assertion (gh-119623) (gh-11…
miss-islington May 27, 2024
d58ebf0
[3.13] gh-117398: Add multiphase support to _datetime (gh-119373) (gh…
miss-islington May 27, 2024
7322ff1
[3.13] gh-119317: findall instead of traverse for docutils nodes (GH-…
miss-islington May 27, 2024
9216a53
[3.13] gh-117398: Revert gh-119636, Add multiphase support to _dateti…
ericsnowcurrently May 28, 2024
3b111a3
[3.13] gh-116860: Remove outdated `test_parserhack` from `test_future…
miss-islington May 28, 2024
dcf585d
[3.13] Re-order imports to align with zipp 3.18.2 (GH-119587) (#119589)
miss-islington May 28, 2024
47fb0f8
[3.13] [doc] Clarify the nature of the root logger in the `logging` d…
miss-islington May 28, 2024
cc8586a
[3.13] Clarify base64.a85encode docs: *wrapcols* doesn't count the ne…
miss-islington May 28, 2024
2b46253
[3.13] gh-119581: Add a test of InitVar with name shadowing (GH-11958…
miss-islington May 28, 2024
6394a72
[3.13] gh-119311: Fix name mangling with PEP 695 generic classes (#11…
JelleZijlstra May 28, 2024
c0e9961
[3.13] gh-119011: `type.__type_params__` now return an empty tuple (G…
miss-islington May 28, 2024
0d0be6b
[3.13] gh-119118: Fix performance regression in tokenize module (GH-1…
miss-islington May 28, 2024
12a580b
[3.13] gh-117398: Statically Allocate the Datetime C-API (GH-119472) …
ericsnowcurrently May 28, 2024
ef9fd10
[3.13] gh-119538: Add missing expat build dependencies (GH-119647) (#…
miss-islington May 28, 2024
17d3398
[3.13] gh-119443: Turn off from __future__ import annotations in REPL…
miss-islington May 29, 2024
7a9534f
[3.13] gh-119704: Fix reference leak in the ``Python/Python-tokenize.…
miss-islington May 29, 2024
48c7776
[3.13] gh-119661: Add _Py_SINGLETON() include in Argumenet Clinic (#1…
vstinner May 29, 2024
40a024c
[3.13] gh-119555: catch SyntaxError from compile() in the Interactive…
miss-islington May 29, 2024
dcfbd3b
[3.13] gh-119525: Fix deadlock with `_PyType_Lookup` and the GIL (GH-…
miss-islington May 29, 2024
c3cfc04
gh-119070: Fix py.exe handling of /usr/bin/env commands missing exten…
miss-islington May 29, 2024
061abf8
[3.13] GH-89727: Partially fix `shutil.rmtree()` recursion error on d…
miss-islington May 29, 2024
a7aa7c4
[3.13] GH-119169: Implement `pathlib.Path.walk()` using `os.walk()` (…
miss-islington May 29, 2024
af57832
[3.13] gh-117398: Add multiphase support to _datetime (gh-119694)
ericsnowcurrently May 29, 2024
06c62d6
[3.13] gh-119260: Clarify is_dataclass Behavior for Subclasses in Doc…
miss-islington May 30, 2024
810a09a
[3.13] GH-89727: Fix `os.fwalk()` recursion error on deep trees (GH-1…
miss-islington May 30, 2024
083bf3a
[3.13] GH-89727: Fix FD leak on `os.fwalk()` generator finalization. …
miss-islington May 30, 2024
1eddc9e
[3.13] subprocess docs: Fix semantically important typo (GH-119752) (…
miss-islington May 30, 2024
d1c7f5e
[3.13] gh-118055: Update the finder glossary entry (GH-118278) (GH-11…
miss-islington May 30, 2024
322e0ad
[3.13] gh-117142: Slightly hacky fix for memory leak of StgInfo (GH-1…
miss-islington May 30, 2024
a7327b3
[3.13] gh-119779: Fix pyporting howto docs (GH-119785) (#119788)
miss-islington May 30, 2024
5a037b7
[3.13] gh-117398: Convert datetime.IsoCalendarDate To A Heap Type (gh…
miss-islington May 30, 2024
608cfb8
[3.13] gh-119729: Use 't' in pkg-config file name for free-threaded b…
miss-islington May 30, 2024
d6bede8
[3.13] gh-119791: Fix new Tkinter tests for wantobjects=0 (GH-119792)…
miss-islington May 30, 2024
844b535
[3.13] gh-109218: Improve documentation for the complex() constructor…
miss-islington May 30, 2024
1e75dc7
[3.13] Docs: `shutil.rmtree`'s `onerror` has no pending removal versi…
miss-islington May 30, 2024
978b86a
[3.13] gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322) …
miss-islington May 30, 2024
8470593
[3.13] gh-119548: Add a 'clear' command to the REPL (GH-119549) (#119…
miss-islington May 31, 2024
7dae73b
[3.13] gh-97747: Improvements to WASM browser REPL. (GH-97665) (GH-11…
miss-islington May 31, 2024
38bf39c
[3.13] gh-111201: Improve pyrepl auto indentation (GH-119606) (GH-119…
miss-islington May 31, 2024
5539bd9
[3.13] gh-103194: Fix Tkinter’s Tcl value type handling for Tcl 8.7/9…
miss-islington May 31, 2024
6e57bd0
gh-116145: Updated bundled Tcl/Tk on Windows to 8.6.14 (GH-117030)
miss-islington May 31, 2024
d6faac6
[3.13] gh-111201: Support pyrepl on Windows (GH-119559) (GH-119850)
miss-islington May 31, 2024
ea48de4
[3.13] gh-119585: Fix crash involving `PyGILState_Release()` and `PyT…
miss-islington May 31, 2024
8e0777d
gh-119690: Adds Unicode support for named pipes in _winapi (GH-119717)
miss-islington May 31, 2024
24e3a8a
[3.13] gh-100117: Fix inaccuracy in documentation of the CodeObject's…
miss-islington May 31, 2024
eb5e19a
[3.13] contextlib docs: Clean up redundant 'up' after 'cleanup' (GH-1…
miss-islington May 31, 2024
5e8396e
[3.13] doc: Add glossary entry for "free threading" (GH-119865) (#119…
miss-islington May 31, 2024
a7e81fd
[3.13] gh-119369: Fix deadlock during thread exit in free-threaded bu…
miss-islington May 31, 2024
67ac191
[3.13] gh-119799: Add missing `_Py_IncRefTotal` to `_Py_NewRefWithLoc…
miss-islington May 31, 2024
a5272e6
[3.13] gh-118894: Make asyncio REPL use pyrepl (GH-119433) (#119884)
miss-islington May 31, 2024
0a266f7
[3.13] gh-74929: PEP 667 C API documentation (gh-119892)
miss-islington Jun 1, 2024
a055984
[3.13] gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBA…
JelleZijlstra Jun 1, 2024
48f3378
[3.13] gh-117657: Fix TSAN race in free-threaded GC (GH-119883) (#119…
miss-islington Jun 1, 2024
48054d2
[3.13] gh-117657: Fix TSAN race in QSBR assertion (GH-119887) (#119904)
miss-islington Jun 1, 2024
4e147ca
[3.13] Revert "[3.13] gh-69214: Fix fcntl.ioctl() request type (GH-11…
vstinner Jun 1, 2024
0ea77d4
[3.13] gh-113892: Add a extra check to `ProactorEventLoop.sock_connec…
miss-islington Jun 1, 2024
9f9be95
[3.13] gh-117657: Add TSAN suppression for `set_discard_entry` (GH-11…
miss-islington Jun 1, 2024
99d0f51
[3.13] Add unique() recipe to itertools docs (gh-119911) (gh-119916)
miss-islington Jun 1, 2024
225c3cd
[3.13] GH-89727: Fix `shutil.rmtree()` recursion error on deep trees …
miss-islington Jun 1, 2024
ac35d96
[3.13] gh-111201: Skip pyrepl Windows tests earlier (#119848) (#119924)
vstinner Jun 1, 2024
edb6883
[3.13] gh-119016: Remove outdated sentences from the "classes" tutori…
miss-islington Jun 1, 2024
36ca00f
[3.13] gh-118888: Further PEP 667 docs updates (gh-119894)
miss-islington Jun 2, 2024
cf8f292
[3.13] gh-118934: Fix PyEval_GetLocals docs (PEP 667) (GH-119934)
miss-islington Jun 2, 2024
9d3de7b
[3.13] gh-117657: Fix TSAN reported race in `_PyEval_IsGILEnabled`. (…
miss-islington Jun 2, 2024
cfec22c
[3.13] Improve documentation for typing.get_type_hints (GH-119928) (#…
miss-islington Jun 2, 2024
590fd9c
[3.13] GH-119054: Add "Querying file type and status" section to path…
barneygale Jun 2, 2024
d33b086
[3.13] GH-119054: Add "Reading and writing files" section to pathlib …
miss-islington Jun 2, 2024
3709e1b
[3.13] gh-109975: What's New in Python 3.13: fix broken link for `tel…
miss-islington Jun 3, 2024
e5dfcea
[3.13] gh-117657: Fix data races report by TSAN unicode-hash (gh-1199…
miss-islington Jun 3, 2024
c3fc3a2
[3.13] gh-119856: Support exiting help() with just "exit" (GH-119858)…
miss-islington Jun 3, 2024
cc663b7
[3.13] gh-119336: Restore removed _PyLong_NumBits() function (GH-1194…
miss-islington Jun 3, 2024
6db1eb9
[3.13] gh-119968: Improved monitoring c-api docs (GH-119969) (#119971)
miss-islington Jun 3, 2024
b26b410
gh-102511: Amend 3.13.0b1.rst (GH-119895)
miss-islington Jun 3, 2024
671b740
gh-119679: Ensures correct import libraries are included in Windows i…
miss-islington Jun 3, 2024
060d846
[3.13] Use Cirrus M1 macOS runners for CI (GH-119979) (GH-119986)
miss-islington Jun 3, 2024
6b10467
[3.13] gh-118835: pyrepl: Fix prompt length computation for custom pr…
miss-islington Jun 3, 2024
ca37034
[3.13] gh-117657: Avoid `sem_clockwait` in TSAN (GH-119915) (#119992)
miss-islington Jun 3, 2024
ae70531
[3.13] gh-117657: Fix race involving immortalizing objects (GH-119927…
colesbury Jun 3, 2024
79fae3b
[3.13] gh-117657: Fix itertools.count thread safety (GH-119268) (#120…
colesbury Jun 3, 2024
39510da
[3.13] gh-117398: Add datetime Module State (gh-120004)
miss-islington Jun 3, 2024
c348e27
[3.13] gh-117142: Support Importing ctypes in Isolated Interpreters (…
miss-islington Jun 3, 2024
e5fb3a2
[3.13] gh-117398: Use Per-Interpreter State for the _datetime Static …
miss-islington Jun 3, 2024
6be55f1
[3.13] gh-119724: Revert "bpo-45759: Better error messages for non-ma…
Yhg1s Jun 4, 2024
1177897
[3.13] gh-111389: Add PyHASH_MULTIPLIER constant (GH-119214) (#119334)
miss-islington Jun 4, 2024
6e67fd5
[3.13] gh-111499: Fix PYTHONMALLOCSTATS at Python exit (GH-120021) (#…
miss-islington Jun 4, 2024
6ce2810
[3.13] gh-119070: Update test_shebang_executable_extension to always …
miss-islington Jun 4, 2024
feaecf8
[3.13] gh-118868: logging QueueHandler fix passing of kwargs (GH-1188…
miss-islington Jun 4, 2024
720a44d
[3.13] gh-119819: Fix regression to allow logging configuration with …
miss-islington Jun 4, 2024
ee7d268
[3.13] gh-117657: Fix race involving GC and heap initialization (GH-1…
miss-islington Jun 4, 2024
23ebf87
[3.13] gh-106531: Apply changes from importlib_resources 6.3.2 (GH-11…
miss-islington Jun 4, 2024
34a6d89
[3.13] gh-119588: Implement zipfile.Path.is_symlink (zipp 3.19.0). (G…
miss-islington Jun 4, 2024
6725c78
[3.13] gh-119588: Update docs to reflect decision to include the chan…
miss-islington Jun 4, 2024
54023a6
[3.13] Fix incorrect pull GitHub link in What's New (GH-120045) (#120…
miss-islington Jun 4, 2024
2acbdc2
[3.13] gh-89928: Fix integer conversion of device numbers (GH-31794) …
miss-islington Jun 4, 2024
8d74eae
[3.13] gh-120041: Do not use append_to_screen when completions are vi…
miss-islington Jun 4, 2024
fd5428d
[3.13] gh-120039: Reduce expected timeout in test_siginterrupt_off (G…
miss-islington Jun 4, 2024
93b95e9
[3.13] gh-119553: Clear reader on Ctrl-C command (GH-119801) (#120062)
miss-islington Jun 4, 2024
eea45ea
[3.13] gh-119842: Honor PyOS_InputHook in the new REPL (GH-119843) (G…
ambv Jun 4, 2024
7edc6bd
[3.13] gh-119819: Update test to skip if _multiprocessing is unavaila…
miss-islington Jun 4, 2024
327a36a
[3.13] gh-119999: Fix potential race condition in `_Py_ExplicitMergeR…
miss-islington Jun 4, 2024
a9e807f
[3.13] gh-120048: Make `test_imaplib` faster (GH-120050) (#120069)
miss-islington Jun 4, 2024
4ac0ccf
[3.13] gh-119553: Fix console when pressing Ctrl-C within a multiline…
miss-islington Jun 4, 2024
a653562
[3.13] gh-114616: Improve docs regarding changes to caches representa…
miss-islington Jun 4, 2024
df8a98a
[3.13] gh-120078: Fix struct_time attr typo tm_day -> tm_mday in Doc/…
miss-islington Jun 5, 2024
71f86ee
[3.13] gh-119819: Update logging configuration to support joinable mu…
miss-islington Jun 5, 2024
8e0c80a
[3.13] gh-119287: clarify doc on BaseExceptionGroup.derive and link t…
miss-islington Jun 5, 2024
f561258
[3.13] gh-120065: Increase `collect_in_thread` period to 5 ms. (GH-12…
miss-islington Jun 5, 2024
3a83b17
Python 3.13.0b2
Yhg1s Jun 5, 2024
8ac0855
[3.13] Withdraw most of my ownership in favor of Mark (#120126)
gvanrossum Jun 5, 2024
1ba3cce
Post 3.13.0b2
Yhg1s Jun 5, 2024
3a84779
Merge branch '3.13' of https://github.com/python/cpython into 3.13
Yhg1s Jun 5, 2024
13e5f45
[3.13] gh-120111: Don't use cirrus M1 macOS runners on fork (GH-12011…
miss-islington Jun 6, 2024
fbdff38
gh-119679: Fix layout of PYD and DLL files on Windows when using PC/l…
miss-islington Jun 6, 2024
015ddfe
[3.13] Restore decimal context after decimal doctests (GH-120149) (GH…
miss-islington Jun 6, 2024
517733c
[3.13] gh-117657: Fix TSAN race involving import lock (GH-118523) (#1…
miss-islington Jun 6, 2024
d4566c0
[3.13] GH-119054: Add "Reading directories" section to pathlib docs (…
barneygale Jun 7, 2024
1ae5586
Remove pyrepl's optimization for self-insert
godlygeek Jun 7, 2024
4e25383
Use line-buffering when pyrepl echoes pastes
godlygeek Jun 7, 2024
0e6d02b
Remove dead code from pyrepl
godlygeek Jun 7, 2024
73fa40c
Speed up pyrepl's screen rendering computation
godlygeek Jun 7, 2024
f66da51
Speed up pyrepl prompt drawing
godlygeek Jun 7, 2024
52366ba
Speed up pasting multiple lines into the REPL
godlygeek Jun 7, 2024
fc9e71b
Use a read buffer for input in pyrepl
godlygeek Jun 7, 2024
67e28a7
Optimize finding width of a single character
godlygeek Jun 7, 2024
d9a6e26
Optimize disp_str for ASCII characters
godlygeek Jun 7, 2024
fcfdfff
Speed up cursor movements in long pyrepl commands
godlygeek Jun 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ Objects/type* @markshannon
Objects/codeobject.c @markshannon
Objects/frameobject.c @markshannon
Objects/call.c @markshannon
Python/ceval*.c @markshannon @gvanrossum
Python/ceval*.h @markshannon @gvanrossum
Python/ceval*.c @markshannon
Python/ceval*.h @markshannon
Python/compile.c @markshannon @iritkatriel
Python/assemble.c @markshannon @iritkatriel
Python/flowgraph.c @markshannon @iritkatriel
Python/ast_opt.c @isidentical
Python/bytecodes.c @markshannon @gvanrossum
Python/optimizer*.c @markshannon @gvanrossum
Python/bytecodes.c @markshannon
Python/optimizer*.c @markshannon
Python/optimizer_analysis.c @Fidget-Spinner
Python/optimizer_bytecodes.c @Fidget-Spinner
Lib/test/test_patma.py @brandtbucher
Lib/test/test_type_*.py @JelleZijlstra
Lib/test/test_capi/test_misc.py @markshannon @gvanrossum
Lib/test/test_capi/test_misc.py @markshannon
Tools/c-analyzer/ @ericsnowcurrently

# dbm
Expand Down Expand Up @@ -150,7 +150,7 @@ Include/internal/pycore_time.h @pganssle @abalkin
/Lib/test/test_tokenize.py @pablogsal @lysnikolaou

# Code generator
/Tools/cases_generator/ @gvanrossum
/Tools/cases_generator/ @markshannon

# AST
Python/ast.c @isidentical
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,11 @@ on:
push:
branches:
- 'main'
- '3.12'
- '3.11'
- '3.10'
- '3.9'
- '3.8'
- '3.*'
pull_request:
branches:
- 'main'
- '3.12'
- '3.11'
- '3.10'
- '3.9'
- '3.8'
- '3.*'

permissions:
contents: read
Expand Down Expand Up @@ -207,8 +199,9 @@ jobs:
uses: ./.github/workflows/reusable-macos.yml
with:
config_hash: ${{ needs.check_source.outputs.config_hash }}
# macos-14 is M1, macos-13 is Intel
os-matrix: '["macos-14", "macos-13"]'
# Cirrus and macos-14 are M1, macos-13 is default GHA Intel.
# Cirrus used for upstream, macos-14 for forks.
os-matrix: '["ghcr.io/cirruslabs/macos-runner:sonoma", "macos-14", "macos-13"]'

build_macos_free_threading:
name: 'macOS (free-threading)'
Expand All @@ -218,8 +211,9 @@ jobs:
with:
config_hash: ${{ needs.check_source.outputs.config_hash }}
free-threading: true
# macos-14-large is Intel with 12 cores (most parallelism)
os-matrix: '["macos-14"]'
# Cirrus and macos-14 are M1.
# Cirrus used for upstream, macos-14 for forks.
os-matrix: '["ghcr.io/cirruslabs/macos-runner:sonoma", "macos-14"]'

build_ubuntu:
name: 'Ubuntu'
Expand Down Expand Up @@ -494,6 +488,7 @@ jobs:
config_hash: ${{ needs.check_source.outputs.config_hash }}
options: ./configure --config-cache --with-thread-sanitizer --with-pydebug
suppressions_path: Tools/tsan/supressions.txt
tsan_logs_artifact_name: tsan-logs-default

build_tsan_free_threading:
name: 'Thread sanitizer (free-threading)'
Expand All @@ -504,6 +499,7 @@ jobs:
config_hash: ${{ needs.check_source.outputs.config_hash }}
options: ./configure --config-cache --disable-gil --with-thread-sanitizer --with-pydebug
suppressions_path: Tools/tsan/suppressions_free_threading.txt
tsan_logs_artifact_name: tsan-logs-free-threading

# CIFuzz job based on https://google.github.io/oss-fuzz/getting-started/continuous-integration/
cifuzz:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/jit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ on:
- '**jit**'
- 'Python/bytecodes.c'
- 'Python/optimizer*.c'
- '!Python/perf_jit_trampoline.c'
- '!**/*.md'
- '!**/*.ini'
push:
paths:
- '**jit**'
- 'Python/bytecodes.c'
- 'Python/optimizer*.c'
- '!Python/perf_jit_trampoline.c'
- '!**/*.md'
- '!**/*.ini'
workflow_dispatch:

permissions:
Expand All @@ -20,8 +26,22 @@ concurrency:
cancel-in-progress: true

jobs:
interpreter:
name: Interpreter (Debug)
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
- name: Build tier two interpreter
run: |
./configure --enable-experimental-jit=interpreter --with-pydebug
make all --jobs 4
- name: Test tier two interpreter
run: |
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
jit:
name: ${{ matrix.target }} (${{ matrix.debug && 'Debug' || 'Release' }})
needs: interpreter
runs-on: ${{ matrix.runner }}
timeout-minutes: 90
strategy:
Expand Down Expand Up @@ -144,3 +164,22 @@ jobs:
./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations ' }} --build=x86_64-linux-gnu --host="$HOST" --with-build-python=../build/bin/python3 --with-pkg-config=no ac_cv_buggy_getaddrinfo=no ac_cv_file__dev_ptc=no ac_cv_file__dev_ptmx=yes
make all --jobs 4
./python -m test --ignorefile=Tools/jit/ignore-tests-emulated-linux.txt --multiprocess 0 --timeout 4500 --verbose2 --verbose3

jit-with-disabled-gil:
name: Free-Threaded (Debug)
needs: interpreter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build with JIT enabled and GIL disabled
run: |
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh 18
export PATH="$(llvm-config-18 --bindir):$PATH"
./configure --enable-experimental-jit --with-pydebug --disable-gil
make all --jobs 4
- name: Run tests
run: |
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
1 change: 1 addition & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ concurrency:
jobs:
mypy:
strategy:
fail-fast: false
matrix:
target: [
"Lib/_pyrepl",
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ jobs:
python Doc/tools/check-warnings.py \
--annotate-diff '${{ env.branch_base }}' '${{ env.branch_pr }}' \
--fail-if-regression \
--fail-if-improved
--fail-if-improved \
--fail-if-new-news-nit

# This build doesn't use problem matchers or check annotations
build_doc_oldest_supported_sphinx:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/reusable-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
build_macos:
name: 'build and test'
name: build and test (${{ matrix.os }})
timeout-minutes: 60
env:
HOMEBREW_NO_ANALYTICS: 1
Expand All @@ -27,6 +27,13 @@ jobs:
fail-fast: false
matrix:
os: ${{fromJson(inputs.os-matrix)}}
is-fork:
- ${{ github.repository_owner != 'python' }}
exclude:
- os: "ghcr.io/cirruslabs/macos-runner:sonoma"
is-fork: true
- os: "macos-14"
is-fork: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/reusable-tsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: 'A repo relative path to the suppressions file'
required: true
type: string
tsan_logs_artifact_name:
description: 'Name of the TSAN logs artifact. Must be unique for each job.'
required: true
type: string

jobs:
build_tsan_reusable:
Expand Down Expand Up @@ -41,7 +45,7 @@ jobs:
sudo sysctl -w vm.mmap_rnd_bits=28
- name: TSAN Option Setup
run: |
echo "TSAN_OPTIONS=suppressions=${GITHUB_WORKSPACE}/${{ inputs.suppressions_path }}" >> $GITHUB_ENV
echo "TSAN_OPTIONS=log_path=${GITHUB_WORKSPACE}/tsan_log suppressions=${GITHUB_WORKSPACE}/${{ inputs.suppressions_path }} handle_segv=0" >> $GITHUB_ENV
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
- name: Add ccache to PATH
Expand All @@ -60,3 +64,13 @@ jobs:
run: make pythoninfo
- name: Tests
run: ./python -m test --tsan -j4
- name: Display TSAN logs
if: always()
run: find ${GITHUB_WORKSPACE} -name 'tsan_log.*' | xargs head -n 1000
- name: Archive TSAN logs
if: always()
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.tsan_logs_artifact_name }}
path: tsan_log.*
if-no-files-found: ignore
12 changes: 11 additions & 1 deletion Doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ help:
@echo " clean to remove build files"
@echo " venv to create a venv with necessary tools"
@echo " html to make standalone HTML files"
@echo " gettext to generate POT files"
@echo " htmlview to open the index page built by the html target in your browser"
@echo " htmllive to rebuild and reload HTML files in your browser"
@echo " htmlhelp to make HTML files and a HTML help project"
Expand Down Expand Up @@ -140,14 +141,23 @@ pydoc-topics: build
@echo "Building finished; now run this:" \
"cp build/pydoc-topics/topics.py ../Lib/pydoc_data/topics.py"

.PHONY: gettext
gettext: BUILDER = gettext
gettext: SPHINXOPTS += '-d build/doctrees-gettext'
gettext: build

.PHONY: htmlview
htmlview: html
$(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/index.html'))"

.PHONY: ensure-sphinx-autobuild
ensure-sphinx-autobuild: venv
$(VENVDIR)/bin/sphinx-autobuild --version > /dev/null || $(VENVDIR)/bin/python3 -m pip install sphinx-autobuild

.PHONY: htmllive
htmllive: SPHINXBUILD = $(VENVDIR)/bin/sphinx-autobuild
htmllive: SPHINXOPTS = --re-ignore="/venv/" --open-browser --delay 0
htmllive: html
htmllive: ensure-sphinx-autobuild html

.PHONY: clean
clean: clean-venv
Expand Down
4 changes: 2 additions & 2 deletions Doc/c-api/buffer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ a buffer, see :c:func:`PyObject_GetBuffer`.
or a :c:macro:`PyBUF_WRITABLE` request, the consumer must disregard
:c:member:`~Py_buffer.itemsize` and assume ``itemsize == 1``.

.. c:member:: const char *format
.. c:member:: char *format

A *NUL* terminated string in :mod:`struct` module style syntax describing
A *NULL* terminated string in :mod:`struct` module style syntax describing
the contents of a single item. If this is ``NULL``, ``"B"`` (unsigned bytes)
is assumed.

Expand Down
1 change: 1 addition & 0 deletions Doc/c-api/dict.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ Dictionary Objects
to both *default_value* and *\*result* (if it's not ``NULL``).
These may refer to the same object: in that case you hold two separate
references to it.

.. versionadded:: 3.13


Expand Down
11 changes: 6 additions & 5 deletions Doc/c-api/frame.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,18 @@ See also :ref:`Reflection <reflection>`.
.. c:function:: PyObject* PyFrame_GetLocals(PyFrameObject *frame)

Get the *frame*'s :attr:`~frame.f_locals` attribute.
If the frame refers to a function or comprehension, this returns
a write-through proxy object that allows modifying the locals.
In all other cases (classes, modules) it returns the :class:`dict`
representing the frame locals directly.
If the frame refers to an :term:`optimized scope`, this returns a
write-through proxy object that allows modifying the locals.
In all other cases (classes, modules, :func:`exec`, :func:`eval`) it returns
the mapping representing the frame locals directly (as described for
:func:`locals`).

Return a :term:`strong reference`.

.. versionadded:: 3.11

.. versionchanged:: 3.13
Return a proxy object for functions and comprehensions.
As part of :pep:`667`, return a proxy object for optimized scopes.


.. c:function:: int PyFrame_GetLineNumber(PyFrameObject *frame)
Expand Down
6 changes: 6 additions & 0 deletions Doc/c-api/hash.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ See also the :c:member:`PyTypeObject.tp_hash` member and :ref:`numeric-hash`.

.. versionadded:: 3.13

.. c:macro:: PyHASH_MULTIPLIER

Prime multiplier used in string and various other hashes.

.. versionadded:: 3.13

.. c:macro:: PyHASH_INF

The hash value returned for a positive infinity.
Expand Down
4 changes: 2 additions & 2 deletions Doc/c-api/module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -427,14 +427,14 @@ The available slot types are:
This slot is ignored by Python builds not configured with
:option:`--disable-gil`. Otherwise, it determines whether or not importing
this module will cause the GIL to be automatically enabled. See
:envvar:`PYTHON_GIL` and :option:`-X gil <-X>` for more detail.
:ref:`free-threaded-cpython` for more detail.

Multiple ``Py_mod_gil`` slots may not be specified in one module definition.

If ``Py_mod_gil`` is not specified, the import machinery defaults to
``Py_MOD_GIL_USED``.

.. versionadded: 3.13
.. versionadded:: 3.13

See :PEP:`489` for more details on multi-phase initialization.

Expand Down
8 changes: 4 additions & 4 deletions Doc/c-api/monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.. _monitoring:

Monitorong C API
Monitoring C API
================

Added in version 3.13.
Expand Down Expand Up @@ -121,10 +121,10 @@ See :mod:`sys.monitoring` for descriptions of the events.
:c:func:`PyErr_GetRaisedException`).


.. c:function:: int PyMonitoring_FireStopIterationEvent(PyMonitoringState *state, PyObject *codelike, int32_t offset)
.. c:function:: int PyMonitoring_FireStopIterationEvent(PyMonitoringState *state, PyObject *codelike, int32_t offset, PyObject *value)

Fire a ``STOP_ITERATION`` event with the current exception (as returned by
:c:func:`PyErr_GetRaisedException`).
Fire a ``STOP_ITERATION`` event. If ``value`` is an instance of :exc:`StopIteration`, it is used. Otherwise,
a new :exc:`StopIteration` instance is created with ``value`` as its argument.


Managing the Monitoring State
Expand Down
2 changes: 1 addition & 1 deletion Doc/c-api/object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Object Protocol

Properly handle returning :c:data:`Py_NotImplemented` from within a C
function (that is, create a new :term:`strong reference`
to NotImplemented and return it).
to :const:`NotImplemented` and return it).


.. c:macro:: Py_PRINT_RAW
Expand Down
Loading
Loading