summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* gh-104773: PEP 594: Remove the audioop module (#104937)Victor Stinner2023-05-251-0/+2
|
* gh-104773: PEP 594: Remove the aifc module (#104933)Victor Stinner2023-05-253-2/+4
| | | | * 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-252-1/+3
| | | | 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-253-2/+4
| | | | Remove the crypt module and its private _crypt extension, deprecated in Python 3.11.
* gh-104773: Remove the msilib package (GH-104911)Zachary Ware2023-05-256-11/+12
|
* gh-104874: Document NewType.__supertype__ (#104875)Jelle Zijlstra2023-05-241-0/+2
|
* gh-104820: Fixes os.stat on Windows to better handle file systems that do ↵Steve Dower2023-05-241-0/+2
| | | | not support FileIdInformation (GH-104892)
* gh-104773: PEP 594: Remove the xdrlib module (#104900)Victor Stinner2023-05-241-0/+2
| | | pickle documentation no longer mentions the XDR format.
* gh-104773: PEP 594: Remove the nis module (#104897)Victor Stinner2023-05-242-1/+3
|
* gh-104835: Remove unittest's deprecated getTestCaseNames, makeSuite, ↵Hugo van Kemenade2023-05-242-3/+16
| | | | findTestCases (#104836)
* gh-104773: PEP 594: Remove the nntplib module (#104894)Victor Stinner2023-05-244-6/+8
| | | | | | | | * 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-242-1/+4
| | | Remove spwd from the configure script and Modules/Setup.
* gh-99108: Refresh HACL* (#104808)Jonathan Protzenko2023-05-241-0/+2
| | | Refresh HACL* from upstream to improve SHA2 performance and fix a 32-bit issue in SHA3.
* gh-104879: Fix TypeAliasType.__module__ in exec() (#104881)Jelle Zijlstra2023-05-241-0/+2
|
* gh-104773: PEP 594: Remove the mailcap module (#104867)Victor Stinner2023-05-242-1/+3
| | | Remove Lib/test/mailcap.txt test file.
* gh-104773: PEP 594: Remove the sunau module (#104863)Victor Stinner2023-05-243-2/+4
| | | | * Remove Lib/test/audiodata/pluck-*.au files. * Remove Lib/test/audiotest.au file.
* gh-104773: PEP 594: Remove the ossaudiodev module (#104862)Victor Stinner2023-05-241-0/+2
| | | | | * 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-241-0/+2
|
* gh-104825: Remove implicit newline in the line attribute in tokens emitted ↵Pablo Galindo Salgado2023-05-241-0/+2
| | | | in the tokenize module (#104846)
* gh-104773: PEP 594: Remove the sndhdr module (#104774)Victor Stinner2023-05-241-0/+2
| | | Remove the Lib/test/sndhdrdata/ directory.
* gh-104773: PEP 594: Remove cgi and cgitb modules (#104775)Victor Stinner2023-05-242-1/+3
| | | | | * Replace "cgi" with "!cgi" in the Sphinx documentation to avoid warnings on broken references. * test_pyclbr no longer tests the cgi module.
* gh-104719: IDLE - test existence of all tokenize references. (#104767)Terry Jan Reedy2023-05-241-0/+2
| | | | | | Class editor.IndentSearcher contains all editor references to tokenize module. Module io tokenize reference cover those other modules. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-104797: Allow Protocols to inherit from collections.abc.Buffer (#104827)Jelle Zijlstra2023-05-241-0/+2
|
* gh-85934: Use getattr_static when adding mock spec (#22209)melanie witt2023-05-231-0/+2
| | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* GH-83863: Drop support for using `pathlib.Path` objects as context managers ↵Barney Gale2023-05-231-0/+4
| | | | | | | | | | (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-0/+2
| | | | 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-0/+2
|
* Remove gh-103207 changelog item as it was never part of any release. (GH-104814)Ned Deily2023-05-231-10/+0
|
* gh-104780: Remove 2to3 program and lib2to3 module (#104781)Victor Stinner2023-05-235-5/+7
| | | | | | | | | * 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-81005: Refactor str tests to reflect that str and unicode are merged in ↵Daniel Fortunov2023-05-231-0/+2
| | | | | | Python 3 (#13172) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-92871: Remove typing.{io,re} namespaces (#92873)Sebastian Rittau2023-05-231-0/+2
| | | | | | 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-232-1/+3
|
* gh-99108: Release the GIL around hashlib built-in computation (#104675)Gregory P. Smith2023-05-231-0/+3
| | | | | | | This matches the GIL releasing behavior of our existing `_hashopenssl` module, extending it to the HACL* built-ins. Includes adding comments to better describe the ENTER/LEAVE macros purpose and explain the lock strategy in both existing and new code.
* GH-104668: Don't call PyOS_* hooks in subinterpreters (GH-104674)Brandt Bucher2023-05-221-0/+5
|
* Python 3.12.0b1v3.12.0b1Thomas Wouters2023-05-22228-536/+2412
|
* gh-101282: Apply BOLT optimizations to libpython for shared builds (#104709)Gregory Szorc2023-05-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+3
| | | | | 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-99834: Update macOS installer to Tcl/Tk 8.6.13. (GH-104738)Ned Deily2023-05-221-0/+1
|
* gh-104656: Rename typeparams AST node to type_params (#104657)Jelle Zijlstra2023-05-221-1/+1
|
* gh-104536: Improve `multiprocessing.process._cleanup` logic (#104537)Luccccifer2023-05-221-0/+3
| | | | | | | | | | Fix a race condition in the internal `multiprocessing.process` cleanup logic that could manifest as an unintended `AttributeError` when calling `BaseProcess.close()`. --------- Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-98836: Extend PyUnicode_FromFormat() (GH-98838)Serhiy Storchaka2023-05-211-0/+4
| | | | | | | | | * 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-101291: Add low level, unstable API for pylong (GH-101685)Mark Shannon2023-05-211-0/+3
| | | Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-103295: expose API for writing perf map files (#103546)gsallam2023-05-211-0/+5
| | | | | 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>
* gh-102856: Python tokenizer implementation for PEP 701 (#104323)Marta Gómez Macías2023-05-211-0/+1
| | | | | | | | | | | 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>
* gh-61460: Stronger HMAC in multiprocessing (#20380)Christian Heimes2023-05-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | bpo-17258: `multiprocessing` now supports stronger HMAC algorithms for inter-process connection authentication rather than only HMAC-MD5. Signed-off-by: Christian Heimes <christian@python.org> gpshead: I Reworked to be more robust while keeping the idea. The protocol modification idea remains, but we now take advantage of the message length as an indicator of legacy vs modern protocol version. No more regular expression usage. We now default to HMAC-SHA256, but do so in a way that will be compatible when communicating with older clients or older servers. No protocol transition period is needed. More integration tests to verify these claims remain true are required. I'm unaware of anyone depending on multiprocessing connections between different Python versions. --------- Signed-off-by: Christian Heimes <christian@python.org> Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
* gh-103987: fix several crashes in mmap module (#103990)Prince Roshan2023-05-201-0/+2
| | | | Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-94906: Support multiple steps in math.nextafter (#103881)Matthias Görgens2023-05-191-0/+1
| | | | | | | This PR updates `math.nextafter` to add a new `steps` argument. The behaviour is as though `math.nextafter` had been called `steps` times in succession. --------- Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
* gh-103839: Allow building Tkinter against Tcl 8.7 without external ↵Christopher Chavez2023-05-191-0/+2
| | | | libtommath (GH-103842)
* gh-85984: New additions and improvements to the tty library. (#101832)Soumendra Ganguly2023-05-191-0/+3
| | | | | | | | | | New additions to the tty library. Functions added: cfmakeraw(), and cfmakecbreak(). The functions setcbreak() and setraw() now return original termios to save an extra tcgetattr() call. --------- Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
* gh-92248: Deprecate `type`, `choices`, `metavar` parameters of ↵Nikita Sobolev2023-05-191-0/+2
| | | | | | | | `argparse.BooleanOptionalAction` (#103678) Co-authored-by: Kirill <80244920+Eclips4@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>