Vinay Sajip
a5f29c9faf
gh-110875: Handle '.' properties in logging formatter configuration c… (GH-110943)
2023-11-09 18:55:22 +00:00
Hugo van Kemenade
7d21e3d5ee
gh-111895: Convert definition list to bullet list for readability on mobile ( #111898 )
...
Convert definition list to bullet list for readability on mobile
2023-11-09 20:50:27 +02:00
Michael Droettboom
bc12f79112
gh-111786: Optimize for space for _PyEval_EvalFrameDefault on MSVC for PGO ( #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.
2023-11-09 18:41:40 +00:00
Victor Stinner
6f09f69b7f
gh-111881: Import doctest lazily in libregrtest ( #111884 )
...
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.
2023-11-09 15:00:10 +00:00
zipperer
2f2a0a3a6c
Add detail to comment on range of random.random() (gh-111868)
...
---------
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2023-11-09 08:58:04 -06:00
Nikita Sobolev
0c42f7304a
gh-108303: Move more files to `Lib/test/test_module` ( #111880 )
2023-11-09 15:42:34 +01:00
Victor Stinner
0372e3b02a
gh-111881: Use lazy import in test.support ( #111885 )
...
* Import lazily getpass in test.support
* Only import ctypes on Windows in test.support.os_helper.
2023-11-09 15:38:13 +01:00
Nikita Sobolev
cc18b886a5
gh-108303: Move config parser data to `Lib/test/configparserdata/` (gh-111879)
2023-11-09 14:52:32 +01:00
Mark Shannon
34a03e951b
GH-111843: Tier 2 exponential backoff (GH-111850)
2023-11-09 13:49:51 +00:00
Mark Shannon
25c4956488
GH-109369: Exit tier 2 if executor is invalid (GH-111657)
2023-11-09 11:19:51 +00:00
Donghee Na
6046aec377
gh-111835: Add seekable method to mmap.mmap (gh-111852)
2023-11-09 20:13:35 +09:00
Irit Katriel
30ec968bef
gh-111354: remove comparisons with enum values, variable reuse, unused imports in genobject.c ( #111708 )
2023-11-09 10:27:20 +00:00
Brett Cannon
97c4c06d0d
GH-111804: Drop posix.fallocate() under WASI (GH-111869)
...
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.
2023-11-08 17:20:35 -08:00
Sam Gross
31c90d5838
gh-111569: Implement Python critical section API (gh-111571)
...
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.
2023-11-08 15:39:29 -07:00
Jelle Zijlstra
0b718e6407
gh-110543: Fix CodeType.replace in presence of comprehensions ( #110586 )
2023-11-08 13:11:59 -07:00
Serhiy Storchaka
804575b5c0
Remove redundant check in dbm.open() (GH-111844)
...
PyUnicode_FSConverter() already checks for embedded null characters.
2023-11-08 19:42:41 +02:00
Kalyan
a3903c8ec8
gh-111495: Add tests for PyList C API ( #111562 )
...
Signed-off-by: kalyanr <kalyan.ben10@live.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2023-11-08 18:10:53 +01:00
Serhiy Storchaka
005d1e8fc8
gh-68166: Tkinter: Add tests and examples for element_create() (GH-111453)
...
* 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.
2023-11-08 18:25:58 +02:00
Pierre Ossman (ThinLinc team)
74b868f636
gh-111246: Remove listening Unix socket on close ( #111483 )
...
Try to clean up the socket file we create so we don't add unused noise to the file system.
2023-11-08 08:10:10 -08:00
Stefan
f88caab467
gh-111768: Add `wsgiref.util.is_hop_by_hop` to `__all__` ( #111770 )
2023-11-08 15:29:47 +00:00
Jelle Zijlstra
fe3fd2c333
socket: Update generated AC code ( #111853 )
2023-11-08 15:03:29 +00:00
Jelle Zijlstra
8ab7ad6308
Glossary: Add "static type checker" ( #111837 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-08 14:38:36 +00:00
Nikita Sobolev
82e36dba45
gh-108303: Move more `typing` related files to `Lib/test/typinganndata` ( #111825 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-08 14:19:34 +00:00
Bogdan Romanyuk
8fbe5314cd
gh-111662: Update socket module to use AC for optimizing performance (gh-111661)
2023-11-08 23:03:52 +09:00
Mark Shannon
06efb60264
GH-111848: Tidy up tier 2 handling of FOR_ITER specialization by using DEOPT_IF instead of jumps. (GH-111849)
2023-11-08 13:31:55 +00:00
Victor Stinner
11e83488c5
gh-111089: Revert PyUnicode_AsUTF8() changes ( #111833 )
...
* Revert "gh-111089: Use PyUnicode_AsUTF8() in Argument Clinic (#111585 )"
This reverts commit d9b606b3d0
.
* Revert "gh-111089: Use PyUnicode_AsUTF8() in getargs.c (#111620 )"
This reverts commit cde1071b2a
.
* Revert "gh-111089: PyUnicode_AsUTF8() now raises on embedded NUL (#111091 )"
This reverts commit d731579bfb
.
* Revert "gh-111089: Add PyUnicode_AsUTF8() to the limited C API (#111121 )"
This reverts commit d8f32be5b6
.
* Revert "gh-111089: Use PyUnicode_AsUTF8() in sqlite3 (#111122 )"
This reverts commit 37e4e20eaa
.
2023-11-07 22:36:13 +00:00
Romuald Brunet
ea970fb116
gh-61199: Remove superfluous global statements from `base64._b32{en,de}code()*` (GH-111785)
...
Minor cleanup after commit 4ce6faa6c9
2023-11-07 16:32:44 -06:00
Nikita Sobolev
f115a55f0e
gh-111806: Fix `test_recursion` in `test_richcmp` on WASI builds (GH-111830)
2023-11-07 13:37:29 -08:00
Nikita Sobolev
0e83d941be
gh-111808: Fix recursion error on WASM in `test_typing` (GH-111819)
2023-11-07 11:23:57 -08:00
Irit Katriel
2f9cb7e095
gh-81137: deprecate assignment of code object to a function of a mismatched type ( #111823 )
2023-11-07 18:54:36 +00:00
Anthony Shaw
178861b193
gh-111623: Add Support for Cross-interpreter tuples (gh-111628)
2023-11-07 10:58:29 -07:00
Serhiy Storchaka
70afb8d732
gh-85098: Implement functional CLI of symtable ( #109112 )
...
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2023-11-07 16:32:16 +00:00
Serhiy Storchaka
f55cb44359
gh-106672: C API: Report indiscriminately ignored errors (GH-106674)
...
Functions which indiscriminately ignore all errors now report them as
unraisable errors.
2023-11-07 15:58:04 +02:00
Sergey B Kirpichev
a077b2fbb8
gh-111765: Move old PyFloat_* tests to Lib/test/test_capi/test_float.py (GH-111766)
2023-11-07 13:40:58 +02:00
Mark Shannon
931f4438c9
GH-111485: Allow arbitrary annotations on instructions and micro-ops. (GH-111697)
2023-11-07 09:42:39 +00:00
Irit Katriel
13405ecffd
gh-79932: raise exception if frame.clear() is called on a suspended frame ( #111792 )
2023-11-07 08:49:30 +00:00
Gregory P. Smith
d2ddfccfb4
gh-110395: test: assert after the child dies. ( #111816 )
...
based on review from Victor Stinner. I already made this edit in the 3.12 backport PR.
2023-11-07 06:05:56 +00:00
方糖
c3e19c3a62
gh-111729: update generic syntax for `typing.Concatenate` sample code in `Doc/library/typing.rst` ( #111734 )
...
use new generic syntax
2023-11-06 16:53:17 -08:00
Brandt Bucher
3e99c9cbf6
GH-111485: Make BEFORE_WITH a uop (GH-111812)
2023-11-06 16:42:49 -08:00
Eric Snow
d4426e8d00
gh-76785: Move _Py_excinfo Functions Out of the Internal C-API (gh-111715)
...
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.)
2023-11-06 11:09:22 -07:00
Eric Snow
836e0a75d5
gh-111698: Restrict Py_mod_multiple_interpreters to 3.12+ Under 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.)
2023-11-06 09:34:57 -07:00
Irit Katriel
c5063fd62a
simplify code to pop exception in frame_setlineno ( #111702 )
2023-11-06 15:45:33 +00:00
Dennis Sweeney
5e5762a2b8
gh-96954: Use skip_if_missing in test_makeunicodedata (GH-111764)
...
skip_if_missing in test_makeunicodedata
2023-11-06 15:32:35 +01:00
Mark Shannon
a7b0f63cdb
GH-111772: Specialize slot loads and stores for `_Py_T_OBJECT` (GH-111773)
2023-11-06 13:55:04 +00:00
Mark Shannon
d78c872e0d
GH-111646: Simplify optimizer, by compacting uops when making executor. (GH-111647)
2023-11-06 11:28:52 +00:00
Masayuki Moriyama
c8faa3568a
gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs read out of bounds (gh-111695)
2023-11-06 19:59:22 +09:00
Charles Machalow
ba8aa1fd37
gh-109466: Add ipv6_mapped property to IPv4Address ( #109467 )
...
Adds the `IPv4Address.ipv6_mapped` property.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-05 16:50:31 +00:00
Sergey B Kirpichev
24b5cbd3dc
gh-111495: Add tests for PyComplex C API (GH-111591)
2023-11-05 07:42:42 +00:00
Sergey B Kirpichev
b452202a11
gh-111495: Add tests for PyFloat C API (GH-111624)
2023-11-05 09:20:12 +02:00
partev
72e27a67b9
gh-111747: DOC: fix moved link to Documentation Translations ( #111748 )
...
Update old link in bugs.rst to the table of doc translators and translation repositories at Github.
2023-11-05 00:23:01 -04:00