summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42197: Don't create `f_locals` dictionary unless we actually need it. ↵Mark Shannon2022-03-257-10/+46
| | | | | | | | | | | (GH-32055) * `PyFrame_FastToLocalsWithError` and `PyFrame_LocalsToFast` are no longer called during profile and tracing. (Contributed by Fabio Zadrozny) * Make accesses to a frame's `f_locals` safe from C code, not relying on calls to `PyFrame_FastToLocals` or `PyFrame_LocalsToFast`. * Document new `PyFrame_GetLocals` C-API function.
* Add an issue template config for the migration (GH-32101)Ezio Melotti2022-03-241-0/+5
|
* bpo-40280: Add wasm32-emscripten and wasm32-wasi SOABI (GH-32095)Christian Heimes2022-03-243-0/+34
| | | | | Shared extension on Emscripten now have suffix ``.cpython-311-wasm32-emscripten.so`` (JS loader) and ``.cpython-311-wasm32-emscripten.wasm`` (WebAssembly code).
* bpo-47062: Implement asyncio.Runner context manager (GH-31799)Andrew Svetlov2022-03-247-106/+381
| | | Co-authored-by: Zachary Ware <zach@python.org>
* bpo-46841: remove no-longer-used macro UPDATE_PREV_INSTR_OPARG (GH-32100)Irit Katriel2022-03-241-2/+0
|
* bpo-40465: Document random module changes in 3.11 What's new (#31818)Tomáš Hrnčiar2022-03-242-1/+6
|
* bpo-46480: rephrase typing.assert_type docs (GH-32069)Shantanu2022-03-242-2/+2
| | | | | | | | | The goal here is to reduce potential confusion between `assert_type(val, type)` and `assert isinstance(val, typ)`. The former is meant to ask a type checker to confirm a fact, the latter is meant to tell a type checker a fact. The behaviour of the latter more closely resembles what I'd expect from the prior phrasing of "assert [something] to the type checker".
* Fix GPG signing in Windows release build (GH-32089)Steve Dower2022-03-232-41/+26
|
* bpo-47104: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase ↵Andrew Svetlov2022-03-232-47/+20
| | | | (GH-32086)
* bpo-47101: list only activated algorithms in hashlib.algorithms_available ↵Christian Heimes2022-03-233-1/+20
| | | | (GH-32076)
* bpo-31582: Created a new documentation section describing sys.path ↵Russel Webber2022-03-2310-29/+128
| | | | initialization (GH-31082)
* bpo-47086: Remove dead link to old CHM documentation (GH-32075)Steve Dower2022-03-231-4/+0
|
* bpo-46712: Do not Regen Deep-Frozen Modules before Generating Global Objects ↵Eric Snow2022-03-232-12/+36
| | | | | | | | | (gh-32061) We have to run "make regen-deepfreeze" before running Tools/scripts/generate-global-objects.py; otherwise we will miss any changes to global objects in deep-frozen modules (which aren't committed in the repo). However, building $(PYTHON_FOR_FREEZE) fails if one of its source files had a global object (e.g. via _Py_ID(...)) added or removed, without generate-global-objects.py running first. So "make regen-global-objects" would sometimes fail. We solve this by running generate-global-objects.py before *and* after "make regen-deepfreeze". To speed things up and cut down on noise, we also avoid updating the global objects files if there are no changes to them. https://bugs.python.org/issue46712
* bpo-46541: Add a Comment About When to Use _Py_DECLARE_STR(). (gh-32063)Eric Snow2022-03-231-0/+10
| | | | | In a gh-32003 comment, I realized it wasn't very clear how _Py_DECLARE_STR() should be used. This changes adds a comment to clarify. https://bugs.python.org/issue46541
* bpo-46829: Deprecate passing a message into Future.cancel() and ↵Andrew Svetlov2022-03-239-17/+106
| | | | | Task.cancel() (GH-31840) After a long deliberation we ended up feeling that the message argument for Future.cancel(), added in 3.9, was a bad idea, so we're deprecating it in 3.11 and plan to remove it in 3.13.
* Correctly document class instead of function (GH-32016)slateny2022-03-231-4/+4
|
* bpo-46836: Add Doc/c-api/frame.rst (GH-32051)Victor Stinner2022-03-235-47/+51
| | | Reorganize the documentation of the PyFrameObject C API.
* [doc] configparser: avoid inline comments. (GH-31247)Julien Palard2022-03-231-2/+4
| | | | | | People are testing those blocs with the default inline_comment_prefixes of None, leading to a: configparser.InterpolationSyntaxError: '$' must be followed by '$' or '{', found: '$ sign ($ is the only character that needs to be escaped)'
* bpo-42238: [doc] Some lines moved in rst, but had hardcoded lineno in ↵Julien Palard2022-03-231-6/+6
| | | | susp-ignored.csv. (GH-32070)
* bpo-47012: speed up iteration of bytes and bytearray (GH-31867)Kumar Aditya2022-03-234-9/+13
|
* bpo-46864: Suppress deprecation warnings for ob_shash. (GH-32042)Inada Naoki2022-03-231-1/+4
|
* Fix typo in Path.iterdir docs (GH-31822)Matt Williams2022-03-231-1/+1
|
* bpo-43166: Disable ceval.c optimizations for Windows debug builds (GH-32023)neonene2022-03-233-16/+2
| | | Also increases the stack allocation when run with `python_d.exe` to account for the extra stack checks that are added.
* bpo-2604: Make doctest.DocTestCase reset globs in teardown (GH-31932)Daniël van Noord2022-03-223-0/+20
| | | | | Co-authored-by: Piet Delport Co-authored-by: Hugo Lopes Tavares Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-32033: Finalize WASI configure options (GH-32053)Christian Heimes2022-03-224-4/+64
|
* bpo-46315: Use fopencookie() to avoid dup() in ↵Christian Heimes2022-03-221-6/+34
| | | | | _PyTokenizer_FindEncodingFilename (GH-32033) WASI does not have dup() and Emscripten's emulation is slow.
* bpo-45150: Fix testing under FIPS mode (GH-32046)Christian Heimes2022-03-221-0/+5
|
* bpo-42885: Optimize search for regular expressions starting with "\A" or "^" ↵Serhiy Storchaka2022-03-223-0/+25
| | | | | | | (GH-32021) Affected functions are re.search(), re.split(), re.findall(), re.finditer() and re.sub().
* bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910)Andrew Svetlov2022-03-223-6/+36
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* bpo-47076: Make asyncio.Queue stable on slow test boxes (GH-32040)Andrew Svetlov2022-03-221-21/+11
|
* bpo-47045: Remove `f_state` field (GH-31963)Mark Shannon2022-03-229-220/+260
| | | | | * Remove the f_state field from _PyInterpreterFrame * Make ownership of the frame explicit, replacing the is_generator field with an owner field.
* bpo-47084: Clear Unicode cached representations on finalization (GH-32032)Jeremy Kloth2022-03-225-18/+78
|
* bpo-46838: Syntax error improvements for function definitions (GH-31590)Pablo Galindo Salgado2022-03-224-876/+3401
|
* bpo-40280: Skip socket, fork, subprocess tests on Emscripten (GH-31986)Christian Heimes2022-03-2252-23/+238
| | | | | | | | | | | - Add requires_fork and requires_subprocess to more tests - Skip extension import tests if dlopen is not available - Don't assume that _testcapi is a shared extension - Skip a lot of socket tests that don't work on Emscripten - Skip mmap tests, mmap emulation is incomplete - venv does not work yet - Cannot get libc from executable The "entire" test suite is now passing on Emscripten with EMSDK from git head (91 suites are skipped).
* bpo-28080: Add support for the fallback encoding in ZIP files (GH-32007)Serhiy Storchaka2022-03-225-11/+211
| | | | | | * Add the metadata_encoding parameter in the zipfile.ZipFile constructor. * Add the --metadata-encoding option in the zipfile CLI. Co-authored-by: Stephen J. Turnbull <stephen@xemacs.org>
* bpo-47081: Replace "qualifiers" with "quantifiers" in the re module ↵Serhiy Storchaka2022-03-225-21/+21
| | | | | documentation (GH-32028) It is a more commonly used term.
* bpo-45150: Add hashlib.file_digest() for efficient file hashing (GH-31930)Christian Heimes2022-03-224-1/+145
|
* bpo-47086: Remove .chm from Windows installer and add HTML docs (GH-32038)Steve Dower2022-03-2219-105/+79
|
* bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578)Jeremy Kloth2022-03-222-185/+117
| | | | | Replace the child process `typeperf.exe` with a daemon thread that reads the performance counters directly. This prevents the issues that arise from inherited handles in grandchild processes (see issue37531 for discussion). We only use the load tracker when running tests in multiprocess mode. This prevents inadvertent interactions with tests expecting a single threaded environment. Displaying load is really only helpful for buildbots running in multiprocess mode anyway.
* bpo-47061: document module deprecations due to PEP 594 (GH-31984)Brett Cannon2022-03-2127-22/+97
| | | Also removed asynchat, asyncore, and smtpd from their respective toctree entries so they are only in the superceded subtree.
* Fix typo in pycore_bytesobject.h (GH-31914)jonasdlindner2022-03-211-1/+1
|
* bpo-12029: [doc] clarify that except does not match virtual subclasses of ↵Irit Katriel2022-03-212-5/+7
| | | | the specified exception type (GH-32027)
* bpo-47067: Optimize calling GenericAlias objects (GH-31996)penguin_wwy2022-03-214-7/+35
| | | Use vectorcall, and replace `PyObject_SetAttrString` with `PyObject_SetAttr` and a global string.
* bpo-47080: Use atomic groups to simplify fnmatch (GH-32029)Tim Peters2022-03-212-29/+7
| | | Use re's new atomic groups to greatly simplify the construction of worst-case linear-time patterns.
* bpo-433030: Add support of atomic grouping in regular expressions (GH-31982)Serhiy Storchaka2022-03-2111-92/+593
| | | | | | | | * Atomic grouping: (?>...). * Possessive quantifiers: x++, x*+, x?+, x{m,n}+. Equivalent to (?>x+), (?>x*), (?>x?), (?>x{m,n}). Co-authored-by: Jeffrey C. Jacobs <timehorse@users.sourceforge.net>
* bpo-46841: Quicken code in-place (GH-31888)Brandt Bucher2022-03-2118-687/+831
| | | | | | | | | | | | | | | | | | | * Moves the bytecode to the end of the corresponding PyCodeObject, and quickens it in-place. * Removes the almost-always-unused co_varnames, co_freevars, and co_cellvars member caches * _PyOpcode_Deopt is a new mapping from all opcodes to their un-quickened forms. * _PyOpcode_InlineCacheEntries is renamed to _PyOpcode_Caches * _Py_IncrementCountAndMaybeQuicken is renamed to _PyCode_Warmup * _Py_Quicken is renamed to _PyCode_Quicken * _co_quickened is renamed to _co_code_adaptive (and is now a read-only memoryview). * Do not emit unused nonzero opargs anymore in the compiler.
* bpo-23691: Protect the re.finditer() iterator from re-entering (GH-32012)Serhiy Storchaka2022-03-213-4/+42
|
* bpo-46850: Remove _PyEval_CallTracing() function (GH-32019)Victor Stinner2022-03-214-6/+13
| | | | Remove the private undocumented function _PyEval_CallTracing() from the C API. Call the public sys.call_tracing() function instead.
* bpo-46850: Remove _PyEval_GetCoroutineOriginTrackingDepth() (GH-32018)Victor Stinner2022-03-215-17/+25
| | | | | | | | | | | | | | | Remove the private undocumented function _PyEval_GetCoroutineOriginTrackingDepth() from the C API. Call the public sys.get_coroutine_origin_tracking_depth() function instead. Change the internal function _PyEval_SetCoroutineOriginTrackingDepth(): * Remove the 'tstate' parameter; * Add return value and raises an exception if depth is negative; * No longer export the function: call the public sys.set_coroutine_origin_tracking_depth() function instead. Uniformize also function declarations in pycore_ceval.h.
* bpo-46850: Remove _PyEval_SetAsyncGenFinalizer() (GH-32017)Victor Stinner2022-03-214-5/+18
| | | | | | | | | | | Remove the following private undocumented functions from the C API: * _PyEval_GetAsyncGenFirstiter() * _PyEval_GetAsyncGenFinalizer() * _PyEval_SetAsyncGenFirstiter() * _PyEval_SetAsyncGenFinalizer() Call the public sys.get_asyncgen_hooks() and sys.set_asyncgen_hooks() functions instead.