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
Julien Palard
858cb79486
Doc: Make functions.html readable again. (GH-99476)
2022-11-19 11:25:45 +01:00
Nikita Sobolev
a3360facba
gh-99284: [ctypes] remove `_use_broken_old_ctypes_structure_semantics_` (GH-99285)
...
It was untested and undocumented. No code has been found in the wild that ever used it.
2022-11-18 22:25:32 -08:00
Stanley
27d8dc2c9d
gh-85073: Add some missing links to source (GH-99363)
...
Add some missing links to source from Python docs
2022-11-18 11:33:40 -08:00
Rafael Fontenelle
0e09d2cc59
Doc: Replace question mark with fullstop ( #99558 )
...
The sentence "Set the LC_CTYPE locale to the user preferred locale." should end with a period
instead of a question mark.
2022-11-18 11:24:23 -08:00
Alexander Ryabov
ed206e39f0
Doc: Fix broken link to emscripten networking website ( #99531 )
...
There was an extra `>` in the url.
2022-11-18 10:57:04 -08: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
Guido van Rossum
4f5e1cb00a
GH-98831: Refactor and fix cases generator ( #99526 )
...
Also complete cache effects for BINARY_SUBSCR family.
2022-11-17 17:06:07 -08:00
Brandt Bucher
b629fdd88a
GH-99298: Clean up attribute specializations (GH-99398)
2022-11-17 15:09:18 -08: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
Brandt Bucher
6f8b0e781c
Add a macro for "inlining" new frames (GH-99490)
2022-11-17 11:36:03 -08:00
Adorilson Bezerra
a0d940d6ac
Misc copyedits in docs on built-in types (GH-24466)
...
# DOC: Improvements in library/stdtypes
This PR does the following:
1. Replaces :meth: by :func: around repr function
2. Adds links to Unicode Standard site
3. Makes explicit "when" you can call the `iskeyword` function. The previous text could cause confusion to readers, especially those with English as a second language. The reader could understand that the `isidentifier` method calls the `iskeyword` function. Now, it is explicit that the dev can do it.
4. Replaces a URL with an inline link.
Automerge-Triggered-By: GH:AlexWaygood
2022-11-17 08:06:00 -08:00
Erlend E. Aasland
12b5a3c5f5
gh-93649: Split float/long tests from _testcapimodule.c (GH-99549)
...
Automerge-Triggered-By: GH:erlend-aasland
2022-11-17 00:56:56 -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
Hood Chatham
bc390dd935
gh-99443: `descr_set_trampoline_call` return type should be `int` not `PyObject*` ( #99444 )
2022-11-16 15:20:17 -08:00
Brandt Bucher
aa8b58cb33
Remove old comment (GH-99489)
2022-11-16 13:43:31 -08: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
Eric Snow
9db1e17c80
gh-81057: Move the global Dict-Related Versions to _PyRuntimeState (gh-99497)
...
We also move the global func version.
https://github.com/python/cpython/issues/81057
2022-11-16 10:37:29 -07:00
Victor Stinner
8211cf5d28
gh-99300: Replace Py_INCREF() with Py_NewRef() ( #99530 )
...
Replace Py_INCREF() and Py_XINCREF() using a cast with Py_NewRef()
and Py_XNewRef().
2022-11-16 18:34:24 +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
Eric Snow
01fa907aa8
gh-81057: Move contextvars-related Globals to _PyRuntimeState (gh-99400)
...
This is part of the effort to consolidate global variables, to make them easier to manage (and make it easier to later move some of them to PyInterpreterState).
https://github.com/python/cpython/issues/81057
2022-11-16 09:54:28 -07:00
Eric Snow
5f55067e23
gh-81057: Move More Globals in Core Code to _PyRuntimeState (gh-99516)
...
https://github.com/python/cpython/issues/81057
2022-11-16 09:37:14 -07:00
Nikita Sobolev
5cfb7d19f5
gh-99518: Fix escape symbol in `test_enum` ( #99519 )
2022-11-16 15:06:37 +01:00
Erlend E. Aasland
00437ad304
gh-93649: Split memory and docstring tests from _testcapimodule.c ( #99517 )
2022-11-16 14:09:10 +01:00
Christian Heimes
33f42c269f
gh-96269: static and shared ext need different deps ( #96316 )
2022-11-16 14:03:35 +01:00
Victor Stinner
3ed8803ef5
gh-99300: Replace Py_INCREF() with Py_NewRef() ( #99513 )
...
Replace Py_INCREF() and Py_XINCREF() using a cast with Py_NewRef()
and Py_XNewRef().
2022-11-16 10:39:47 +01:00
zhangbo
ea88d34de2
gh-98940: Fix Mac/Extras.install.py File filter bug ( #98943 )
...
Slightly simplify the script and fix a case issue in the name of ``.DS_Store`` files.
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-11-16 10:17:18 +01:00
Guido van Rossum
e37744f289
GH-98831: Implement basic cache effects ( #99313 )
2022-11-15 19:59:19 -08:00
Ben Kuhn
4636df9feb
Update Windows readme.txt to clarify Visual Studio required versions (GH-99522)
...
This is just a minor update to add a clarification to the requirements in the Windows build readme.
Automerge-Triggered-By: GH:zooba
2022-11-15 19:31:16 -08:00
Hood Chatham
86a49e0673
gh-99460 Emscripten trampolines on optimized METH_O and METH_NOARGS code paths ( #99461 )
2022-11-15 09:53:39 -08: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
Eric Snow
3c57971a2d
gh-81057: Move Globals in Core Code to _PyRuntimeState (gh-99496)
...
This is the first of several changes to consolidate non-object globals in core code.
https://github.com/python/cpython/issues/81057
2022-11-15 09:45:11 -07:00
Thomas Wouters
73943cbc4c
Merge the 3.12.0a2 release into main.
2022-11-15 13:38:09 +01:00
Thomas Wouters
bd58b89654
Post 3.12.0a2
2022-11-15 13:36:51 +01:00
Victor Stinner
f13f466474
gh-99300: Use Py_NewRef() in Python/Python-ast.c ( #99499 )
...
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and
Py_XNewRef() in Python/Python-ast.c.
Update Parser/asdl_c.py to regenerate code.
2022-11-15 10:29:56 +01:00
Erlend E. Aasland
ee821dcd39
gh-93649: Split pytime and datetime tests from _testcapimodule.c ( #99494 )
2022-11-15 08:17:52 +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
Kumar Aditya
dc3e4350a5
GH-99205: remove `_static` field from `PyThreadState` and `PyInterpreterState` (GH-99385)
2022-11-14 16:35:37 -08:00
Eric Snow
e874c2f198
gh-81057: Move the Remaining Import State Globals to _PyRuntimeState (gh-99488)
...
https://github.com/python/cpython/issues/81057
2022-11-14 15:56:16 -07: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
Erlend E. Aasland
3d9431983a
gh-93649: Split getargs tests from _testcapimodule.c ( #99346 )
2022-11-14 22:23:41 +01:00
Eric Snow
a088290f9d
gh-81057: Move Global Variables Holding Objects to _PyRuntimeState. (gh-99487)
...
This moves nearly all remaining object-holding globals in core code (other than static types).
https://github.com/python/cpython/issues/81057
2022-11-14 13:50:56 -07: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
Victor Stinner
f5e326e2b6
gh-99300: Use Py_NewRef() in PC/ directory ( #99479 )
...
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and
Py_XNewRef() in test C files of the PC/ directory.
2022-11-14 18:49:51 +01:00
Victor Stinner
1089bdc81a
gh-99300: Use Py_NewRef() in Doc/ directory ( #99480 )
...
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and
Py_XNewRef() in test C files of the Doc/ directory.
Replace PyModule_AddObject() with PyModule_AddObjectRef() to simplify
reference counting.
2022-11-14 18:49:14 +01:00