summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-90890: New methods to access mailbox.Maildir message info and flags (#103905)Stephen Gildea2023-11-115-1/+247
| | | | | | | | | | | | | | | New methods to access mailbox.Maildir message info and flags: get_info, set_info, get_flags, set_flags, add_flag, remove_flag. These methods speed up accessing a message's info and/or flags and are useful when it is not necessary to access the message's contents, as when iterating over a Maildir to find messages with specific flags. --------- * Add more str type checking * modernize to f-strings instead of % Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-110481: fix 'unused function' warning for `is_shared_refcnt_dead`. ↵Sam Gross2023-11-101-4/+6
| | | | | | | (gh-111974) Fix 'unused function' warning for `is_shared_refcnt_dead`. The `is_shared_refcnt_dead` function is only used if `Py_REF_DEBUG` is set.
* gh-107431: Make `multiprocessing.managers.{DictProxy,ListProxy}` generic ↵Nikita Sobolev2023-11-103-4/+12
| | | | | | | | (#107433) Make `multiprocessing.managers.{DictProxy,ListProxy}` generic for type annotation use. `ListProxy[str]` for example. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Remove dead code left after gh-110721 (#111905)Serhiy Storchaka2023-11-101-37/+0
|
* gh-80731: Avoid executing code in except block in cmd (GH-111740)Tian Gao2023-11-104-3/+43
|
* gh-111789: Simplify the sqlite code (GH-111829)Serhiy Storchaka2023-11-102-17/+6
| | | | Use new C API functions PyDict_GetItemRef() and PyMapping_GetOptionalItemString().
* Add private _PyUnicode_AsUTF8NoNUL() function (GH-111957)Serhiy Storchaka2023-11-104-13/+18
| | | | Like PyUnicode_AsUTF8(), but check for embedded null characters.
* gh-110722: Make `-m test -T -j` use sys.monitoring (GH-111710)Łukasz Langa2023-11-1013-34/+166
| | | | | | | | | | | Now all results from worker processes are aggregated and displayed together as a summary at the end of a regrtest run. The traditional trace is left in place for use with sequential in-process test runs but now raises a warning that those numbers are not precise. `-T -j` requires `--with-pydebug` as it relies on `-Xpresite=`.
* gh-111841: Fix os.putenv() and os.unsetenv() with embedded NUL on Windows ↵Serhiy Storchaka2023-11-104-9/+19
| | | | (GH-111842)
* Bump mypy to 1.7.0 (#111961)Alex Waygood2023-11-102-4/+2
|
* gh-103791: handle `BaseExceptionGroup` in `contextlib.suppress()` (#111910)Zac Hatfield-Dodds2023-11-104-4/+25
|
* gh-111912: Run test_posix on Windows (GH-111913)Serhiy Storchaka2023-11-101-3/+7
|
* gh-108303: Install `Lib/test/configdata` (#111899)Nikita Sobolev2023-11-101-0/+1
|
* gh-111356: io: Add missing documented objects to io.__all__ (#111370)Nicolas Tessore2023-11-103-11/+17
| | | Add DEFAULT_BUFFER_SIZE, text_encoding, and IncrementalNewlineDecoder.
* 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>