summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Update DSL docs for cases generator (#105753)Guido van Rossum2023-06-141-44/+60
| | | | | * Clarify things around goto error/ERROR_IF a bit * Remove docs for super-instructions * Add pseudo; fix heading markup
* GH-100987: Allow objects other than code objects as the "executable" of an ↵Mark Shannon2023-06-142-9/+17
| | | | | | | | | | internal frame. (GH-105727) * Add table describing possible executable classes for out-of-process debuggers. * Remove shim code object creation code as it is no longer needed. * Make lltrace a bit more robust w.r.t. non-standard frames.
* gdb libpython.py: Remove compatibility code (#105739)Victor Stinner2023-06-141-47/+22
| | | | | | | | Remove compatibility code for Python 2 and early Python 3 versions. * Remove os_fsencode() reimplementation: use os.fsencode() directly. os.fsencode() was added to Python 3.2. * Remove references to Python 2 and "Python 3": just say "Python". * Remove outdated u'' string format: use '' instead.
* gh-105699: Use a Thread-Local Variable for PKGCONTEXT (gh-105740)Eric Snow2023-06-143-1/+9
| | | This fixes a race during import. The existing _PyRuntimeState.imports.pkgcontext is shared between interpreters, and occasionally this would cause a crash when multiple interpreters were importing extensions modules at the same time. To solve this we add a thread-local variable for the value. We also leave the existing state (and infrequent race) in place for platforms that do not support thread-local variables.
* gh-98040: Fix importbench: use types.ModuleType() (#105743)Victor Stinner2023-06-131-1/+2
| | | Replace removed imp.new_module(name) with types.ModuleType(name).
* gh-104812: Run Pending Calls in any Thread (gh-104813)Eric Snow2023-06-131-0/+1
| | | For a while now, pending calls only run in the main thread (in the main interpreter). This PR changes things to allow any thread run a pending call, unless the pending call was explicitly added for the main thread to run.
* gh-105481: add flags to each instr in the opcode metadata table, to replace ↵Irit Katriel2023-06-131-14/+52
| | | | opcode.hasarg/hasname/hasconst (#105482)
* gh-105540: Fix code generator tests (#105707)Guido van Rossum2023-06-121-128/+47
| | | | This involves expanding PEEK, POKE and JUMPBY macros, and removing super and register tests (those features no longer exist).
* Remove support for legacy bytecode instructions (#105705)Guido van Rossum2023-06-123-22/+3
| | | | (A legacy instruction is of the form `instr(FOOBAR)`, i.e. missing the `(... -- ...)` stack/cache effect annotation.)
* gh-105229: Remove syntactic support for super-instructions (#105703)Guido van Rossum2023-06-122-143/+38
| | | It will not be used again.
* gh-105481: add pseudo-instructions to the bytecodes DSL (#105506)Irit Katriel2023-06-112-10/+111
|
* 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>