summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* gh-104876: Remove deprecated turtle.RawTurtle.settiltangle (#104877)Hugo van Kemenade2023-05-263-28/+7
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-104786: Remove kwargs-based TypedDict creation (#104891)Tomas R2023-05-252-16/+11
| | | | | Deprecated since Python 3.11. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104372: Drop the GIL around the vfork() call. (#104782)Gregory P. Smith2023-05-251-5/+8
| | | | | | | | | On Linux where the `subprocess` module can use the `vfork` syscall for faster spawning, prevent the parent process from blocking other threads by dropping the GIL while it waits for the vfork'ed child process `exec` outcome. This prevents spawning a binary from a slow filesystem from blocking the rest of the application. Fixes #104372.
* gh-104773: PEP 594: Remove the chunk module (#104868)Victor Stinner2023-05-257-147/+6
| | | The module had no tests.
* gh-104773: PEP 594: Remove the audioop module (#104937)Victor Stinner2023-05-2510-326/+12
|
* gh-104773: PEP 594: Remove the aifc module (#104933)Victor Stinner2023-05-2510-259/+13
| | | | * Remove .aifc and .aiff test files of Lib/test/audiodata/ * Remove Lib/test/Sine-1000Hz-300ms.aif test file
* gh-104773: PEP 594: Remove the uu module (#104932)Victor Stinner2023-05-258-82/+9
| | | | Doc/license.rst: Keep the UUencode and UUdecode license since it's also used by the uu codec.
* gh-104773: PEP 594: Remove the crypt module (#104908)Victor Stinner2023-05-2512-196/+26
| | | | Remove the crypt module and its private _crypt extension, deprecated in Python 3.11.
* Fix indentation in `json.AttrDict` REPL example (#104930)Alex Waygood2023-05-251-8/+8
| | | This is causing the docs to be rendered incorrectly.
* Misc improvements to the itertools docs (GH-104916)Raymond Hettinger2023-05-251-7/+24
|
* Misc updates to Whatsnew 3.12 (#104912)Raymond Hettinger2023-05-252-3/+36
|
* gh-104773: Remove the msilib package (GH-104911)Zachary Ware2023-05-259-572/+8
|
* gh-104874: Document NewType.__supertype__ (#104875)Jelle Zijlstra2023-05-241-0/+12
|
* gh-104773: PEP 594: Remove the xdrlib module (#104900)Victor Stinner2023-05-248-292/+6
| | | pickle documentation no longer mentions the XDR format.
* gh-104773: PEP 594: Remove the nis module (#104897)Victor Stinner2023-05-246-78/+8
|
* gh-104835: Remove unittest's deprecated getTestCaseNames, makeSuite, ↵Hugo van Kemenade2023-05-241-0/+14
| | | | findTestCases (#104836)
* gh-104773: PEP 594: Remove the nntplib module (#104894)Victor Stinner2023-05-2415-609/+23
| | | | | | | | * socket_helper.transient_internet() no longer imports nntplib to catch nntplib.NNTPTemporaryError. * ssltests.py no longer runs test_nntplib. * "make quicktest" no longer runs test_nntplib. * WASM: remove nntplib from OMIT_NETWORKING_FILES. * Remove mentions to nntplib in the email documentation.
* gh-104773: PEP 594: Remove the spwd module (#104871)Victor Stinner2023-05-249-97/+10
| | | Remove spwd from the configure script and Modules/Setup.
* gh-104773: PEP 594: Remove the mailcap module (#104867)Victor Stinner2023-05-245-97/+6
| | | Remove Lib/test/mailcap.txt test file.
* RtD docs previews: Cancel building PRs if no changes in Doc dir (#104100)Hugo van Kemenade2023-05-241-1/+1
| | | | | | Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Manuel Kaufmann <humitos@gmail.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-104773: PEP 594: Remove the sunau module (#104863)Victor Stinner2023-05-248-284/+11
| | | | * Remove Lib/test/audiodata/pluck-*.au files. * Remove Lib/test/audiotest.au file.
* gh-102856: Update "Formatted string literals" docs section after PEP701 ↵Lysandros Nikolaou2023-05-241-17/+35
| | | | (#104861)
* gh-104773: PEP 594: Remove the ossaudiodev module (#104862)Victor Stinner2023-05-248-459/+8
| | | | | * Remove ossaudiodev extension in configure.ac and regenerate the configure script. * Remove ossaudiodev in Modules/Setup and Modules/Setup.stdlib.in.
* gh-104773: PEP 594: Remove the pipes module (#104848)Victor Stinner2023-05-246-107/+7
|
* gh-102856: Add missing quote to fix doctest (#104852)Hugo van Kemenade2023-05-241-1/+1
|
* gh-102856: Add changes related to PEP 701 in 3.12 What's New docs (#104824)Marta Gómez Macías2023-05-241-16/+135
| | | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-104773: PEP 594: Remove the sndhdr module (#104774)Victor Stinner2023-05-245-107/+8
| | | Remove the Lib/test/sndhdrdata/ directory.
* gh-104773: PEP 594: Remove cgi and cgitb modules (#104775)Victor Stinner2023-05-2415-675/+49
| | | | | * Replace "cgi" with "!cgi" in the Sphinx documentation to avoid warnings on broken references. * test_pyclbr no longer tests the cgi module.
* GH-83863: Drop support for using `pathlib.Path` objects as context managers ↵Barney Gale2023-05-231-0/+3
| | | | | | | | | | (GH-104807) In Python 3.8 and prior, `pathlib.Path.__exit__()` marked a path as closed; some subsequent attempts to perform I/O would raise an IOError. This functionality was never documented, and had the effect of making `Path` objects mutable, contrary to PEP 428. In Python 3.9 we made `__exit__()` a no-op, and in 3.11 `__enter__()` began raising deprecation warnings. Here we remove both methods.
* gh-104770: Let generator.close() return value (#104771)Nicolas Tessore2023-05-231-6/+13
| | | | Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-102120: [TarFile] Add an iter function that doesn't cache (GH-102128)Robert O'Shea2023-05-231-1/+6
|
* gh-104780: Remove 2to3 program and lib2to3 module (#104781)Victor Stinner2023-05-239-507/+9
| | | | | | | | | * Remove the Tools/scripts/2to3 script. * Remove the Lib/test/test_lib2to3/ directory. * Doc/tools/extensions/pyspecific.py: remove the "2to3fixer" object type. * Makefile and PC/layout/main.py no longer compile lib2to3 grammar files. * Update Makefile for 2to3 removal.
* gh-92871: Remove typing.{io,re} namespaces (#92873)Sebastian Rittau2023-05-232-11/+3
| | | | | | Closes #92871 Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-104773: PEP 594: Remove the telnetlib module (#104778)Victor Stinner2023-05-238-268/+8
|
* Fix whatsnew for 3.13. (GH-104756)Ned Deily2023-05-222-0/+1
|
* GH-104668: Don't call PyOS_* hooks in subinterpreters (GH-104674)Brandt Bucher2023-05-222-0/+17
|
* Merge branch 'main' of https://github.com/python/cpython into mainThomas Wouters2023-05-221-7/+0
|\
| * howto/urllib2: remove link to an outdated french translation (GH-104193)Mathieu Dupuy2023-05-221-7/+0
| | | | | | We now have our own translation and it's not outdated
* | Python 3.13.0a0Thomas Wouters2023-05-222-5/+137
| |
* | Python 3.12.0b1v3.12.0b1Thomas Wouters2023-05-221-1/+1
|/
* gh-101282: Apply BOLT optimizations to libpython for shared builds (#104709)Gregory Szorc2023-05-221-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply BOLT optimizations to libpython for shared builds. Most of the C code is in libpython so it is critical to apply BOLT there fully realize BOLT benefits. This change also reworks how BOLT instrumentation is applied. It effectively removes the readelf based logic added in gh-101525 and replaces it with a mechanism that saves a copy of the pre-bolt binary and restores that copy when necessary. This allows us to perform BOLT optimizations without having to manually delete the output binary to force a new bolt run. Also: - add a clean-bolt target for purging BOLT files and hook that up to the clean target - .gitignore BOLT related files Before and after this refactor, `make` will no-op after a previous run. Both versions should also share common make DAG deficiencies where targets fail to trigger as often as they need to or can trigger prematurely in certain scenarios. e.g. after this change you may need to `rm profile-bolt-stamp` to force a BOLT run because there aren't appropriate non-phony targets for BOLT's make target to depend on. To make it easier to iterate on custom BOLT settings, the flags to pass to instrumentation and application are now defined in configure and can be overridden by passing BOLT_INSTRUMENT_FLAGS and BOLT_APPLY_FLAGS.
* gh-94473: Flatten arguments in tkinter.Canvas.coords() (GH-98479)Serhiy Storchaka2023-05-221-0/+11
| | | | | It now accepts not only "x1, y1, x2, y2, ..." and "[x1, y1, x2, y2, ...]", but also "(x1, y1), (x2, y2), ..." and "[(x1, y1), (x2, y2), ...]".
* gh-104656: Rename typeparams AST node to type_params (#104657)Jelle Zijlstra2023-05-221-3/+3
|
* gh-98836: Extend PyUnicode_FromFormat() (GH-98838)Serhiy Storchaka2023-05-212-85/+149
| | | | | | | | | * Support for conversion specifiers o (octal) and X (uppercase hexadecimal). * Support for length modifiers j (intmax_t) and t (ptrdiff_t). * Length modifiers are now applied to all integer conversions. * Support for wchar_t C strings (%ls and %lV). * Support for variable width and precision (*). * Support for flag - (left alignment).
* gh-103857: Document utcnow and utcfromtimestamp deprecations in What's New ↵Hugo van Kemenade2023-05-211-0/+10
| | | | | | (#104542) Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
* GH-101291: Add low level, unstable API for pylong (GH-101685)Mark Shannon2023-05-211-0/+24
| | | Co-authored-by: Petr Viktorin <encukou@gmail.com>
* typing docs: Move some classes out of the "Generics" section (#104707)Jelle Zijlstra2023-05-211-146/+146
| | | | | | | | | | | | - AnyStr can be used in type annotations, contrary to the section header - Unpack can also be used in annotations, and its use is not restricted to generics. It makes more sense with other building blocks like Required. - Protocol is not necessarily generic. Also fix the indentation for two notes associated with Concatenate. Split off from #104642, but I think this change is independently an improvement.
* gh-103295: expose API for writing perf map files (#103546)gsallam2023-05-213-3/+52
| | | | | Co-authored-by: Aniket Panse <aniketpanse@fb.com> Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Carl Meyer <carl@oddbird.net>
* Corrected identifier (#104713)William Sawyer2023-05-211-1/+1
|
* gh-102856: Python tokenizer implementation for PEP 701 (#104323)Marta Gómez Macías2023-05-212-0/+6
| | | | | | | | | | | This commit replaces the Python implementation of the tokenize module with an implementation that reuses the real C tokenizer via a private extension module. The tokenize module now implements a compatibility layer that transforms tokens from the C tokenizer into Python tokenize tokens for backward compatibility. As the C tokenizer does not emit some tokens that the Python tokenizer provides (such as comments and non-semantic newlines), a new special mode has been added to the C tokenizer mode that currently is only used via the extension module that exposes it to the Python layer. This new mode forces the C tokenizer to emit these new extra tokens and add the appropriate metadata that is needed to match the old Python implementation. Co-authored-by: Pablo Galindo <pablogsal@gmail.com>