summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-111569: Fix critical sections test on WebAssembly (GH-111897)Sam Gross2023-11-092-0/+12
| | | | | | | | This adds a macro `Py_CAN_START_THREADS` that corresponds to the Python function `test.support.threading_helper.can_start_thread()`. WASI and some Emscripten builds do not have a working pthread implementation. This macro is used to guard the critical sections C API tests that require a working threads implementation.
* gh-111881: Import _sha2 lazily in random (#111889)Victor Stinner2023-11-091-11/+15
| | | | | | | The random module now imports the _sha2 module lazily in the Random.seed() method for str, bytes and bytearray seeds. It also imports lazily the warnings module in the _randbelow() method for classes without getrandbits(). Lazy import makes Python startup faster and reduces the number of imported modules at startup.
* gh-81925: Implement native thread ids for kFreeBSD (#111761)Samuel Thibault2023-11-096-5/+18
| | | | | --------- Co-authored-by: Antoine Pitrou <antoine@python.org>
* Improve error message for "float modulo by zero" (#111685)Pavel Ovchinnikov2023-11-091-1/+1
|
* gh-110875: Handle '.' properties in logging formatter configuration c… ↵Vinay Sajip2023-11-092-5/+41
| | | | (GH-110943)
* gh-111895: Convert definition list to bullet list for readability on mobile ↵Hugo van Kemenade2023-11-091-6/+6
| | | | | (#111898) Convert definition list to bullet list for readability on mobile
* gh-111786: Optimize for space for _PyEval_EvalFrameDefault on MSVC for PGO ↵Michael Droettboom2023-11-092-0/+11
| | | | | | | (#111794) In PGO mode, this function caused a compiler error in MSVC. It turns out that optimizing for space only save the day, and is even faster. However, without PGO, this is neither necessary nor slower.
* gh-111881: Import doctest lazily in libregrtest (#111884)Victor Stinner2023-11-091-5/+8
| | | | | In most cases, doctest is not needed. So don't always import it at startup. The change reduces the number of modules already imported when a test is run.
* Add detail to comment on range of random.random() (gh-111868)zipperer2023-11-091-1/+1
| | | | | --------- Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* gh-108303: Move more files to `Lib/test/test_module` (#111880)Nikita Sobolev2023-11-093-5/+5
|
* gh-111881: Use lazy import in test.support (#111885)Victor Stinner2023-11-092-8/+13
| | | | * Import lazily getpass in test.support * Only import ctypes on Windows in test.support.os_helper.
* gh-108303: Move config parser data to `Lib/test/configparserdata/` (gh-111879)Nikita Sobolev2023-11-095-12/+12
|
* GH-111843: Tier 2 exponential backoff (GH-111850)Mark Shannon2023-11-095-14/+47
|
* GH-109369: Exit tier 2 if executor is invalid (GH-111657)Mark Shannon2023-11-0911-230/+348
|
* gh-111835: Add seekable method to mmap.mmap (gh-111852)Donghee Na2023-11-095-12/+40
|
* gh-111354: remove comparisons with enum values, variable reuse, unused ↵Irit Katriel2023-11-092-22/+15
| | | | imports in genobject.c (#111708)
* GH-111804: Drop posix.fallocate() under WASI (GH-111869)Brett Cannon2023-11-093-5/+10
| | | | | | | Drop posix.fallocate() under WASI. The underlying POSIX function, posix_fallocate(), was found to vary too much between implementations to remain in WASI. As such, while it was available in WASI preview1, it's been dropped in preview2.
* gh-111569: Implement Python critical section API (gh-111571)Sam Gross2023-11-0819-7/+630
| | | | | | | | Critical sections are helpers to replace the global interpreter lock with finer grained locking. They provide similar guarantees to the GIL and avoid the deadlock risk that plain locking involves. Critical sections are implicitly ended whenever the GIL would be released. They are resumed when the GIL would be acquired. Nested critical sections behave as if the sections were interleaved.
* gh-110543: Fix CodeType.replace in presence of comprehensions (#110586)Jelle Zijlstra2023-11-083-2/+75
|
* Remove redundant check in dbm.open() (GH-111844)Serhiy Storchaka2023-11-081-5/+0
| | | PyUnicode_FSConverter() already checks for embedded null characters.
* gh-111495: Add tests for PyList C API (#111562)Kalyan2023-11-082-1/+456
| | | | | Signed-off-by: kalyanr <kalyan.ben10@live.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-68166: Tkinter: Add tests and examples for element_create() (GH-111453)Serhiy Storchaka2023-11-083-3/+203
| | | | | * Remove mention of "vsapi" element type from the documentation. * Add tests for element_create() and other ttk.Style methods. * Add examples for element_create() in the documentation.
* gh-111246: Remove listening Unix socket on close (#111483)Pierre Ossman (ThinLinc team)2023-11-085-2/+126
| | | | | Try to clean up the socket file we create so we don't add unused noise to the file system.
* gh-111768: Add `wsgiref.util.is_hop_by_hop` to `__all__` (#111770)Stefan2023-11-082-1/+2
|
* socket: Update generated AC code (#111853)Jelle Zijlstra2023-11-081-2/+7
|
* Glossary: Add "static type checker" (#111837)Jelle Zijlstra2023-11-084-7/+14
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-108303: Move more `typing` related files to `Lib/test/typinganndata` ↵Nikita Sobolev2023-11-084-3/+2
| | | | | (#111825) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-111662: Update socket module to use AC for optimizing performance (gh-111661)Bogdan Romanyuk2023-11-082-69/+223
|
* GH-111848: Tidy up tier 2 handling of FOR_ITER specialization by using ↵Mark Shannon2023-11-088-136/+59
| | | | DEOPT_IF instead of jumps. (GH-111849)
* gh-111089: Revert PyUnicode_AsUTF8() changes (#111833)Victor Stinner2023-11-0750-244/+952
| | | | | | | | | | | | | | | | | | | | | * Revert "gh-111089: Use PyUnicode_AsUTF8() in Argument Clinic (#111585)" This reverts commit d9b606b3d04fc56fb0bcc479d7d6c14562edb5e2. * Revert "gh-111089: Use PyUnicode_AsUTF8() in getargs.c (#111620)" This reverts commit cde1071b2a72e8261ca66053ef61431b7f3a81fd. * Revert "gh-111089: PyUnicode_AsUTF8() now raises on embedded NUL (#111091)" This reverts commit d731579bfb9a497cfb0076cb6b221058a20088fe. * Revert "gh-111089: Add PyUnicode_AsUTF8() to the limited C API (#111121)" This reverts commit d8f32be5b6a736dc2fc9dca3f1bf176c82fc9b44. * Revert "gh-111089: Use PyUnicode_AsUTF8() in sqlite3 (#111122)" This reverts commit 37e4e20eaa8f27ada926d49e5971fecf0477ad26.
* gh-61199: Remove superfluous global statements from ↵Romuald Brunet2023-11-071-2/+0
| | | | | `base64._b32{en,de}code()*` (GH-111785) Minor cleanup after commit 4ce6faa6c9591de6079347eccc9e61ae4e8d9e31
* gh-111806: Fix `test_recursion` in `test_richcmp` on WASI builds (GH-111830)Nikita Sobolev2023-11-071-0/+1
|
* gh-111808: Fix recursion error on WASM in `test_typing` (GH-111819)Nikita Sobolev2023-11-071-5/+6
|
* gh-81137: deprecate assignment of code object to a function of a mismatched ↵Irit Katriel2023-11-074-0/+44
| | | | type (#111823)
* gh-111623: Add Support for Cross-interpreter tuples (gh-111628)Anthony Shaw2023-11-076-2/+134
|
* gh-85098: Implement functional CLI of symtable (#109112)Serhiy Storchaka2023-11-074-8/+123
| | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-106672: C API: Report indiscriminately ignored errors (GH-106674)Serhiy Storchaka2023-11-079-45/+195
| | | | | Functions which indiscriminately ignore all errors now report them as unraisable errors.
* gh-111765: Move old PyFloat_* tests to Lib/test/test_capi/test_float.py ↵Sergey B Kirpichev2023-11-072-65/+65
| | | | (GH-111766)
* GH-111485: Allow arbitrary annotations on instructions and micro-ops. ↵Mark Shannon2023-11-0710-63/+114
| | | | (GH-111697)
* gh-79932: raise exception if frame.clear() is called on a suspended frame ↵Irit Katriel2023-11-075-7/+27
| | | | (#111792)
* gh-110395: test: assert after the child dies. (#111816)Gregory P. Smith2023-11-071-1/+1
| | | based on review from Victor Stinner. I already made this edit in the 3.12 backport PR.
* gh-111729: update generic syntax for `typing.Concatenate` sample code in ↵方糖2023-11-071-5/+2
| | | | | `Doc/library/typing.rst` (#111734) use new generic syntax
* GH-111485: Make BEFORE_WITH a uop (GH-111812)Brandt Bucher2023-11-075-7/+56
|
* gh-76785: Move _Py_excinfo Functions Out of the Internal C-API (gh-111715)Eric Snow2023-11-064-199/+134
| | | | | I added _Py_excinfo to the internal API (and added its functions in Python/errors.c) in gh-111530 (9322ce9). Since then I've had a nagging sense that I should have added the type and functions in its own PR. While I do plan on using _Py_excinfo outside crossinterp.c very soon (see gh-111572/gh-111573), I'd still feel more comfortable if the _Py_excinfo stuff went in as its own PR. Hence, here we are. (FWIW, I may combine that with gh-111572, which I may, in turn, combine with gh-111573. We'll see.)
* gh-111698: Restrict Py_mod_multiple_interpreters to 3.12+ Under ↵Eric Snow2023-11-061-1/+3
| | | | | | | Py_LIMITED_API (gh-111707) This should have been done in gh-104148. (A similar fix has already be done for that slot's value macros, and backported to 3.12. See gh-110968.)
* simplify code to pop exception in frame_setlineno (#111702)Irit Katriel2023-11-061-5/+2
|
* gh-96954: Use skip_if_missing in test_makeunicodedata (GH-111764)Dennis Sweeney2023-11-061-1/+2
| | | skip_if_missing in test_makeunicodedata
* GH-111772: Specialize slot loads and stores for `_Py_T_OBJECT` (GH-111773)Mark Shannon2023-11-062-3/+4
|
* GH-111646: Simplify optimizer, by compacting uops when making executor. ↵Mark Shannon2023-11-062-117/+119
| | | | (GH-111647)
* gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs read out ↵Masayuki Moriyama2023-11-063-3/+53
| | | | of bounds (gh-111695)