summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Docs: fix markup for `importlib.machinery.NamespaceLoader` (#112479)Alex Waygood2023-11-281-1/+1
|
* gh-112414: Add additional unit tests for calling `repr()` on a namespace ↵Alex Waygood2023-11-282-4/+30
| | | | | package (#112475) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* Correct documentation for AF_PACKET (#112339)Eugene Toder2023-11-271-2/+1
| | | | | | | Protocol in the address tuple should *not* be in the network-byte-order, because it is converted internally[1]. [1] https://github.com/python/cpython/blob/89ddea4886942b0c27a778a0ad3f0d5ac5f518f0/Modules/socketmodule.c#L2144 network byte order doesn't make sense for a python level int anyways. It's a fixed size C serialization concept.
* gh-99367: Do not mangle sys.path[0] in pdb if safe_path is set (#111762)Tian Gao2023-11-274-6/+39
| | | | Co-authored-by: Christian Walther <cwalther@users.noreply.github.com>
* gh-112217: Add check to call result for `do_raise()` where cause is a type. ↵apaz2023-11-273-0/+22
| | | | (#112216)
* gh-68166: Add support of "vsapi" in ttk.Style.element_create() (GH-111393)Serhiy Storchaka2023-11-276-32/+204
|
* gh-112387: Fix error positions for decoded strings with backwards tokenize ↵Pablo Galindo Salgado2023-11-273-0/+10
| | | | | errors (#112409) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-112388: Fix an error that was causing the parser to try to overwrite ↵Pablo Galindo Salgado2023-11-273-0/+7
| | | | | tokenizer errors (#112410) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* bpo-41422: Visit the Pickler's and Unpickler's memo in tp_traverse (GH-21664)kale-smoothie2023-11-272-0/+17
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-76912: Raise OSError from any failure in getpass.getuser() (#29739)Jacob Walls2023-11-275-7/+24
| | | | * bpo-32731: Raise OSError from any failure in getpass.getuser() Previously, if the username was not set in certain environment variables, ImportError escaped on Windows systems, and it was possible for KeyError to escape on other systems if getpwuid() failed.
* gh-111789: Use PyDict_GetItemRef() in Python/_warnings.c (gh-112080)Serhiy Storchaka2023-11-271-4/+4
|
* gh-111789: Use PyDict_GetItemRef() in Python/symtable.c (gh-112084)Serhiy Storchaka2023-11-271-8/+4
|
* gh-111789: Use PyDict_GetItemRef() in Python/codecs.c (gh-112082)Serhiy Storchaka2023-11-271-5/+4
|
* gh-111789: Use PyDict_GetItemRef() in Python/bltinmodule.c (gh-112081)Serhiy Storchaka2023-11-271-6/+3
|
* gh-111789: Use PyDict_GetItemRef() in Modules/pyexpat.c (gh-112079)Serhiy Storchaka2023-11-271-12/+5
|
* gh-111789: Use PyDict_GetItemRef() in Modules/_threadmodule.c (gh-112077)Serhiy Storchaka2023-11-271-6/+4
|
* gh-111789: Use PyDict_GetItemRef() in Modules/_struct.c (gh-112076)Serhiy Storchaka2023-11-271-5/+4
|
* gh-111789: Use PyDict_GetItemRef() in Modules/_csv.c (gh-112073)Serhiy Storchaka2023-11-271-8/+2
|
* gh-112438: Fix support of format units with the "e" prefix in nested tuples ↵Serhiy Storchaka2023-11-274-6/+40
| | | | in PyArg_Parse (gh-112439)
* gh-84443: SSLSocket.recv_into() now support buffer protocol with itemsize != ↵Zackery Spytz2023-11-273-4/+32
| | | | | | | 1 (GH-20310) It is also no longer use __len__(). Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-111874: Call `__set_name__` on objects that define the method inside a ↵Alex Waygood2023-11-273-3/+99
| | | | | `typing.NamedTuple` class dictionary as part of the creation of that class (#111876) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* GH-101100: Fix reference warnings for ``socket`` methods (#110114)Adam Turner2023-11-273-17/+17
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Move What's New In Python 3.12 entries to the right section (#112447)Victor Stinner2023-11-271-7/+8
| | | Jython and ctypes removals are unrelated to C API Removals.
* gh-111147: Fix `test_set_of_sets_reprs` in `test_pprint` (GH-111148)Nikita Sobolev2023-11-271-197/+95
| | | | Make it stable and not depending on implementation details.
* Docs: fix typo in doc for sqlite3.Cursor.execute (#112442)Tom Levy2023-11-271-1/+1
|
* 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().