aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib
Commit message (Collapse)AuthorAge
* gh-120220: Deprecate legacy methods for tracing variables in Tkinter (GH-120223)Serhiy Storchaka22 hours
| | | | | They do not work with Tcl 9.0. Use new methods added in Python 3.6.
* gh-121468: Support async breakpoint in pdb (#132576)Tian Gao23 hours
|
* gh-132987: Support __index__() in the socket module (GH-133093)Serhiy Storchaka23 hours
| | | | | | | | ntohl(), htonl(), if_indextoname(), getaddrinfo() now use __index__() if available. Also fix the Argument Clinic names for module-level functions (although this does not affect the user).
* GH-130328: pasting in new REPL is slow on Windows (GH-132884)Chris Eibl23 hours
|
* gh-132933: zipapp - apply the filter when creating the list of files to add ↵Johannes Holmberg25 hours
| | | | (gh-132934)
* gh-132987: Support __index__() in the lzma module (GH-133099)Serhiy Storchaka25 hours
|
* gh-132987: Support __index__() in the ssl.SSLContext.options setter (GH-133098)Serhiy Storchaka26 hours
|
* Revert gh-127266: avoid data races when updating type slots (gh-131174) ↵Neil Schemenauer33 hours
| | | | | (gh-133129) This is triggering deadlocks in test_opcache. See GH-133130 for stack trace.
* gh-132893: Minor edits to the statistics module PR (gh-133106)Raymond Hettinger35 hours
|
* gh-87859: Track Code Object Local Kinds For Arguments (gh-132980)Eric Snow37 hours
| | | | | Doing this was always the intention. I was finally motivated to find the time to do it. See #87859 (comment).
* gh-132775: Add _PyCode_ReturnsOnlyNone() (gh-132981)Eric Snow37 hours
| | | | | The function indicates whether or not the function has a return statement. This is used by a later change related treating some functions like scripts.
* gh-132775: Add _PyMarshal_GetXIData() (gh-133108)Eric Snow40 hours
| | | Note that the bulk of this change is tests.
* gh-125142: add REPL help text for keyboard shortcuts (gh-125143)Neil Schemenauer42 hours
|
* gh-127266: avoid data races when updating type slots (gh-131174)Neil Schemenauer43 hours
| | | | | | | | In the free-threaded build, avoid data races caused by updating type slots or type flags after the type was initially created. For those (typically rare) cases, use the stop-the-world mechanism. Remove the use of atomics when reading or writing type flags. The use of atomics is not sufficient to avoid races (since flags are sometimes read without a lock and without atomics) and are no longer required.
* gh-122320: Limit dict key versions used by test_opcache. (gh-132961)Neil Schemenauer44 hours
| | | | | The `test_load_global_module()` test consumes a lot of dict key versions. Skip the test if we have consumed half of the available versions that can be used for the "load global" cache.
* GH-128520: pathlib ABCs tests: use explicit text encoding (#133105)Barney Gale44 hours
| | | | | Follow-up to fbffd70. Set `encoding='utf-8'` when reading and writing text in the tests for the private pathlib ABCs, which allows the tests to run with `-W error -X warn_default_encoding`
* gh-132742: Fix newly added tcflush() tests on Android (GH-133070)Serhiy Storchaka45 hours
|
* GH-128520: pathlib ABCs: raise text encoding warnings at correct stack level ↵Barney Gale45 hours
| | | | | | | (#133051) Ensure that warnings about unspecified text encodings are emitted from `ReadablePath.read_text()`, `WritablePath.write_text()` and `magic_open()` with the correct stack level set.
* gh-132775: Cleanup Related to crossinterp.c Before Further Changes (gh-132974)Eric Snow45 hours
| | | This change consists of adding tests and moving code around, with some renaming thrown in.
* gh-133054: Skip `test_pyrepl` tests when `cannot use pyrepl` is reported ↵sobolevn47 hours
| | | | | (#133055) Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
* gh-132952: Speed up startup by importing _io instead of io (#132957)Jelle Zijlstra48 hours
|
* typing, annotationlib: clean tests (#133087)Jelle Zijlstra48 hours
| | | | | | | | | | - Add @cpython_only decorator to lazy import tests - Rename reference to SOURCE format - Always two newlines between test case classes - Merge two classes of ForwardRef tests - Use get_annotations instead of annotationlib.get_annotations - Format test_annotationlib with Black (not expecting that we'll keep this up but it's close to Black-formatted right now)
* gh-129965: Add more missing MIME types (#132845)Hugo van Kemenade48 hours
|
* gh-75223: Deprecate undotted extensions in `mimetypes.MimeTypes.add_type` ↵Hugo van Kemenade2 days
| | | | | | | | (#128638) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Daniel Watkins <daniel@daniel-watkins.co.uk> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-132983: Convert compression._common to a package (#133086)Victor Stinner2 days
| | | Add an "__init__.py" file. Fix test_tools.test_freeze.
* gh-87135: Raise PythonFinalizationError when joining a blocked daemon thread ↵Petr Viktorin2 days
| | | | | | | | | | | | | | | | (gh-130402) If `Py_IsFinalizing()` is true, non-daemon threads (other than the current one) are done, and daemon threads are prevented from running, so they cannot finalize themselves and become done. Joining them (without timeout) would block forever. Raise PythonFinalizationError instead of hanging. Raise even when a timeout is given, for consistency with trying to join your own thread. See gh-123940 for a use case: calling `join()` from `__del__`. This is ill-advised, but an exception should at least make it easier to diagnose.
* gh-130317: Fix PyFloat_Pack/Unpack[24] for NaN's with payload (#130452)Sergey B Kirpichev2 days
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-130907: Treat all module-level annotations as conditional (#131550)Jelle Zijlstra2 days
|
* gh-53032: support IEEE 754 contexts in the decimal module (#122003)Sergey B Kirpichev2 days
| | | | | | | | This was in C version from beginning, but available only on conditional compilation (EXTRA_FUNCTIONALITY). Current patch adds function to create IEEE contexts to the pure-python module as well. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* GH-114911: use time.perf_counter in Stopwatch (GH-131469)Chris Eibl2 days
| | | | Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-132742: Improve tests for fcntl.ioctl() (GH-132791)Serhiy Storchaka2 days
| | | | | * Use better tests for integer argument. * Add also parallel tests for tcflush() and tcflow().
* gh-132993: expose `HASHLIB_GIL_MINSIZE` to private extension modules (#132999)Bénédikt Tran3 days
|
* gh-133005: Support `tarfile.open(mode="w|xz", preset=...)` (GH-133007)Michał Górny3 days
| | | | | | | | | | | | | | | | | | * gh-133005: Support `tarfile.open(mode="w|xz", preset=...)` Support passing the `preset` option to `tarfile.open` when the file is open with `mode="w|xz"`. This aligns the behavior with `"w:xz"` mode. * Also raise an error for `compresslevel` or `preset` with wrong mode Raise an error if `compresslevel` or `preset` argument is specified for stream mode with incorrect compression. This should reduce the risk of mistakes and align the stream modes with regular modes, that raise an implicit TypeError on unsupported arguments. * Apply suggestions from code review Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
* gh-132983: Introduce `compression` package and move `_compression` module ↵Emma Smith3 days
| | | | | | | | | | | | | | | (GH-133018) * Introduces `compression` package for https://peps.python.org/pep-0784/ This commit introduces the `compression` package, specified in PEP 784 to re-export the `lzma`, `bz2`, `gzip`, and `zlib` modules. Introduction of `compression.zstd` will be completed in a future commit once the `_zstd` module is merged. This commit also moves the `_compression` private module to `compression._common._streams`. * Re-exports existing module docstrings.
* gh-133046: Reformat the ``ast`` module docstring (GH-133050)Hunter Hogan3 days
| | | | | | | | | * Fix formatting in module docstring for `ast` https://github.com/python/cpython/issues/133046 * #133046 ast docstring: remove header, dedent, 80-char width. * Keep existing wrapping --------- Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* gh-115032: Deprecate support for custom logging handlers with 'strm' ↵Mariusz Felisiak3 days
| | | | argument. (GH-115314)
* [tests] fix test_fcntl issue when run in a ChromeOS linux runtime (GH-133053)Gregory P. Smith3 days
| | | | | * [tests] test_fcntl fails when run in a ChromeOS linux runtime container. It doesn't appear to support F_NOTIFY? Detect the lack of that and skip the test.
* gh-127495: Append to history file after every statement in PyREPL (GH-132294)Sergey B Kirpichev3 days
|
* gh-128438: Use `EnvironmentVarGuard` in `test_zoneinfo.py` (#131870)Wulian2333 days
|
* gh-91069: do not disable `sha3` in `test_hashlib` under UBSan (#133001)Bénédikt Tran3 days
|
* gh-124703: Set return code to 1 when aborting process from pdb (#133013)Tian Gao4 days
|
* gh-63882: Implement some `test_minidom` tests (#132879)Stan Ulbrych4 days
| | | | | | Co-authored-by: Julian Gindi <julian@gindi.io> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-133016: Fix a reference to removed `asyncio.futures.TimeoutError` (#133019)John4 days
| | | Just use the builtin `TimeoutError`, and remove the import of `futures`.
* gh-131798: JIT: Propagate the result in `_BINARY_OP_SUBSCR_TUPLE_INT` ↵Tomas R.4 days
| | | | (GH-133003)
* gh-63882: Use `self.assert*` methods in `test_minidom` (#133000)Stan Ulbrych4 days
|
* gh-133006: Add subprocess check for remote pdb test (#133014)Tian Gao4 days
|
* gh-132987: Support __index__() for "k" and "K" formats in PyArg_Parse ↵Serhiy Storchaka4 days
| | | | (GH-132988)
* gh-132388: remove outdated TODO comment in `test_hmac.py` (#133008)Bénédikt Tran4 days
|
* gh-91221: fix `test_curses.test_use_default_colors` for xterm-256color (#132990)Bénédikt Tran4 days
| | | Terminals with `xterm-256color` Xterm support may use 15 (bright white) as their default foreground color.
* gh-132781: Cleanup Code Related to NotShareableError (gh-132782)Eric Snow5 days
| | | | | | | | | | The following are added to the internal C-API: * _PyErr_FormatV() * _PyErr_SetModuleNotFoundError() * _PyXIData_GetNotShareableErrorType() * _PyXIData_FormatNotShareableError() We also drop _PyXIData_lookup_context_t and _PyXIData_GetLookupContext().