summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43908: Immutable types inherit vectorcall (GH-27001)Erlend Egeberg Aasland2021-07-085-14/+23
| | | | | | Heap types with the Py_TPFLAGS_IMMUTABLETYPE flag can now inherit the PEP 590 vectorcall protocol. Previously, this was only possible for static types. Co-authored-by: Victor Stinner <vstinner@python.org>
* Doc: Fix wrong exception used in example. (GH-26572)Julien Palard2021-07-081-1/+1
|
* bpo-41137: Use utf-8 encoding while reading .pdbrc files (GH-21263)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2021-07-085-6/+48
|
* bpo-43895: Remove an unnecessary cache of shared object handles (GH-25487)Ian Henriksen2021-07-072-22/+4
| | | * Remove an unnecessary cache of shared object handles.
* Remove __cleanenv from PEP-657 tests (GH-27060)Ammar Askar2021-07-073-6/+5
|
* bpo-43950: Add option to opt-out of PEP-657 (GH-27023)Ammar Askar2021-07-0718-64/+276
| | | | | Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com> Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
* bpo-44479: Simplified LICENSE.txt regeneration in Windows build (GH-27056)Steve Dower2021-07-071-9/+9
|
* bpo-44558: Match countOf `is`/`==` treatment to c (GH-27007)Rupert Tombs2021-07-075-6/+13
|
* bpo-44530: Document the new CodeObject.co_qualname attribute (GH-27052)Pablo Galindo2021-07-072-0/+6
|
* bpo-44530: Add co_qualname field to PyCodeObject (GH-26941)Gabriele N. Tornetta2021-07-0720-7435/+7448
|
* Doc: Fix link in multiprocessing.starmap pointing to builtin map. (GH-26560)Julien Palard2021-07-071-2/+3
|
* bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980)Yurii Karabas2021-07-065-19/+101
| | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* bpo-38291: Fix a spurious warning when using help(object) (#27039)Sebastian Rittau2021-07-061-1/+1
| | | | | | | help(object) via pydoc.TextDoc.docclass(object) iterates over the subclasses of object, which includes typing.io and typing.re if typing is imported. It tries to access cls.__module__ for each of those sub-classes. This change suppresses warnings when accessing cls.__module__.
* bpo-44563: Fix error handling in tee.fromiterable() (GH-27020)Serhiy Storchaka2021-07-051-9/+10
| | | In debug build failed tee.fromiterable() corrupted the linked list of all GC objects.
* bpo-43453: Update and re-add example to typing runtime_checkable (#27013)andrei kulakov2021-07-051-2/+7
| | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-44479: Regenerate test_frozenmain.h and frozen_hello.h during build on ↵Steve Dower2021-07-053-29/+49
| | | | Windows (GH-26984)
* bpo-44022: Fix Sphinx role in NEWS entry (GH-27033)Sergey Fedoseev2021-07-051-1/+1
|
* bpo-44562: Use PyType_GenericAlloc in Py_GenericAlias (GH-27021)Pablo Galindo2021-07-051-2/+2
| | | | | | | | | * bpo-44562: Use PyType_GenericAlloc in Py_GenericAlias * Update Objects/genericaliasobject.c Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44558: Make the implementation consistency of operator.indexOf (GH-27012)Dong-hee Na2021-07-053-1/+6
|
* bpo-44534: fix wording and docstring sync in unittest.Mock GH27000Jack DeVries2021-07-052-1/+6
|
* bpo-41486: zlib uses an UINT32_MAX sliding window for the output buffer ↵Ma Lin2021-07-052-30/+117
| | | | | | | | | | | | | | | | (GH-26143) * zlib uses an UINT32_MAX sliding window for the output buffer These funtions have an initial output buffer size parameter: - zlib.decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE) - zlib.Decompress.flush([length]) If the initial size > UINT32_MAX, use an UINT32_MAX sliding window, instead of clamping to UINT32_MAX. Speed up when (the initial size == the actual size). This fixes a memory consumption and copying performance regression in earlier 3.10 beta releases if someone used an output buffer larger than 4GiB with zlib.decompress. Reviewed-by: Gregory P. Smith
* bpo-43950: Print columns in tracebacks (PEP 657) (GH-26958)Ammar Askar2021-07-0412-74/+348
| | | | | | | | The traceback.c and traceback.py mechanisms now utilize the newly added code.co_positions and PyCode_Addr2Location to print carets on the specific expressions involved in a traceback. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Ammar Askar <ammar@ammaraskar.com> Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
* bpo-43950: include position in dis.Instruction (GH-27015)Batuhan Taskaya2021-07-042-197/+287
| | | Automerge-Triggered-By: GH:isidentical
* bpo-43950: use 0-indexed column offsets for bytecode positions (GH-27011)Batuhan Taskaya2021-07-043-22/+19
|
* bpo-44562: Remove invalid PyObject_GC_Del from error path of ↵Ken Jin2021-07-042-3/+5
| | | | types.GenericAlias … (GH-27016)
* bpo-44553: Correct failure in tp_new for the union object (GH-27008)Pablo Galindo2021-07-031-2/+2
|
* bpo-34266: [pdb] handle ValueError from shlex.split() (GH-26656)Irit Katriel2021-07-033-1/+21
|
* bpo-44129: Add descriptive global variables for general purpose bit flags ↵Daniel Hillier2021-07-032-13/+39
| | | | | | | | | | | (GH-26118) Replace hex flag masks with named global variables to improve readability. eg. if flags & 0x800 becomes: if flags & _MASK_UTF_FILENAME
* Fix a small typo in the docs (GH-26991)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2021-07-031-1/+1
|
* bpo-44553 : Implement GC methods for types.Union (GH-26993)Ken Jin2021-07-033-5/+38
|
* bpo-42238: rstlint: Add two new checks. (GH-26966)Julien Palard2021-07-031-8/+91
|
* bpo-44388: Update venv EnvBuilder.ensure_directories() docs. (GH-26663)Matthew Clapp2021-07-021-5/+6
| | | | | | | | | | | Ref: This changes the documentation for `EnvBuilder.ensure_directories(env_dir)` to match the actual behavior of that API call. In particular, `ensure_directories()` is not affected by the state of the `upgrade` attribute, and will not cause an error to have existing directories whether or not the `clear` attribute is set. This documentation change I believe should be valid to all python versions back to 3.6. Automerge-Triggered-By: GH:vsajip
* bpo-43950: optimize column table assembling with pre-sizing object (GH-26997)Batuhan Taskaya2021-07-021-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | The new resizing system works like this; ``` $ cat t.py a + a + a + b + c + a + a + a + b + c + a + a + a + b + c + a + a + a + b + c [repeated 99 more times] $ ./python t.py RESIZE: prev len = 32, new len = 66 FINAL SIZE: 56 ----------------------------------------------------- RESIZE: prev len = 32, new len = 66 RESIZE: prev len = 66, new len = 134 RESIZE: prev len = 134, new len = 270 RESIZE: prev len = 270, new len = 542 RESIZE: prev len = 542, new len = 1086 RESIZE: prev len = 1086, new len = 2174 RESIZE: prev len = 2174, new len = 4350 RESIZE: prev len = 4350, new len = 8702 FINAL SIZE: 8004 ``` So now we do considerably lower number of `_PyBytes_Resize` calls. Automerge-Triggered-By: GH:isidentical
* bpo-30256: [doc] Fix formatting error in news (GH-26994)Ken Jin2021-07-021-1/+1
|
* bpo-43950: Add code.co_positions (PEP 657) (GH-26955)Pablo Galindo2021-07-0215-5177/+7622
| | | | | | | | | | | | | | | This PR is part of PEP 657 and augments the compiler to emit ending line numbers as well as starting and ending columns from the AST into compiled code objects. This allows bytecodes to be correlated to the exact source code ranges that generated them. This information is made available through the following public APIs: * The `co_positions` method on code objects. * The C API function `PyCode_Addr2Location`. Co-authored-by: Batuhan Taskaya <isidentical@gmail.com> Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
* bpo-34798: [doc] clearer presentation of pprint.PrettyPrinter constru… ↵Irit Katriel2021-07-022-18/+31
| | | | (GH-26967)
* bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341)finefoot2021-07-024-2/+15
| | | | Co-authored-by: Jordan Speicher <jordan@jspeicher.com>
* bpo-43425: Update setup.py not to use distutils.log (GH-26969)Dong-hee Na2021-07-021-16/+23
|
* bpo-44313: bump up magic (#26983)Batuhan Taskaya2021-07-012-2/+2
|
* bpo-43234: Prohibit non-ThreadPoolExecutor in loop.set_default_executor ↵Illia Volochii2021-07-015-17/+21
| | | | (GH-24540)
* bpo-43216: Remove @asyncio.coroutine (GH-26369)Illia Volochii2021-07-0111-764/+86
| | | | | | | | | Remove the @asyncio.coroutine decorator enabling legacy generator-based coroutines to be compatible with async/await code; remove asyncio.coroutines.CoroWrapper used for wrapping legacy coroutine objects in the debug mode. The decorator has been deprecated since Python 3.8 and the removal was initially scheduled for Python 3.10.
* Add file describing how to add or modify specialized families of ↵Mark Shannon2021-07-012-0/+135
| | | | instructions. (GH-26954)
* bpo-43770: Cleanup _PyObject_GetMethod() (GH-26946)Victor Stinner2021-07-011-21/+19
| | | | | | | | _PyObject_GetMethod() now uses _PyType_IsReady() to decide if PyType_Ready() must be called or not, rather than testing if tp->tp_dict is NULL. Move also variable declarations closer to where they are used, and use Py_NewRef().
* bpo-43425: Update _osx_support not to use distutils.log (GH-26968)Dong-hee Na2021-07-011-4/+3
|
* bpo-44531: Add _PyType_AllocNoTrack() function (GH-26947)Victor Stinner2021-07-014-28/+51
| | | | | | | | | | | | Add an internal _PyType_AllocNoTrack() function to allocate an object without tracking it in the GC. Modify dict_new() to use _PyType_AllocNoTrack(): dict subclasses are now only tracked once all PyDictObject members are initialized. Calling _PyObject_GC_UNTRACK() is no longer needed for the dict type. Similar change in tuple_subtype_new() for tuple subclasses. Replace tuple_gc_track() with _PyObject_GC_TRACK().
* bpo-44313: generate LOAD_ATTR/CALL_FUNCTION for top-level imported objects ↵Batuhan Taskaya2021-06-309-214/+279
| | | | (GH-26677)
* Fix compiler errors for unused variables in marshal.c (GH-26977)Pablo Galindo2021-06-301-2/+0
|
* bpo-44535: Enable building with Visual Studio 2022 on Windows (GH-26962)Steve Dower2021-06-302-0/+2
|
* bpo-41180: Fixes documentation to specify correct event name and add ↵Steve Dower2021-06-301-1/+11
| | | | versionchanged (GH-26972)
* bpo-41180: Replace marshal code.__new__ audit event with marshal.load[s] and ↵Steve Dower2021-06-305-10/+65
| | | | marshal.dumps (GH-26961)