summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-109408: Azure Pipelines: test 3.12 branch (#109453)Hugo van Kemenade2023-09-182-2/+2
|
* Docs: getopt is deprecated in Python 3.13 (#109438)Hugo van Kemenade2023-09-181-1/+2
|
* Fix a typo in c-analyzer (#109213)DongWoo Son2023-09-181-1/+1
| | | | Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> Co-authored-by: Dale Collison <92315623+dcollison@users.noreply.github.com>
* Fix extraneous backslashes in hashlib docs (#109468)Anthony Sottile2023-09-181-12/+12
|
* gh-109413: Improve mypy config for libregrtest (#109518)Alex Waygood2023-09-181-23/+9
| | | Improve the mypy config file for libregrtest
* gh-109408: Remove Ubuntu unit tests from Azure Pipelines (#109452)Hugo van Kemenade2023-09-173-54/+8
|
* gh-108511: Add C API functions which do not silently ignore errors (GH-109025)Serhiy Storchaka2023-09-1728-111/+330
| | | | | | | | | Add the following functions: * PyObject_HasAttrWithError() * PyObject_HasAttrStringWithError() * PyMapping_HasKeyWithError() * PyMapping_HasKeyStringWithError()
* gh-108303: Move all certificates to `Lib/test/certdata/` (#109489)Nikita Sobolev2023-09-1641-28/+31
|
* gh-109451: Fix wrong format specifier in logging documentation (GH-109465)AlberLC2023-09-161-1/+1
|
* gh-109414: Add some basic information about venvs in the introduction. ↵Vinay Sajip2023-09-161-0/+19
| | | | | (GH-109440) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-109474: Update two Unix packaging URLs (#109307)partev2023-09-161-2/+2
| | | | | update packaging URLs fix a broken URL for fedora RPM packaging guide and fix a URL redirect for Slackware packaging guide.
* GH-83417: Allow `venv` to add a `.gitignore` file to environments via a new ↵Brett Cannon2023-09-157-95/+233
| | | | | | | | `scm_ignore_file` parameter (GH-108125) This feature is off by default via code but on by default via the CLI. The `.gitignore` file contains `*` which causes the entire directory to be ignored. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-106213: Make Emscripten trampolines work with JSPI (GH-106219)Hood Chatham2023-09-1510-30/+183
| | | | | | | | | | | | | | | | | | | | | | | | There is a WIP proposal to enable webassembly stack switching which have been implemented in v8: https://github.com/WebAssembly/js-promise-integration It is not possible to switch stacks that contain JS frames so the Emscripten JS trampolines that allow calling functions with the wrong number of arguments don't work in this case. However, the js-promise-integration proposal requires the [type reflection for Wasm/JS API](https://github.com/WebAssembly/js-types) proposal, which allows us to actually count the number of arguments a function expects. For better compatibility with stack switching, this PR checks if type reflection is available, and if so we use a switch block to decide the appropriate signature. If type reflection is unavailable, we should use the current EMJS trampoline. We cache the function argument counts since when I didn't cache them performance was negatively affected. Co-authored-by: T. Wouters <thomas@python.org> Co-authored-by: Brett Cannon <brett@python.org>
* gh-109096: Deprecate `http.server.CGIHTTPRequestHandler` (#109387)Gregory P. Smith2023-09-155-7/+51
| | | | | Deprecate `http.server.CGIHTTPRequestHandler`. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* GH-109373: Store metadata required for pystats comparison in the JSON ↵Michael Droettboom2023-09-151-32/+65
| | | | (GH-109374)
* gh-109350: Fix outdated captured output in unittest.mock documentation (#109353)Egil Martinsson2023-09-152-10/+15
|
* gh-109413: Fix some trivial mypy nitpicks in libregrtest (#109454)Alex Waygood2023-09-154-13/+11
|
* gh-91960: Disable Cirrus CI for now (#109457)Victor Stinner2023-09-151-0/+3
| | | | | Python is out of free credit and so all jobs are reported as failure. Rename .cirrus.yml to .cirrus-DISABLED.yml to disable the job.
* gh-109287: Desugar inst(X) to op(X); macro(X) = X (#109294)Guido van Rossum2023-09-155-163/+110
| | | This makes the internal representation in the code generator simpler: there's a list of ops, and a list of macros, and there's no special-casing needed for ops that aren't macros. (There's now special-casing for ops that are also macros, but that's simpler.)
* Add missing `PyDoc_STR` calls (#109393)Nikita Sobolev2023-09-155-8/+9
| | | | | | | | | In files: * Modules/_ctypes/cfield.c * Modules/_struct.c * Objects/dictobject.c * Objects/typevarobject.c * Objects/unionobject.c
* Fix date.__repr__() docstring (#109422)Christopher Yeh2023-09-151-7/+3
|
* Docs: Superseded modules: list only module names (#109439)Hugo van Kemenade2023-09-151-0/+1
|
* gh-109395: Remove skipped macOS builds from Azure Pipelines (#109400)Nikita Sobolev2023-09-153-65/+0
|
* gh-108303: Move `test_future` into its own test_future_stmt subdir (#109368)Nikita Sobolev2023-09-1518-19/+37
|
* gh-109395: Remove skipped coverage job from Azure Pipelines (#109412)Hugo van Kemenade2023-09-153-101/+9
|
* gh-109425: regrtest decodes worker stdout with backslashreplace (#109428)Victor Stinner2023-09-143-16/+37
| | | | | libregrtest now decodes stdout of test worker processes with the "backslashreplace" error handler to log corrupted stdout, instead of failing with an error and not logging the stdout.
* gh-109375: Fix bug where pdb registers an alias without an associated ↵buermarc2023-09-144-2/+13
| | | | command (#109376)
* gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (#109423)Victor Stinner2023-09-142-3/+10
| | | | Use a longer key: FIPS mode requires at least of at least 112 bits. The previous key was only 32 bits.
* gh-109418: Fix hypothesis strategy for b2a_roundtrip test (#109419)Nikita Sobolev2023-09-141-1/+1
|
* gh-109413: libregrtest: Add and improve type annotations (#109405)Alex Waygood2023-09-1413-33/+83
|
* gh-101100: Fix sphinx warnings in `turtle.rst` (#109394)Nikita Sobolev2023-09-142-5/+4
|
* gh-109219: propagate free vars through type param scopes (#109377)Carl Meyer2023-09-143-3/+17
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-105658: fix excess trace events for except block ending with a ↵Irit Katriel2023-09-144-20/+41
| | | | conditional block (#109384)
* dump readable opcode names in flowgraph debug utility (#109392)Carl Meyer2023-09-141-3/+2
| | | Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-109402: Fix regrtest findtests() (#109403)Victor Stinner2023-09-141-4/+9
| | | | Check for the full module name in SPLITTESTDIRS, not the relative module name.
* gh-107298: Document PyMODINIT_FUNC macro (#109236)Victor Stinner2023-09-143-3/+27
| | | | | | | Document PyMODINIT_FUNC macro. Remove links to PyAPI_FUNC() and PyAPI_DATA() macros since they are not documented. These macros should only be used to define the Python C API. They should not be used outside Python code base.
* gh-107782: Use _testcapi to test non-representable signatures (GH-109325)Serhiy Storchaka2023-09-143-2/+82
| | | | | | | | | Builtin functions and methods that have non-representable signatures today will have representable signatures yesterday, and they will become unusable for testing this feature. So we need to add special functions and methods to the _testcapi module that always have non-representable signatures.
* Add missing PyDoc_STR to GenericAlias.__parameters__ (#108811)James Hilton-Balfe2023-09-141-1/+1
|
* Fix invocation of wasm_build.py for node (GH-109383)Sam Gross2023-09-131-1/+1
|
* GH-104584: Don't call executors from JUMP_BACKWARD (GH-109347)Brandt Bucher2023-09-134-40/+23
|
* GH-105848: Replace KW_NAMES + CALL with LOAD_CONST + CALL_KW (GH-109300)Brandt Bucher2023-09-1322-508/+719
|
* gh-109341: Fix crash on compiling invalid AST including TypeAlias (#109349)Jelle Zijlstra2023-09-133-0/+26
|
* gh-109351: Fix crash when compiling AST with invalid NamedExpr (#109352)Jelle Zijlstra2023-09-133-0/+34
|
* gh-109156: Add tests for de-instrumenting instructions with instrumented ↵Tian Gao2023-09-132-0/+18
| | | | lines (GH-109157)
* Fix variable name in dis documentation example (GH-109343)Oleksandr Kravets2023-09-131-1/+1
| | | BINARY_SUBSCR example erroneously uses two different names `key` and `index` to refer to the same variable. STORE_SUBSCR and DELETE_SUBSCR use only `key` in the same context. Changing `index` to `key` for consistency.
* gh-105189: fix importlib.resources.abc deprecation docs (#105232)Thomas Grainger2023-09-132-12/+154
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104736: Fix test_gdb tests on ppc64le with clang (#109360)Victor Stinner2023-09-132-0/+12
| | | | | | Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex: Fedora 38). Search patterns in gdb "bt" command output to detect when gdb fails to retrieve the traceback. For example, skip a test if "Backtrace stopped: frame did not save the PC" is found.
* gh-108346: Fix failed benchmark in decimal (#108353)Charlie Zhao2023-09-131-53/+74
| | | Fix benchmark in decimal to work again after the int str conversion limits.
* gh-109357: Fix test_monitoring.test_gh108976() (#109358)Victor Stinner2023-09-131-0/+1
| | | | | | The test now calls free_tool_id() so it can be run multiple times in the same process. For example, the following command no longer fails: python -m test test_monitoring -R 3:3
* gh-109276: libregrtest: fix work dir on WASI (#109356)Victor Stinner2023-09-132-11/+21
| | | | | | | | On WASI platform, get_temp_dir() should behave differently since the parent process is a WASI process and uses a different get_temp_dir() path. Fix also WorkerThread._runtest(): don't read JSON file if the worker process exit code is non-zero.