summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-112414: Fix `AttributeError` when calling `repr()` on a namespace package ↵Alex Waygood2023-11-274-3/+16
| | | | imported with a custom loader (#112425)
* gh-63284: Add support for TLS-PSK (pre-shared key) to the ssl module (#103181)Grant Ramsay2023-11-2710-1/+561
| | | | | | | | Add support for TLS-PSK (pre-shared key) to the ssl module. --------- Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-99606: Make code generated for an empty f-string identical to that of a ↵Irit Katriel2023-11-263-2/+18
| | | | normal empty string (#112407)
* gh-112405: Optimise `pathlib.Path.relative_to` (#112406)Alex Waygood2023-11-262-1/+3
|
* gh-112358: Fix Python 3.12 regression with subclassing struct.Struct. (#112424)Mark Dickinson2023-11-264-48/+52
| | | | | | Revert commit c8c0afc7137ab9f22bf59d591084948ca967c97c (PR #94532), which moved `struct.Struct` initialisation from `Struct.__init__` to `Struct.__new__`. This caused issues with code in the wild that subclasses `struct.Struct`.
* gh-101100: Fix Sphinx reference warnings (GH-112416)Hugo van Kemenade2023-11-258-17/+23
| | | | | | | | | | | | | | | | | | | | | | | * Fix Sphinx warning in library/xml.rst Direct use of the pyexpat module is deprecated, but this is how to check the version for security purposes * Fix Sphinx warning in library/importlib.resources.rst * Use italics for parameters * Link to the exception * Fix Sphinx warning in library/gzip.rst * Document message and header defect base classes to fix Sphinx warning in library/email.headerregistry.rst * Restore feed_eof() doc to fix Sphinx warning in library/asyncio-stream.rst * Fix Sphinx warning in extending/newtypes.rst * Fix Sphinx warning in c-api/set.rst On stdtypes.rst, set and frozenset are documented together and the frozenset has the working refs
* gh-112331: Fix reference manual description of attribute lookup mechanics ↵Raymond Hettinger2023-11-251-6/+12
| | | | (gh-112375)
* Descriptor HowTo: Sync the error-messages with the C code. Add tests. ↵Raymond Hettinger2023-11-251-3/+40
| | | | (gh-112403)
* gh-101100 : Fix Sphinx warnings in `library/doctest.rst` (#112399)Hugo van Kemenade2023-11-253-21/+29
| | | | | | | | | | | | | | | | | | | * Fix Sphinx warnings in library/doctest.rst * Don't link to self, and wrap a line Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Link to load_tests protocol * Link to option flags * Wrap line Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-77621: Delay some imports from pathlib (#112244)Barney Gale2023-11-252-5/+11
| | | | | Import `contextlib`, `glob` and `re` only as required. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-94722: fix DocTest.__eq__ for case of no line number on one side (#112385)Irit Katriel2023-11-253-2/+23
|
* GH-112361: Speed up pathlib by removing some temporary objects. (#112362)Barney Gale2023-11-253-22/+14
| | | | | Construct only one new list object (using `list.copy()`) when creating a new path object with a modified tail. This slightly speeds up `with_name()` and `with_suffix()`
* gh-101100: Define `_tkinter` module to fix references (#112382)Hugo van Kemenade2023-11-251-0/+3
| | | Define _tkinter module to fix references
* gh-101100: Define `test.regrtest` module to fix references (#112381)Hugo van Kemenade2023-11-251-0/+3
| | | Define test.regrtest module to fix references
* gh-112355: fix calculation of jump target of ENTER_EXECUTOR in dis (#112377)Irit Katriel2023-11-241-1/+6
|
* gh-59254: mention in open() doc that line buffering is for writing (#112318)Irit Katriel2023-11-241-1/+1
|
* gh-112213: Add missing declaration of target_critical_section (gh-112374)Donghee Na2023-11-241-2/+4
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-112345: `typing.Protocol`: Let failed subclasscheck show non-method ↵Randolf Scholz2023-11-243-1/+25
| | | | | members (#112344) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Remove bogus annotations from the descriptor howto guide (#112349)Raymond Hettinger2023-11-231-3/+3
|
* Add extra tests for `random.binomialvariate` (gh-112325)Tian Gao2023-11-232-0/+5
|
* gh-112137: change dis output to show no-lineno as -- instead of None (#112335)Irit Katriel2023-11-233-16/+18
|
* gh-76785: Return an "excinfo" Object From Interpreter.run() (gh-111573)Eric Snow2023-11-239-243/+418
|
* gh-111809: Fix `test_deep_repr` from `test_userdict` on WASI (GH-112229)Nikita Sobolev2023-11-221-1/+6
|
* gh-112137: change dis output to display labels instead of offsets (#112138)Irit Katriel2023-11-225-815/+838
|
* gh-76785: Add _PyType_GetModuleName() to the Internal C-API (gh-112323)Eric Snow2023-11-225-0/+43
| | | The new function corresponds to the existing (public) PyType_GetName() and PyType_GetQualName().
* gh-76785: Clean up the Failure-Related _xxsubinterpreters Tests (gh-112322)Eric Snow2023-11-221-37/+157
|
* Merge branch 'main' of https://github.com/python/cpythonThomas Wouters2023-11-225-4250/+4394
|\
| * GH-111485: Sort cases in the case generator output (GH-112315)Mark Shannon2023-11-223-4210/+4214
| |
| * gh-111965: Use critical sections to make io.BufferedIOBase and its related ↵Mayuresh Kedari2023-11-222-40/+180
| | | | | | | | classes thread safe (gh-112298)
* | Post 3.13.0a2Thomas Wouters2023-11-221-1/+1
| |
* | Python 3.13.0a2v3.13.0a2Thomas Wouters2023-11-22156-403/+1651
|/
* Do not build the macOS installer with mimalloc enabled (#112312)Ned Deily2023-11-221-0/+2
| | | | | Do not build the macOS installer with mimalloc enabled pending resolution of weak linking crashes during interpreter startup on macOS 10.9, 10.10, and 10.11 when built on macOS 11 and later.
* gh-59703: restore include of mach-o/dyld.h (gh-112309)Ned Deily2023-11-221-0/+1
| | | | On older versions of macOS, _NSGetExecutablePath appears to only be available via macho-o/dyld so macho-o/dyld.h is still needed.
* Fix docstring and var name of itertools recipe (#112113)Sebastian Rittau2023-11-221-3/+3
| | | | `prepend()` works with arbitrary iterables, not only iterators. In fact, the example given uses a `list`, which is iterable, but not an iterator.
* gh-111863: Rename term Py_NOGIL to Py_GIL_DISABLED in sysconfig (gh-112307)Donghee Na2023-11-222-5/+5
|
* GH-111963: Clarify sys.monitoring.free_tool_id's limitations (GH-112291)Tian Gao2023-11-211-0/+7
|
* gh-110745: add a newline argument to pathlib.Path.read_text (#110880)Junya Okabe2023-11-214-3/+22
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Barney Gale <barney.gale@gmail.com>
* gh-111361: Added an update for unicodedata in what's new in Python 3.13 ↵Lincoln2023-11-211-0/+6
| | | | | | (#112031) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-111863: Rename blurb snippet placed in the wrong directory by accident. ↵T. Wouters2023-11-211-0/+0
| | | | | (#112300) Rename blurb snippet placed in the wrong directory by accident.
* gh-112252: Fix error on unset $OSNAME in venv/activate (GH-112253)James Turk2023-11-211-1/+1
|
* gh-57879: Increase test coverage for pstats.py (gh-111447)Liu, An-Chi2023-11-211-0/+29
|
* gh-110950: add upstream Tk fixes to macOS installer. (GH-111041)Christopher Chavez2023-11-217-2/+206
| | | | | | | | | | | | | | | | Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (gh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (gh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (gh-110950) Co-authored-by: Ned Deily <nad@python.org>
* gh-59703: use the system dladdr function in getpath.c for macOS framework ↵AN Long2023-11-212-11/+10
| | | | | builds (GH-111546) Co-authored-by: Ned Deily <nad@python.org>
* gh-111786: Use separate opcode vars for Tier 1 and Tier 2 (#112289)Michael Droettboom2023-11-201-12/+11
| | | | This makes Windows about 3% faster on pyperformance benchmarks.
* gh-112287: Speed up Tier 2 (uop) interpreter a little (#112286)Guido van Rossum2023-11-207-33/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | This makes the Tier 2 interpreter a little faster. I calculated by about 3%, though I hesitate to claim an exact number. This starts by doubling the trace size limit (to 512), making it more likely that loops fit in a trace. The rest of the approach is to only load `oparg` and `operand` in cases that use them. The code generator know when these are used. For `oparg`, it will conditionally emit ``` oparg = CURRENT_OPARG(); ``` at the top of the case block. (The `oparg` variable may be referenced multiple times by the instructions code block, so it must be in a variable.) For `operand`, it will use `CURRENT_OPERAND()` directly instead of referencing the `operand` variable, which no longer exists. (There is only one place where this will be used.)
* gh-111848: Clean up RESERVE() macro (#112274)Guido van Rossum2023-11-201-14/+9
| | | Also avoid compiler warnings about unused 'reserved' variable.
* gh-106529: Make FOR_ITER a viable uop (#112134)Guido van Rossum2023-11-208-43/+138
| | | | | | | | | | This uses the new mechanism whereby certain uops are replaced by others during translation, using the `_PyUop_Replacements` table. We further special-case the `_FOR_ITER_TIER_TWO` uop to update the deoptimization target to point just past the corresponding `END_FOR` opcode. Two tiny code cleanups are also part of this PR.
* gh-112243: Don't include comments in f-string debug expressions (#112284)Pablo Galindo Salgado2023-11-203-6/+53
|
* gh-111863: Rename `Py_NOGIL` to `Py_GIL_DISABLED` (#111864)Hugo van Kemenade2023-11-2039-81/+82
| | | Rename Py_NOGIL to Py_GIL_DISABLED
* bpo-45759: Better error messages for non-matching 'elif'/'else' statements ↵Crowthebird2023-11-204-437/+598
| | | | (#29513)