summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] gh-94430: Allow params named `module` or `self` with custom C names ↵Erlend Egeberg Aasland2022-07-071-2/+7
| | | | | | | in AC (GH-94431) (#94649) (cherry picked from commit 8bbd70b4d130f060f87e3f53810dc747a49fa369) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* gh-94538: Fix Argument Clinic output to custom file (GH-94539) (GH-94555)Miss Islington (bot)2022-07-051-1/+1
| | | | | (cherry picked from commit 2b8ed4d3d4741811da31fc774a202d535755c0a9) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* gh-84461: Tool/wasm/python.html: Add subresource integrity hashes (GH-93953)Miss Islington (bot)2022-07-011-2/+2
| | | | | (cherry picked from commit 1df9449db24f16c9c96bdd7dc283a5062bca68e6) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-84461: Improve WebAssembly in-browser demo (GH-91879)Miss Islington (bot)2022-07-013-25/+99
| | | | | | | | | | | | | | | | | | | | | | | | * Buffer standard input line-by-line * Add non-root .editorconfig for JS & HTML indent * Add support for clearing REPL with CTRL+L * Support unicode in stdout and stderr * Remove \r\n normalization * Note that local .editorconfig file extends root * Only normalize lone \r characters (convert to \n) * Skip non-printable characters in buffered input * Fix Safari bug (regex lookbehind not supported) Co-authored-by: Christian Heimes <christian@python.org> (cherry picked from commit a8e333d79aa639417e496181bcbad2cb801a7a56) Co-authored-by: Trey Hunner <trey@treyhunner.com>
* [3.11] GH-93516: Backport GH-93769 (GH-94231)Mark Shannon2022-06-281-0/+7
| | | * Store offset of first traceable instruction to avoid having to recompute it all the time when tracing.
* gh-84461: Build Emscripten with WASM BigInt support (GH-94219)Miss Islington (bot)2022-06-241-1/+3
| | | | | (cherry picked from commit e69306f08b9be84ccdd0a1c6601ec229c4e5b377) Co-authored-by: Christian Heimes <christian@python.org>
* gh-84461: Fix ctypes and test_ctypes on Emscripten (GH-94142)Miss Islington (bot)2022-06-241-0/+2
| | | | | | | | - c_longlong and c_longdouble need experimental WASM bigint. - Skip tests that need threading - Define ``CTYPES_MAX_ARGCOUNT`` for Emscripten. libffi-emscripten 2022-06-23 supports up to 1000 args. (cherry picked from commit 8625802d854ec0152177a6ff0ac092e0e3ff98a5) Co-authored-by: Christian Heimes <christian@python.org>
* gh-93771: Clarify how deepfreeze.py is run (GH-94150)Miss Islington (bot)2022-06-231-2/+4
| | | | | (cherry picked from commit 4e796f56465f7264ddba63c8396d2649e098b617) Co-authored-by: Guido van Rossum <guido@python.org>
* [3.11] gh-93382: Cache result of `PyCode_GetCode` in codeobject (GH-93383) ↵Ken Jin2022-06-231-0/+1
| | | | | | (#93493) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* [3.11] GH-93516: Backport GH-93769: Speedup line number checks when tracing ↵Mark Shannon2022-06-221-0/+2
| | | | | (GH-94127) Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* gh-91172: Create a workflow for verifying bundled pip and setuptools ↵Miss Islington (bot)2022-06-221-0/+98
| | | | | | | | | (GH-31885) (GH-94121) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> (cherry picked from commit d36954b7ead06daead3dcf9b0dd9f8002eab508f) Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
* [3.11] gh-84461: Fix Emscripten umask and permission issues (GH-94002) ↵Christian Heimes2022-06-191-0/+7
| | | | | (GH-94006) Co-authored-by: Christian Heimes <christian@python.org>
* gh-84461: Fix pydebug Emscripten browser builds (GH-93982)Miss Islington (bot)2022-06-181-12/+24
| | | | | | | wasm_assets script did not take the ABIFLAG flag of sysconfigdata into account. (cherry picked from commit 7a2cc35e1ca6808a735b90269756d5286077a152) Co-authored-by: Christian Heimes <christian@python.org>
* gh-84461: Document how to install SDKs manually (GH-93844)Miss Islington (bot)2022-06-151-0/+78
| | | | | | Co-authored-by: Brett Cannon <brett@python.org> (cherry picked from commit 8ba1c7f72010dedb80f0794c5f1dd1c97f81ec83) Co-authored-by: Christian Heimes <christian@python.org>
* gh-93824: Reenable installation of shell extension on Windows ARM64 (GH-93825)Miss Islington (bot)2022-06-153-14/+24
| | | | | (cherry picked from commit 99be1cbeb3b58f0daa9108abc4075412d6212169) Co-authored-by: Steve Dower <steve.dower@python.org>
* gh-84461: Fix parallel testing on WebAssembly (GH-93768)Miss Islington (bot)2022-06-131-2/+2
| | | | | (cherry picked from commit c2007573dd449ae054f9fd5227e49ac9eef00ae8) Co-authored-by: Christian Heimes <christian@python.org>
* gh-84461: Use HOSTRUNNER to run regression tests (GH-93694)Miss Islington (bot)2022-06-111-4/+42
| | | | | | Co-authored-by: Brett Cannon <brett@python.org> (cherry picked from commit dc5e02b2f44dada145a3743ef77b07dbcf3e4a4a) Co-authored-by: Christian Heimes <christian@python.org>
* gh-84461: Emscripten's faccessat() does not accept flags (GHß92353)Miss Islington (bot)2022-06-071-0/+3
| | | | | (cherry picked from commit 70690c7233aaad4431660a64daef81b5220e2ac1) Co-authored-by: Christian Heimes <christian@python.org>
* gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534) (GH-93550)Miss Islington (bot)2022-06-061-0/+5
| | | | | | WASI does not have the ``chmod(2)`` syscall yet. (cherry picked from commit 22fed605e096eb74f3aa33f6d25aee76fdc2a3fa) Co-authored-by: Christian Heimes <christian@python.org>
* gh-90473: WASI requires proper open(2) flags (GH-93529)Miss Islington (bot)2022-06-061-0/+3
| | | | | (cherry picked from commit 4c71d22c4f9fdde6f2234e7dc6a862419cd6fd98) Co-authored-by: Christian Heimes <christian@python.org>
* gh-90473: Skip and document more failing tests on WASI (GH-93436)Miss Islington (bot)2022-06-032-1/+14
| | | | | | | | | | - Mark more ``umask()`` cases - ``dup()`` is not supported - ``/dev/null`` is not available - document missing features - mark more modules as not available (cherry picked from commit 069c96f84ccd302436be180c8628289cc0efa977) Co-authored-by: Christian Heimes <christian@python.org>
* gh-90473: Misc test fixes for WASI (GH-93218)Miss Islington (bot)2022-05-251-1/+5
| | | | | | | | | | | * ``sys.executable`` is not set * WASI does not support subprocess * ``pwd`` module is not available * WASI checks ``open`` syscall flags more strict, needs r, w, rw flag. * ``umask`` is not available * ``/dev/null`` may not be accessible (cherry picked from commit 1f134e96ba994bea3aaea533d4a558df3c5cc3c0) Co-authored-by: Christian Heimes <christian@python.org>
* gh-90473: WASI: skip gethostname tests (GH-93092)Miss Islington (bot)2022-05-231-0/+1
| | | | | | | | | - WASI's ``gethostname()`` is a stub that always fails with OSError ``ENOTSUP`` - skip mailcap ``test`` if subprocess is not available - WASI process_time clock does not work. (cherry picked from commit 760ec8940aabd6a7fc471bd913ea1ac501cc604b) Co-authored-by: Christian Heimes <christian@python.org>
* gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)Miss Islington (bot)2022-05-193-3/+45
| | | | | (cherry picked from commit 137fd3d88aa46669f5717734e823f4c594ab2843) Co-authored-by: Christian Heimes <christian@python.org>
* gh-92256: Improve Argument Clinic parser error messages (GH-92268)Miss Islington (bot)2022-05-101-3/+9
| | | | | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org> (cherry picked from commit 4bd07d1dbd493fc9b2c2a77e9e905c517682052e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* gh-57684: Update tests for PYTHONSAFEPATH=1 (#92358)Victor Stinner2022-05-061-1/+2
| | | | | Fix tests failing with the PYTHONSAFEPATH=1 env var. Enhance also -P help in Python usage (python --help).
* gh-81057: Fix indent. (gh-92267)Eric Snow2022-05-031-1/+1
|
* gh-91320: Use _PyCFunction_CAST() (#92251)Victor Stinner2022-05-031-2/+2
| | | | | | | | | | Replace "(PyCFunction)(void(*)(void))func" cast with _PyCFunction_CAST(func). Change generated by the command: sed -i -e \ 's!(PyCFunction)(void(\*)(void)) *\([A-Za-z0-9_]\+\)!_PyCFunction_CAST(\1)!g' \ $(find -name "*.c")
* gh-81057: Get the c-analyzer tool working again. (gh-92246)Eric Snow2022-05-034-4/+16
|
* gh-91320: Argument Clinic uses _PyCFunction_CAST() (#32210)Victor Stinner2022-05-031-2/+5
| | | | Replace "(PyCFunction)(void(*)(void))func" cast with _PyCFunction_CAST(func).
* gh-92031: Deoptimize Static Code at Finalization (GH-92039)Dennis Sweeney2022-05-031-0/+7
|
* gh-91583: AC: Fix regression for functions with defining_class (GH-91739)Serhiy Storchaka2022-04-301-17/+36
| | | | | Argument Clinic now generates the same efficient code as before adding the defining_class parameter.
* gh-91324: Convert the stable ABI manifest to TOML (GH-92026)Petr Viktorin2022-04-291-126/+123
|
* bpo-36329: Remove 'make -C Doc serve' in favour of 'make -C Doc htmlview' ↵Hugo van Kemenade2022-04-292-37/+0
| | | | | | | | | | | | | | | | | | (GH-32354) Also updated `make -C htmlview` so it used a full path with `file://`, because the original didn't open the page (macOS). For example: ```sh cd Doc # Doesn't open anything: python3 -c "import webbrowser; webbrowser.open('build/html/index.html')" # Opens the docs page e.g. file:///Users/hugo/github/cpython/Doc/build/html/index.html : python3 -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/index.html'))" ``` https://bugs.python.org/issue36329
* gh-91324: List feature macros in the stable ABI manifest, improve tests ↵Petr Viktorin2022-04-281-23/+88
| | | | (GH-32415)
* gh-91719: Add pycore_opcode.h internal header file (#91906)Victor Stinner2022-04-251-28/+59
| | | | | | | | | | | Move the following API from Include/opcode.h (public C API) to a new Include/internal/pycore_opcode.h header file (internal C API): * EXTRA_CASES * _PyOpcode_Caches * _PyOpcode_Deopt * _PyOpcode_Jump * _PyOpcode_OpName * _PyOpcode_RelativeJump
* gh-84461: Add --enable-wasm-pthreads and more file systems (GH-91820)Christian Heimes2022-04-231-10/+15
|
* gh-84461: Add sys._emscripten_info, improve docs and build (gh-91781)Christian Heimes2022-04-231-11/+54
|
* gh-91575: Add a script for generating data for case-insensitive matching in ↵Serhiy Storchaka2022-04-221-0/+95
| | | | | re (GH-91660) Also test that all extra cases are in BMP.
* GH-91719: Make MSVC generate somewhat faster switch code (#91718)Guido van Rossum2022-04-211-0/+7
| | | | | | | | | | | Apparently a switch on an 8-bit quantity where all cases are present generates a more efficient jump (doing only one indexed memory load instead of two). So we make opcode and use_tracing uint8_t, and generate a macro full of extra `case NNN:` lines for all unused opcodes. See https://github.com/faster-cpython/ideas/issues/321#issuecomment-1103263673
* bpo-47169: Export PyOS_CheckStack on Windows (GH-32414)Petr Viktorin2022-04-211-0/+1
|
* GH-88116: Use a compact format to represent end line and column offsets. ↵Mark Shannon2022-04-213-20/+62
| | | | | | | | | | | | (GH-91666) * Stores all location info in linetable to conform to PEP 626. * Remove column table from code objects. * Remove end-line table from code objects. * Document new location table format
* bpo-46712: share more global strings in deepfreeze (gh-32152)Kumar Aditya2022-04-192-14/+9
| | | (for gh-90868)
* Add some information about where pynche has moved to (#91650)Barry Warsaw2022-04-181-0/+2
|
* Remove the ancient Pynche color editor (#91554)Barry Warsaw2022-04-1723-4079/+1
| | | Closes #91551
* gh-78607: Replace __ltrace__ with __lltrace__ (GH-91619)Dennis Sweeney2022-04-161-1/+0
|
* gh-91595: fix the comparison of character and integer by using ord() (#91596)Yu Liu2022-04-161-1/+1
| | | | | | | * fix the comparison of character and integer by using ord() * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-91404: Use computed gotos and reduce indirection in re (#91495)Brandt Bucher2022-04-151-2/+18
|
* gh-91428: include specialized opcodes in _PyOpcode_OpName (GH-91467)Dennis Sweeney2022-04-141-8/+21
|
* gh-91156: Fix `encoding="locale"` in UTF-8 mode (GH-70056)Inada Naoki2022-04-141-1/+0
|