summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
Commit message (Collapse)AuthorAgeFilesLines
* gh-96192: fix os.ismount() to use a path that is str or bytes (#96194)Christoph Anton Mitterer2022-11-141-0/+1
| | | | | Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__` (#99283)Nikita Sobolev2022-11-131-0/+2
|
* gh-99418: Make urllib.parse.urlparse enforce that a scheme must begin with ↵Ben Kallus2022-11-131-0/+2
| | | | | | | | | | | an alphabetical ASCII character. (#99421) Prevent urllib.parse.urlparse from accepting schemes that don't begin with an alphabetical ASCII character. RFC 3986 defines a scheme like this: `scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )` RFC 2234 defines an ALPHA like this: `ALPHA = %x41-5A / %x61-7A` The WHATWG URL spec defines a scheme like this: `"A URL-scheme string must be one ASCII alpha, followed by zero or more of ASCII alphanumeric, U+002B (+), U+002D (-), and U+002E (.)."`
* gh-99103: Normalize specialized traceback anchors against the current line ↵Batuhan Taskaya2022-11-121-0/+2
| | | | | (GH-99145) Automerge-Triggered-By: GH:isidentical
* gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour ↵Erlend E. Aasland2022-11-121-0/+6
| | | | | | | | | | (#93823) Introduce the autocommit attribute to Connection and the autocommit parameter to connect() for PEP 249-compliant transaction handling. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* gh-98762: Fix locations of match sub-patterns (GH-98775)Irit Katriel2022-11-121-0/+1
|
* GH-94597: add deprecation warnings for subclassing `AbstractChildWatcher` ↵Kumar Aditya2022-11-121-0/+1
| | | | (#99386)
* gh-80448: argparse: Fix IndexError on store_true action (#15656)Hai Shi2022-11-121-0/+1
| | | | | Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-81057: Move PyImport_Inittab to _PyRuntimeState (gh-99402)Eric Snow2022-11-121-0/+6
| | | | | We actually don't move PyImport_Inittab. Instead, we make a copy that we keep on _PyRuntimeState and use only that after Py_Initialize(). We also prevent folks from modifying PyImport_Inittab (the best we can) after that point. https://github.com/python/cpython/issues/81057
* gh-81057: Move the Allocators to _PyRuntimeState (gh-99217)Eric Snow2022-11-111-0/+3
| | | | | The global allocators were stored in 3 static global variables: _PyMem_Raw, _PyMem, and _PyObject. State for the "small block" allocator was stored in another 13. That makes a total of 16 global variables. We are moving all 16 to the _PyRuntimeState struct as part of the work for gh-81057. (If PEP 684 is accepted then we will follow up by moving them all to PyInterpreterState.) https://github.com/python/cpython/issues/81057
* gh-99305: Speed up secrets.token_hex() ~2x (#99306)NewUserHa2022-11-111-0/+1
| | | | | simple code modernization. Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
* gh-98707: configure --with-system-libmpdec and --with-system-expat no longer ↵Miro Hrončok2022-11-111-0/+4
| | | | include vendored headers (#98711)
* gh-99254: remove all unused consts from code objects (GH-99255)Irit Katriel2022-11-111-0/+1
|
* gh-98086: Now ``patch.dict`` can decorate async functions (#98095)Nikita Sobolev2022-11-111-0/+1
|
* GH-99298: Don't perform jumps before error handling (GH-99299)Brandt Bucher2022-11-101-0/+2
|
* gh-99204: Calculate base_executable by alternate names in POSIX venvs (GH-99206)Vincent Fazio2022-11-101-0/+4
| | | | | | | | | | | Check to see if `base_executable` exists. If it does not, attempt to use known alternative names of the python binary to find an executable in the path specified by `home`. If no alternative is found, previous behavior is preserved. Signed-off-by: Vincent Fazio <vfazio@gmail.com> Signed-off-by: Vincent Fazio <vfazio@gmail.com>
* gh-99277: remove older version of `get_write_buffer_limits` (#99280)Carlo2022-11-101-0/+1
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* GH-96421: Insert shim frame on entry to interpreter (GH-96319)Mark Shannon2022-11-101-0/+13
| | | | | | * Adds EXIT_INTERPRETER instruction to exit PyEval_EvalDefault() * Simplifies RETURN_VALUE, YIELD_VALUE and RETURN_GENERATOR instructions as they no longer need to check for entry frames.
* gh-74044: inspect.signature for wrappers around decorated bound methods (GH-736)Anton Ryzhov2022-11-101-0/+1
|
* GH-99257: Check the owner's type when specializing slots (GH-99258)Brandt Bucher2022-11-101-0/+3
|
* bpo-34272: Reorganize C API tests. (GH-8551)Serhiy Storchaka2022-11-101-0/+1
| | | | Move some C API tests into Lib/test/test_capi/.
* gh-98832: Change wording in docstring of `pathlib.Path.iterdir` (GH-98833)Nikita Sobolev2022-11-091-0/+1
| | | | | Found while working on https://github.com/python/cpython/issues/98829 Automerge-Triggered-By: GH:AlexWaygood
* GH-99205: Mark new interpreters and threads as non-static (GH-99268)Brandt Bucher2022-11-091-0/+2
|
* GH-98686: Get rid of "adaptive" and "quick" instructions (GH-99182)Brandt Bucher2022-11-091-0/+5
|
* gh-98724: Fix Py_CLEAR() macro side effects (#99100)Victor Stinner2022-11-091-0/+3
| | | | | | | The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their argument once. If an argument has side effects, these side effects are no longer duplicated. Add test_py_clear() and test_py_setref() unit tests to _testcapi.
* gh-99248: [Enum] fix negative number infinite loop (GH-99256)Ethan Furman2022-11-081-0/+1
| | | | | | | | [Enum] fix negative number infinite loop - _iter_bits_lsb() now raises a ValueError if a negative number is passed in - verify() now skips checking negative numbers for named flags
* gh-91248: Add PyFrame_GetVar() function (#95712)Victor Stinner2022-11-081-0/+2
| | | | | | Add PyFrame_GetVar() and PyFrame_GetVarString() functions to get a frame variable by its name. Move PyFrameObject C API tests from test_capi to test_frame.
* GH-93143: Don't turn LOAD_FAST into LOAD_FAST_CHECK (GH-99075)Brandt Bucher2022-11-081-0/+4
|
* gh-72719: Remove asyncore and asynchat modules (#96580)Nikita Sobolev2022-11-081-0/+1
| | | | | Remove modules asyncore and asynchat, which were deprecated by PEP 594. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-99181: fix except* on unhashable exceptions (GH-99192)Irit Katriel2022-11-081-0/+1
|
* gh-92119: ctypes: Print exception class name instead of its representation ↵Kamil Turek2022-11-081-0/+2
| | | | (#98302)
* gh-98433: Fix quadratic time idna decoding. (#99092)Gregory P. Smith2022-11-081-0/+14
| | | | | | | | There was an unnecessary quadratic loop in idna decoding. This restores the behavior to linear. This also adds an early length check in IDNA decoding to outright reject huge inputs early on given the ultimate result is defined to be 63 or fewer characters.
* gh-98817: Remove PCbuild/lib.pyproj (GH-98818)Hugo van Kemenade2022-11-071-0/+3
|
* GH-96793: Specialize FOR_ITER for generators. (GH-98772)Mark Shannon2022-11-071-0/+3
|
* gh-95389: expose popular ETHERTYPE_* constants in the socket module (#95390)Noam Cohen2022-11-071-0/+3
| | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
* bpo-38523: ignore_dangling_symlinks does not apply recursively (GH-22937)Zackery Spytz2022-11-071-0/+2
|
* gh-91803: Mock - fix error when using autospec methods with seal (#92213)andrei kulakov2022-11-071-0/+3
| | | | | | Fixes https://github.com/python/cpython/issues/91803. Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* GH-99155: Fix `NormalDist` pickle with `0` and `1` protocols (GH99156)Nikita Sobolev2022-11-071-0/+1
|
* gh-96055: Update faulthandler to emit proper unexpect signal number (gh-99162)Dong-hee Na2022-11-071-0/+2
|
* gh-98586: Add What's New entry and update docs (#99056)Wenzel Jakob2022-11-061-1/+1
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-98139: enhance namespace package reprAnh71me2022-11-061-0/+2
|
* GH-98831: Implement super-instruction generation (#99084)Guido van Rossum2022-11-061-1/+9
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-99153: set location on SyntaxError for try with both except and except* ↵Irit Katriel2022-11-061-0/+1
| | | | (GH-99160)
* gh-83004: Clean up refleak in _pickle initialisation (#98841)Shantanu2022-11-061-0/+1
|
* gh-83004: Clean up refleak in _zoneinfo initialisation (#98842)Shantanu2022-11-061-0/+1
|
* gh-99139: Improve NameError error suggestion for instances (#99140)Pablo Galindo Salgado2022-11-061-0/+5
|
* gh-93464: [Enum] fix auto() failure during multiple assignment (GH-99148)Ethan Furman2022-11-061-0/+1
| | | | | | * fix auto() failure during multiple assignment i.e. `ONE = auto(), 'text'` will now have `ONE' with the value of `(1, 'text')`. Before it would have been `(<an auto instance>, 'text')`
* gh-99134: Update bundled pip to 22.3.1 (gh-99135)Paul Moore2022-11-051-0/+1
| | | Update bundled pip to 22.3.1
* gh-98284: better error message for undefined abstractmethod (#97971)Kaushik Kulkarni2022-11-051-0/+3
|
* gh-99086: Fix implicit int compiler warning in configure check for ↵Sam James2022-11-051-0/+1
| | | | PTHREAD_SCOPE_SYSTEM (#99085)