summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* gh-104610: Stop looking for PREDICT() in the cases generator (#105459)Guido van Rossum2023-06-071-16/+5
| | | We no longer use `PREDICT()`, it doesn't have any benefits.
* gh-105407: Remove unused imports in Tools/c-analyzer/ (#105410)Victor Stinner2023-06-066-6/+2
|
* gh-105407: Remove unused imports in tools (#105409)Victor Stinner2023-06-062-3/+0
|
* gh-102304: doc: Add links to Stable ABI and Limited C API (#105345)Victor Stinner2023-06-061-4/+4
| | | | | | | | | * Add "limited-c-api" and "stable-api" references. * Rename "stable-abi-list" reference to "limited-api-list". * Makefile: Document files regenerated by "make regen-limited-abi" * Remove first empty line in generated files: - Lib/test/test_stable_abi_ctypes.py - PC/python3dll.c
* gh-101524: Only Use Public C-API in the _xxsubinterpreters Module (gh-105258)Eric Snow2023-06-021-0/+1
| | | The _xxsubinterpreters module was meant to only use public API. Some internal C-API usage snuck in over the last few years (e.g. gh-28969). This fixes that.
* GH-102404, GH-100956: Document how to do a WASI build (GH-105251)Brett Cannon2023-06-022-174/+190
| | | Also includes a reference shell script to implements what is documented.
* GH-104584: Plugin optimizer API (GH-105100)Mark Shannon2023-06-021-0/+4
|
* gh-92536: Argument Clinic no longer emits PyUnicode_READY() (#105208)Victor Stinner2023-06-011-7/+2
| | | | | | Since Python 3.12, PyUnicode_READY() does nothing and always returns 0. Argument Clinic now also checks for .cpp files (PC/_wmimodule.cpp).
* gh-104614: Make Sure ob_type is Always Set Correctly by PyType_Ready() ↵Eric Snow2023-06-011-0/+2
| | | | | | | (gh-105122) When I added the relevant condition to type_ready_set_bases() in gh-103912, I had missed that the function also sets tp_base and ob_type (if necessary). That led to problems for third-party static types. We fix that here, by making those extra operations distinct and by adjusting the condition to be more specific.
* gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (#105174)Gregory P. Smith2023-06-012-2/+4
| | | | | | | | | | | | | Upgrade builds to OpenSSL 1.1.1u. This OpenSSL version addresses a pile if less-urgent CVEs since 1.1.1t. The Mac/BuildScript/build-installer.py was already updated. Also updates _ssl_data_111.h from OpenSSL 1.1.1u, _ssl_data_300.h from 3.0.9, and adds a new _ssl_data_31.h file from 3.1.1 along with the ssl.c code to use it. Manual edits to the _ssl_data_300.h file prevent it from removing any existing definitions in case those exist in some peoples builds and were important (avoiding regressions during backporting). backports of this prior to 3.12 will not include the openssl 3.1 header.
* gh-105191: Cleanup peg generator; keep only necessary files (#105197)Lysandros Nikolaou2023-06-0120-16832/+60
|
* gh-105156: Cleanup usage of old Py_UNICODE type (#105158)Victor Stinner2023-06-011-7/+3
| | | | | | | | | | | | * refcounts.dat: * Remove Py_UNICODE functions. * Replace Py_UNICODE argument type with wchar_t. * _PyUnicode_ToLowercase(), _PyUnicode_ToUppercase(), _PyUnicode_ToTitlecase() are no longer deprecated in comments. It's no longer needed since they now use Py_UCS4 type, rather than the deprecated Py_UNICODE type. * gdb: Remove unused char_width() method.
* gh-105146: Update links at end of Windows installer (uninstall/repair) ↵Steve Dower2023-05-311-3/+3
| | | | (GH-105147)
* gh-105156: Argument Clinic avoids Py_UNICODE type (#105161)Victor Stinner2023-05-311-1/+1
| | | | Argument Clinic now uses "const wchar_t*" type instead of "const Py_UNICODE*" type for the "Py_UNICODE" format.
* gh-104909: Split BINARY_OP into micro-ops (#104910)Guido van Rossum2023-05-311-7/+32
| | | Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* gh-105091: stable_abi.py: Remove "Unixy" check from --all on other platforms ↵Petr Viktorin2023-05-301-1/+2
| | | | (GH-105092)
* gh-75552: Remove deprecated tkinter.tix module (GH-104902)Zachary Ware2023-05-272-10/+6
|
* gh-100238: Use setuptools in peg-generator and reenable tests (#104798)Lysandros Nikolaou2023-05-261-7/+47
|
* gh-104773: PEP 594: Remove the audioop module (#104937)Victor Stinner2023-05-252-2/+0
|
* gh-104773: PEP 594: Remove the aifc module (#104933)Victor Stinner2023-05-251-1/+1
| | | | * Remove .aifc and .aiff test files of Lib/test/audiodata/ * Remove Lib/test/Sine-1000Hz-300ms.aif test file
* Improves the Windows MSI test run on PR (GH-104929)Steve Dower2023-05-251-34/+24
| | | | Correctly set the exit code when builds fail Also build docs as part of the test
* gh-104773: PEP 594: Remove the uu module (#104932)Victor Stinner2023-05-251-2/+0
| | | | 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-252-2/+0
| | | | 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-253-3/+1
|
* gh-104773: PEP 594: Remove the xdrlib module (#104900)Victor Stinner2023-05-241-1/+0
| | | pickle documentation no longer mentions the XDR format.
* gh-104773: PEP 594: Remove the nis module (#104897)Victor Stinner2023-05-244-7/+0
|
* gh-104773: PEP 594: Remove the nntplib module (#104894)Victor Stinner2023-05-241-1/+0
| | | | | | | | * 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 mailcap module (#104867)Victor Stinner2023-05-241-1/+0
| | | Remove Lib/test/mailcap.txt test file.
* gh-104773: PEP 594: Remove the sunau module (#104863)Victor Stinner2023-05-241-1/+1
| | | | * 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-242-5/+0
| | | | | * 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 cgi and cgitb modules (#104775)Victor Stinner2023-05-241-2/+0
| | | | | * Replace "cgi" with "!cgi" in the Sphinx documentation to avoid warnings on broken references. * test_pyclbr no longer tests the cgi module.
* gh-104780: Remove 2to3 program and lib2to3 module (#104781)Victor Stinner2023-05-239-24/+5
| | | | | | | | | * 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-104773: PEP 594: Remove the telnetlib module (#104778)Victor Stinner2023-05-231-1/+0
|
* gh-104683: clinic.py: Modernise `parse_converter()` using pattern-matching ↵Alex Waygood2023-05-211-15/+19
| | | | (#104696)
* gh-104050: Add more type annotations to Argument Clinic (#104631)Erlend E. Aasland2023-05-211-23/+44
| | | | | | | Annotate methods of the following classes: - class Function - class Parameter - class LandMine
* gh-104050: Add basic type hints to Argument Clinic clinic class (#104705)Erlend E. Aasland2023-05-211-17/+38
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104050: Annotate Argument Clinic return converters (#104706)Erlend E. Aasland2023-05-211-30/+75
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-103295: expose API for writing perf map files (#103546)gsallam2023-05-211-0/+1
| | | | | 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-104050: Add basic type hints to Argument Clinic DSL parser (#104704)Erlend E. Aasland2023-05-201-21/+40
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104683: Modernise Tools/clinic/ (#104684)Alex Waygood2023-05-202-27/+31
| | | | | | | - Make some string interpolations more readable using f-strings or explicit parametrisation - Remove unneeded open() mode specifiers Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-104683: Modernise `clinic.py` using `str.removeprefix` and ↵Alex Waygood2023-05-201-5/+5
| | | | | `str.removesuffix` (#104685) Both methods were new in Python 3.9.
* gh-104146: Purge dead code from Argument Clinic (#104680)Erlend E. Aasland2023-05-201-10/+1
| | | | | | | | | | | | | | The following local variables were assigned but never used: - line 551: result - line 1341: groups - line 1431: default_return_converter - line 1529: ignore_self - line 1809: input_checksum - line 4224: new' --- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104683: Argument clinic: use `dict` over `OrderedDict` (#104647)Alex Waygood2023-05-201-25/+23
| | | For code readability. Instances of `builtins.dict` have been ordered since 3.6, and have been guaranteed by the language to be ordered since Python 3.7. Argument Clinic now requires Python 3.10+.
* gh-104050: Add more type annotations to Argument Clinic (#104628)Erlend E. Aasland2023-05-181-14/+39
| | | | | | | | | | Annotate the following: - methods of class Class - methods of class Module - methods of class PythonParser - function compute_checksum() - function parse_file() - global variable unsupported_special_methods
* gh-104549: Set __module__ on TypeAliasType (#104550)Jelle Zijlstra2023-05-181-0/+1
|
* gh-104050: Improve some typing around `default`s and sentinel values (#104626)Alex Waygood2023-05-181-18/+23
| | | | | | | | | | | - Convert `unspecified` and `unknown` to be members of a `Sentinels` enum, rather than instances of bespoke classes. - An enum feels more idiomatic here, and works better with type checkers. - Convert some `==` and `!=` checks for these values to identity checks, which are more idiomatic with sentinels. - _Don't_ do the same for `Null`, as this needs to be a distinct type due to its usage in `clinic.py`. - Use `object` as the annotation for `default` across `clinic.py`. `default` can be literally any object, so `object` is the correct annotation here. --- Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-104146: Remove unused vars from Argument Clinic (#104627)Erlend E. Aasland2023-05-181-2/+0
| | | Remove 'in_classes' and 'so_far' from DSLParser.directive_module()
* gh-104050: Add type hints to Argument Clinic converter keywords (#104588)Erlend E. Aasland2023-05-171-12/+36
| | | | | Introduce TypeSet, and use it to annotate the 'accept' keyword of various C converters. Also add some missing return annotations for converter init functions.
* gh-104050: Add typing to Argument Clinic converters (#104547)Erlend E. Aasland2023-05-161-53/+57
|
* GH-103092: isolate `pyexpat` (#104506)Kumar Aditya2023-05-161-1/+0
|