Victor Stinner
cb2ef8b2ac
gh-99578: Fix refleak in _imp.create_builtin() ( #99642 )
...
Fix a reference bug in _imp.create_builtin() after the creation of
the first sub-interpreter for modules "builtins" and "sys".
2022-11-21 12:14:54 +01:00
Lysandros Nikolaou
6d8da238cc
gh-90994: Improve error messages upon call arguments syntax errors (GH-96893)
2022-11-21 00:15:05 +01:00
Pablo Galindo Salgado
e13d1d9dda
gh-99581: Fix a buffer overflow in the tokenizer when copying lines that fill the available buffer ( #99605 )
2022-11-20 20:20:03 +00:00
Gregory P. Smith
abf5b6ff43
gh-61460: Add a comment describing the multiprocessing.connection protocol (gh-99623)
...
Describe the multiprocessing connection protocol.
It isn't a good protocol, but it is what it is. This way we can more
easily reason about making changes to it in a backwards compatible way.
2022-11-20 10:20:04 -08:00
Lysandros Nikolaou
9c4232ae89
gh-99211: Point to except/except* on syntax errors when mixing them (GH-99215)
...
Automerge-Triggered-By: GH:lysnikolaou
2022-11-20 09:11:02 -08:00
Filipe Laíns
b0e1f9c241
gh-99201: fix IndexError when initializing sysconfig config variables
2022-11-19 20:47:09 +00:00
Irit Katriel
c8c6113398
gh-99553: fix bug where an ExceptionGroup subclass can wrap a BaseException (GH-99572)
2022-11-18 15:44:43 +00:00
Steve Dower
a220c6d1ee
gh-99442: Fix handling in py.exe launcher when argv[0] does not include a file extension (GH-99542)
2022-11-18 14:14:56 +00:00
Brandt Bucher
8555dee5ae
GH-98686: Get rid of BINARY_OP_GENERIC and COMPARE_OP_GENERIC (GH-99399)
2022-11-17 11:36:57 -08:00
Steve Dower
5fdd49dc65
gh-99377: Revert audit events for thread state creation and free, because the GIL is not properly held at these times (GH-99543)
2022-11-17 00:24:16 +00:00
Steve Dower
7c57857340
gh-99370: Prefer LIBDIR from sysconfig when locating libpython for test (GH-99523)
2022-11-16 21:41:13 +00:00
Erlend E. Aasland
51d10354f4
gh-93649: Split watcher API tests from _testcapimodule.c ( #99532 )
2022-11-16 20:13:32 +01:00
Steve Dower
19c1462e8d
gh-99377: Add audit events for thread creation and clear (GH-99378)
2022-11-16 17:15:52 +00:00
Nikita Sobolev
5cfb7d19f5
gh-99518: Fix escape symbol in test_enum ( #99519 )
2022-11-16 15:06:37 +01:00
Ethan Furman
65dab1506e
gh-92647: [Enum] use final status to determine lookup or create (GH-99500)
...
* use final status to determine lookup or create
* 📜 🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2022-11-15 08:49:22 -08:00
Thomas Wouters
73943cbc4c
Merge the 3.12.0a2 release into main.
2022-11-15 13:38:09 +01:00
Kai Zhang
1df0752b4d
gh-99370: fix test_zippath_from_non_installed_posix (GH-99483)
...
When build with shared enabled, we need to set `LD_LIBRARY_PATH`
for the non-installed python environment in
test_zippath_from_non_installed_posix so that the python binary
and find and link the libpython.so.
2022-11-15 01:01:01 +00:00
Steve Dower
4e4b13e8f6
gh-87604: Avoid publishing list of active per-interpreter audit hooks via the gc module (GH-99373)
2022-11-14 21:39:18 +00:00
Kumar Aditya
619cadcda6
GH-98219: reduce sleep time in asyncio subprocess test ( #99464 )
2022-11-14 11:53:11 -08:00
Kumar Aditya
f63002755d
GH-99388: add loop_factory parameter to asyncio.run ( #99462 )
2022-11-14 10:18:51 -08:00
Kai Zhang
e3d4fed074
gh-99370: Calculate zip path from prefix when in a venv (GH-99371)
...
Before python3.11, when in a venv the zip path is calculated
from prefix on POSIX platforms. In python3.11 the behavior is
accidentally changed to calculating from default prefix. This
change will break venv created from a non-installed python
with a stdlib zip file. This commit restores the behavior back
to before python3.11.
2022-11-14 15:05:14 +00:00
Irit Katriel
a3ac9232f8
gh-87092: expose the compiler's codegen to python for unit tests (GH-99111)
2022-11-14 13:56:40 +00:00
Serhiy Storchaka
06d4e02c3b
gh-78453: Move Unicode C API tests from test_unicode to test_capi.test_unicode (GH-99431)
2022-11-14 15:32:02 +02:00
Thomas Wouters
3b9d793efc
Python 3.12.0a2
2022-11-14 12:18:11 +01:00
Ethan Furman
db115682bd
[Enum] update version TODO comment (GH-99458)
2022-11-13 20:52:30 -08:00
Christoph Anton Mitterer
367f552129
gh-96192: fix os.ismount() to use a path that is str or bytes ( #96194 )
...
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-11-13 20:12:32 -08:00
Nikita Sobolev
343eb0f94b
gh-99275: Fix SystemError in ctypes during __initsubclass__ ( #99283 )
2022-11-13 11:22:45 -08:00
Nikita Sobolev
d329f859b9
gh-99430: Remove duplicated tests for old-styled classes ( #99432 )
...
python 1 & 2 were a loong time ago.
2022-11-13 10:30:00 -08:00
Ben Kallus
439b9cfaf4
gh-99418: Make urllib.parse.urlparse enforce that a scheme must begin with an alphabetical ASCII character. ( #99421 )
...
Prevent urllib.parse.urlparse from accepting schemes that don't begin with an alphabetical ASCII character.
RFC 3986 defines a scheme like this: `scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )`
RFC 2234 defines an ALPHA like this: `ALPHA = %x41-5A / %x61-7A`
The WHATWG URL spec defines a scheme like this:
`"A URL-scheme string must be one ASCII alpha, followed by zero or more of ASCII alphanumeric, U+002B (+), U+002D (-), and U+002E (.)."`
2022-11-13 10:25:55 -08:00
Victor Stinner
6788303f5c
gh-91248: Optimize PyFrame_GetVar() ( #99252 )
...
PyFrame_GetVar() no longer creates a temporary dictionary to get a
variable.
2022-11-13 15:37:03 +01:00
Batuhan Taskaya
57be545959
gh-99103: Normalize specialized traceback anchors against the current line (GH-99145)
...
Automerge-Triggered-By: GH:isidentical
2022-11-12 15:37:25 -08:00
Erlend E. Aasland
c95f554a40
gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour ( #93823 )
...
Introduce the autocommit attribute to Connection and the autocommit
parameter to connect() for PEP 249-compliant transaction handling.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2022-11-12 23:44:41 +01:00
Xiao Chen
99972dc745
gh-99357: Close the event loop when it is no longer used in test_uncancel_structured_blocks ( #99414 )
2022-11-12 12:16:44 -08:00
Irit Katriel
fb844e1931
gh-98762: Fix locations of match sub-patterns (GH-98775)
2022-11-12 18:42:17 +00:00
Kumar Aditya
aa874326d8
GH-94597: add deprecation warnings for subclassing AbstractChildWatcher ( #99386 )
2022-11-11 23:17:53 -08:00
Hai Shi
e02cc6d42a
gh-80448: argparse: Fix IndexError on store_true action ( #15656 )
...
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-11-11 17:51:38 -08:00
NewUserHa
55c96e8053
gh-99305: Speed up secrets.token_hex() ~2x ( #99306 )
...
simple code modernization.
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
2022-11-11 14:45:24 -08:00
Irit Katriel
3dd6ee2c00
gh-99254: remove all unused consts from code objects (GH-99255)
2022-11-11 10:53:43 +00:00
Nikita Sobolev
faf7dfa656
gh-99325: Remove unused NameError handling ( #99326 )
2022-11-11 09:56:57 +00:00
Nikita Sobolev
67b4d2772c
gh-98086: Now `patch.dict` can decorate async functions ( #98095 )
2022-11-11 08:04:30 +00:00
Vincent Fazio
c41b13d39c
gh-99204: Calculate base_executable by alternate names in POSIX venvs (GH-99206)
...
Check to see if `base_executable` exists. If it does not, attempt
to use known alternative names of the python binary to find an
executable in the path specified by `home`.
If no alternative is found, previous behavior is preserved.
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
2022-11-10 16:26:42 +00:00
Carlo
f1680c3fbf
gh-99277: remove older version of get_write_buffer_limits ( #99280 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-11-10 08:07:17 -08:00
Mark Shannon
1e197e63e2
GH-96421: Insert shim frame on entry to interpreter (GH-96319)
...
* Adds EXIT_INTERPRETER instruction to exit PyEval_EvalDefault()
* Simplifies RETURN_VALUE, YIELD_VALUE and RETURN_GENERATOR instructions as they no longer need to check for entry frames.
2022-11-10 12:34:57 +00:00
Anton Ryzhov
dbf2faf579
gh-74044: inspect.signature for wrappers around decorated bound methods (GH-736)
2022-11-10 12:32:01 +00:00
Brandt Bucher
9d69284169
GH-99257: Check the owner's type when specializing slots (GH-99258)
2022-11-10 11:50:34 +00:00
Nikita Sobolev
26726c7649
gh-99320: remove tests for old-style class from test_complex ( #99321 )
2022-11-10 10:51:22 +00:00
Nikita Sobolev
d6f2767997
gh-99281: [csv] remove try/except, complex always exists ( #99282 )
2022-11-10 10:37:57 +00:00
Serhiy Storchaka
f883b7f8ee
bpo-34272: Reorganize C API tests. (GH-8551)
...
Move some C API tests into Lib/test/test_capi/.
2022-11-10 08:54:37 +02:00
Nikita Sobolev
87f5180cd7
gh-98832: Change wording in docstring of pathlib.Path.iterdir (GH-98833)
...
Found while working on https://github.com/python/cpython/issues/98829
Automerge-Triggered-By: GH:AlexWaygood
2022-11-09 14:05:07 -08:00
Brandt Bucher
c7f5708714
GH-98686: Get rid of "adaptive" and "quick" instructions (GH-99182)
2022-11-09 10:50:09 -08:00