summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-44616: Mark all clean up instructions at end of named exception block as ↵Mark Shannon2021-07-143-5/+27
| | | | artificial (GH-27109)
* bpo-44608: Fix memory leak in _tkinter._flatten() (GH-27107)Serhiy Storchaka2021-07-143-2/+12
| | | | if it is called with a sequence or set, but not list or tuple.
* bpo-44606: Fix __instancecheck__ and __subclasscheck__ for the union type. ↵Serhiy Storchaka2021-07-143-6/+55
| | | | | | | | | | (GH-27120) * Fix issubclass() for None. E.g. issubclass(type(None), int | None) returns now True. * Fix issubclass() for virtual subclasses. E.g. issubclass(dict, int | collections.abc.Mapping) returns now True. * Fix crash in isinstance() if the check for one of items raises exception.
* bpo-44630: Fix assertion errors in csv module (GH-27127)T. Wouters2021-07-132-4/+14
| | | | | | | | | | | | | Fix incorrect handling of exceptions when interpreting dialect objects in the csv module. Not clearing exceptions between calls to PyObject_GetAttrString() causes assertion failures in pydebug mode (or with assertions enabled). Add a minimal test that would've caught this (passing None as dialect, or any object that isn't a csv.Dialect subclass, which the csv module allows and caters to, even though it is not documented.) In pydebug mode, the test triggers the assertion failure in the old code. Contributed-By: T. Wouters [Google]
* bpo-33346: Allow async comprehensions inside implicit async comprehensions ↵Serhiy Storchaka2021-07-136-17/+109
| | | | | (GH-6766) Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* bpo-44572: On Windows, disconnect STDIN in platform._syscmd_ver() to prevent ↵Konstantin-Glukhov2021-07-132-0/+2
| | | | erroneous STDIN consumption (GH-27092)
* Fix typos in Mac/README.rst (#27108)Clemens Brunner2021-07-131-3/+3
|
* bpo-43126: Expand docs on io.IOBase.readlines() method (#27061)andrei kulakov2021-07-131-0/+3
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-44514: Add doctest testcleanup for configparser and bz2 (#26909)Kevin Follstad2021-07-132-0/+10
| | | | | Add testcleanup section to configparser and bz2 documentation which removes temporary files created in the filesystem when 'make doctest' is run.
* bpo-38741: Definition of multiple ']' in header configparser (GH-17129)jsnklln2021-07-133-1/+9
| | | | Co-authored-by: Jason Killen <jason.killen@windsorcircle.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-35113: clean up duplicate import and comment (#27073)andrei kulakov2021-07-131-4/+0
|
* Remove unnecessary pass statements (GH-27103)Elisha Hollander2021-07-133-3/+0
|
* bpo-43950: Add documentation for PEP-657 (GH-27047)Ammar Askar2021-07-134-0/+124
| | | | Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
* bpo-44613: Make importlib.metadata non-provisional (#27101)Barry Warsaw2021-07-122-4/+3
| | | | * importlib.metadata is no longer provisional as of 3.10 * Add NEWS entry
* bpo-43950: Specialize tracebacks for subscripts/binary ops (GH-27037)Batuhan Taskaya2021-07-124-46/+366
| | | | Co-authored-by: Ammar Askar <ammar@ammaraskar.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction ↵David Sanders2021-07-121-0/+2
| | | | (GH-23026)
* bpo-26329: update os.path.normpath documentation (GH-20138)Furkan Onder2021-07-122-0/+9
| | | | | | | | | * bpo-26329: update os.path.normpath documentation * Update os.path.rst * Update posixpath.py * update Pathname Resolution note
* build(deps): bump actions/upload-artifact from 2.2.3 to 2.2.4 (#26979)dependabot[bot]2021-07-121-1/+1
| | | | | | | | | | | | | | | | Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2.2.3 to 2.2.4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2.2.3...v2.2.4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* bpo-44207: Add an internal version number to function objects. (GH-27078)Mark Shannon2021-07-123-2/+36
|
* bpo-29753: revert 0d7ad9f (GH-19850) (GH-27085)Filipe Laíns2021-07-112-90/+8
| | | | | This reverts commit 0d7ad9fb38c041c46094087b0cf2c8ce44916b11 as it has a regression. See https://github.com/python/cpython/pull/19850#issuecomment-869410686
* bpo-43219: shutil.copyfile, raise a less confusing exception instead of ↵andrei kulakov2021-07-103-21/+42
| | | | | | IsADirectoryError (GH-27049) Fixes the misleading IsADirectoryError to be FileNotFoundError.
* bpo-44317: Improve tokenizer errors with more informative locations (GH-26555)Pablo Galindo Salgado2021-07-103-20/+57
|
* Remove irrelevant comment which was added in 2a70a3a (GH-27044)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2021-07-091-1/+0
|
* bpo-44570: Fix line tracing for forwards jumps to duplicated tails (GH-27068)Mark Shannon2021-07-082-4/+37
|
* bpo-44446: support lineno being None in traceback.FrameSummary (GH-26781)Filipe Laíns2021-07-083-0/+7
| | | | | | As of 088a15c49d99ecb4c3bef93f8f40dd513c6cae3b, lineno is None instead of -1 if there is no line number. Signed-off-by: Filipe Laíns <lains@riseup.net>
* bpo-44582: Accelerate mimetypes.init on Windows with a native accelerator ↵Steve Dower2021-07-085-7/+189
| | | | (GH-27059)
* docs: add the word 'official' (GH-26849)Ned Batchelder2021-07-081-1/+1
|
* bpo-44581: Don't execute quickened instructions if tracing is on (GH-27064)Mark Shannon2021-07-081-1/+9
|
* 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>