summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45975: Use walrus operator for some idlelib while loops (GH-31083)Nick Drozd2022-02-035-24/+9
|
* bpo-46616: Ensures test_importlib.test_windows cleans up registry keys after ↵Steve Dower2022-02-021-3/+14
| | | | completion (GH-31086)
* bpo-45173: Keep configparser deprecations until Python 3.12 (GH-30952)Hugo van Kemenade2022-02-022-1/+72
| | | | | | | * Revert "bpo-45173 Remove configparser deprecations" This reverts commit df2284bc416dcccba1125b12af4499c45baabe4f. * bpo-45173: Note these configparser deprecations will be removed in 3.12
* bpo-46433: _PyType_GetModuleByDef: handle static types in MRO (GH-30696)Petr Viktorin2022-02-021-0/+16
| | | Automerge-Triggered-By: GH:encukou
* bpo-45459: Add Py_buffer to limited API (GH-29991)Christian Heimes2022-02-022-0/+23
| | | | | | | | | | | - [x] ``Py_buffer`` struct - [x] ``PyBuffer_*()`` API functions - [x] ``PyBUF_*`` constants - [x] ``Py_bf_getbuffer`` and ``Py_bf_releasebuffer`` type slots - [x] ``PyMemoryView_FromBuffer()`` API - [x] tests for limited API - [x] ``make regen-limited-abi`` - [x] documentation update - [ ] export ``PyPickleBuffer*()`` API ???
* bpo-43012: remove `pathlib._Accessor` (GH-25701)Barney Gale2022-02-022-130/+76
| | | | | | | | | | | | | | | | Per Pitrou: > The original intent for the “accessor” thing was to have a variant that did all accesses under a filesystem tree in a race condition-free way using openat and friends. It turned out to be much too hairy to actually implement, so was entirely abandoned, but the accessor abstraction was left there. https://discuss.python.org/t/make-pathlib-extensible/3428/2 Accessors are: - Lacking any internal purpose - '_NormalAccessor' is the only implementation - Lacking any firm conceptual difference to `Path` objects themselves (inc. subclasses) - Non-public, i.e. underscore prefixed - '_Accessor' and '_NormalAccessor' - Unofficially used to implement customized `Path` objects, but once once [bpo-24132]() is addressed there will be a supported route for that. This patch preserves all existing behaviour.
* bpo-46583: remove unused `sys.version_info` check from `selectors` (GH-31023)Nikita Sobolev2022-02-021-6/+5
|
* Fix minor details in the Counter docs (GH-31029)Raymond Hettinger2022-02-021-0/+4
|
* bpo-46414: Add typing.reveal_type (#30646)Jelle Zijlstra2022-02-022-1/+31
| | | | Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069)Victor Stinner2022-02-021-4/+11
| | | | test_ftplib now silently ignores socket errors to prevent logging unhandled threading exceptions.
* bpo-46591: Make About IDLE doc link label clickable (GH-30251)Wes2022-02-023-2/+6
| | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-46528: Simplify BUILD_TUPLE/UNPACK_SEQUENCE folding (GH-31039)Brandt Bucher2022-02-011-1/+1
|
* bpo-46600: Fix test_gdb.test_pycfunction() for clang -Og (GH-31058)Victor Stinner2022-02-011-11/+14
| | | | | | | | Fix test_gdb.test_pycfunction() for Python built with clang -Og. Tolerate inlined functions in the gdb traceback. When _testcapimodule.c is built by clang -Og, _null_to_none() is inlined in meth_varargs() and so gdb returns _null_to_none() as the frame #1. If it's not inlined, meth_varargs() is the frame #1.
* bpo-46487: Add `get_write_buffer_limits` to Write and _SSLProtocol ↵Emiya2022-02-012-0/+12
| | | | | transports (GH-30958) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-46584: remove check for `py2.3` from `ctypes/test_python_api` (GH-31024)Nikita Sobolev2022-02-011-6/+2
|
* bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014)Irit Katriel2022-02-011-2/+2
|
* bpo-46482: add a test for `typing.Annotation.__new__` (GH-30821)Nikita Sobolev2022-02-011-0/+7
|
* bpo-46542: test_lib2to3 uses support.infinite_recursion() (GH-31035)Victor Stinner2022-01-314-23/+45
| | | | | | | | | | | | | | | | | | | | | * bpo-46542: test_lib2to3 uses support.infinite_recursion() Fix a Python crash in test_lib2to3 when using Python built in debug mode: limit the recursion limit. The test_all_project_files() test of test_lib2to3 now uses the test.support.infinite_recursion() context manager when processing the infinite_recursion.py file to prevent a crash when Python is built in debug mode. The two test_all_project_files() tests now use subTest() and log the refactored/parsed filename (if test_lib2to3 is run in verbose mode). * Update Lib/lib2to3/tests/data/infinite_recursion.py Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Fix a `UnboundLocalError` bug in `test_sysconfig` (GH-31000)Brett Cannon2022-01-291-2/+2
| | | Accidentally introduced by GH-24502
* bpo-29688: document and test `pathlib.Path.absolute()` (GH-26153)Barney Gale2022-01-282-8/+61
| | | | Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Brian Helba <brian.helba@kitware.com>
* bpo-43112: detect musl as a separate SOABI (GH-24502)Natanael Copa2022-01-281-4/+4
| | | | | | | musl libc and gnu libc are not ABI compatible so we need set different SOABI for musl and not simply assume that all linux is linux-gnu. Replace linux-gnu with the detected os for the build from config.guess for linux-musl*.
* bpo-26552: Fixed case where failing `asyncio.ensure_future` did not close ↵Kumar Aditya2022-01-282-3/+20
| | | | the coroutine (#30288)
* bpo-46458: Add tests for context of exception in finally block (GH-30986)Irit Katriel2022-01-281-0/+50
|
* bpo-46560: Fix a typo in `typing.ParamSpec's` doc string (GH-30995)Zackery Spytz2022-01-281-1/+1
|
* bpo-46553: allow bare typing.ClassVar annotations (#30983)Gregory Beauregard2022-01-282-2/+6
| | | | | These are used in the wild and covered by dataclasses unit tests. Several static type checkers support this pattern.
* bpo-46329: Split calls into precall and call instructions. (GH-30855)Mark Shannon2022-01-284-200/+239
| | | | | | | | | | | | | | * Add PRECALL_FUNCTION opcode. * Move 'call shape' varaibles into struct. * Replace CALL_NO_KW and CALL_KW with KW_NAMES and CALL instructions. * Specialize for builtin methods taking using the METH_FASTCALL | METH_KEYWORDS protocol. * Allow kwnames for specialized calls to builtin types. * Specialize calls to tuple(arg) and str(arg).
* bpo-46530: add `"thread_time"` to `test_time.test_get_clock_info` (#30913)Nikita Sobolev2022-01-281-12/+18
|
* bpo-46542: test_json uses support.infinite_recursion() (GH-30972)Victor Stinner2022-01-281-6/+13
| | | | Fix test_json tests checking for RecursionError: modify these tests to use support.infinite_recursion().
* bpo-46098: Add test for multiline syntax error traceback (GH-30695)Russel Webber2022-01-271-7/+41
|
* bpo-44734: Fix floating point precision in test_turtle (GH-30910)Karolina Surma2022-01-271-1/+1
|
* bpo-46458: emit code for else of a try block immediately after the try body ↵Irit Katriel2022-01-273-69/+214
| | | | (GH-30751)
* bpo-44791: Fix substitution of ParamSpec in Concatenate with different ↵Serhiy Storchaka2022-01-273-5/+60
| | | | | | | | | parameter expressions (GH-27518) * Substitution with a list of types returns now a tuple of types. * Substitution with Concatenate returns now a Concatenate with concatenated lists of arguments. * Substitution with Ellipsis is not supported.
* bpo-46544: Do not leak `x` and `uspace` in textwrap.TextWrapper (GH-30955)Nikita Sobolev2022-01-271-4/+1
|
* bpo-23556: [doc] Fix inaccuracy in documentation for raise without args. ↵Kinshuk Dua2022-01-271-3/+19
| | | | Improve tests for context in nested except handlers. (GH-29236)
* bpo-40280: Use presence of msvcrt module to detect Windows (GH-30930)Christian Heimes2022-01-271-2/+7
|
* bpo-45162: Revert "Remove many old deprecated unittest features" (GH-30935)Gregory P. Smith2022-01-2710-25/+323
| | | | | | | | | | Revert "bpo-45162: Remove many old deprecated unittest features (GH-28268)" This reverts commit b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b. We're deferring this change until 3.12 while upstream projects that use the legacy assertion method names are fixed. See the issue for links to the discussion. Many upstream projects now have issues and PRs filed.
* bpo-46496: news11-10 for bpo45296 (GH-30937)Terry Jan Reedy2022-01-271-0/+6
|
* bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936)Terry Jan Reedy2022-01-272-11/+13
| | | | | | In the File menu, 'Close' and 'Exit' are now 'Close Window' (the current one) and 'Exit' is now 'Exit IDLE' (by closing all windows). In Shell, 'quit()' and 'exit()' mean 'close Shell'. If there are no other windows, this also exits IDLE.
* bpo-46539: Pass status of special typeforms to forward references (GH-30926)Gregory Beauregard2022-01-272-3/+17
| | | | | | | | | Previously this didn't matter because there weren't any valid code paths that could trigger a type check with a special form, but after the bug fix for `Annotated` wrapping special forms it's now possible to annotate something like `Annotated['ClassVar[int]', (3, 4)]`. This change would also be needed for proposed future changes, such as allowing `ClassVar` and `Final` to nest each other in dataclasses.
* bpo-46528: Simplify the VM's stack manipulations (GH-30902)Brandt Bucher2022-01-265-12/+8
|
* bpo-43853: Expand test suite for SQLite UDF's (GH-27642)Erlend Egeberg Aasland2022-01-261-64/+64
|
* bpo-46527: allow calling enumerate(iterable=...) again (GH-30904)Jelle Zijlstra2022-01-261-2/+16
|
* bpo-46529: increase coverage of `typing.Union.__repr__` method (GH-30911)Nikita Sobolev2022-01-261-0/+9
|
* bpo-45578: add a test case for `dis.findlabels` (GH-30058)Nikita Sobolev2022-01-261-0/+10
|
* bpo-46431: use raw string for regex in test (GH-30901)Irit Katriel2022-01-251-1/+1
|
* Add skips to crashing tests under sanitizers instead of manually skipping ↵Pablo Galindo Salgado2022-01-256-6/+33
| | | | them (GH-30897)
* bpo-46091: Correctly calculate indentation levels for whitespace lines with ↵Pablo Galindo Salgado2022-01-253-3/+130
| | | | continuation characters (GH-30130)
* Refactor sanitiser skip tests into test.support (GH-30889)Pablo Galindo Salgado2022-01-253-34/+42
| | | | | | | * Refactor sanitizer skip tests into test.support * fixup! Refactor sanitizer skip tests into test.support * fixup! fixup! Refactor sanitizer skip tests into test.support
* bpo-45382: test.pythoninfo: set wmic.exe encoding to OEM (GH-30890)Victor Stinner2022-01-251-0/+3
|
* bpo-46510: Add missing test for types.TracebackType/FrameType. Calculate ↵Irit Katriel2022-01-252-5/+11
| | | | them directly from the caught exception. (GH-30880)