summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-105237: Allow calling `issubclass(X, typing.Protocol)` again (#105239)Alex Waygood2023-06-053-0/+65
|
* gh-105164: Detect annotations inside match blocks (#105177)Jelle Zijlstra2023-06-053-0/+123
|
* GH-105229: Replace some superinstructions with single instruction ↵Mark Shannon2023-06-0517-686/+731
| | | | equivalent. (GH-105230)
* GH-104584: Allow optimizers to opt out of optimizing. (GH-105244)Mark Shannon2023-06-052-12/+20
|
* gh-103558: Add coverage tests for argparse (#103570)Tian Gao2023-06-053-7/+92
| | | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
* gh-98963: Restore the ability to have a dict-less property. (#105262)Gregory P. Smith2023-06-053-13/+97
| | | | | Ignore doc string assignment failures in `property` as has been the behavior of all past Python releases.
* gh-80480: array: Add 'w' typecode. (#105242)Inada Naoki2023-06-047-58/+158
|
* gh-104882: Docs: fix description of relationship between ↵Joe Geisbauer2023-06-041-1/+1
| | | | `socket.getblocking()` and `socket.gettimeout()` (#105026)
* Fix typo in Python 3.12 What's New (#105278)Shantanu2023-06-041-2/+2
|
* gh-104690 Disallow thread creation and fork at interpreter finalization ↵chgnrdv2023-06-048-30/+97
| | | | | | | | | | | | | | | | | (#104826) Disallow thread creation and fork at interpreter finalization. in the following functions, check if interpreter is finalizing and raise `RuntimeError` with appropriate message: * `_thread.start_new_thread` and thus `threading` * `posix.fork` * `posix.fork1` * `posix.forkpty` * `_posixsubprocess.fork_exec` when a `preexec_fn=` is supplied. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-89415: Mention new `IP_*` constants in `socket` module in the docs (#105266)Nikita Sobolev2023-06-031-1/+2
|
* gh-103277: remove unused macros (#105247)Irit Katriel2023-06-031-19/+0
|
* gh-101524: Only Use Public C-API in the _xxsubinterpreters Module (gh-105258)Eric Snow2023-06-0211-36/+38
| | | The _xxsubinterpreters module was meant to only use public API. Some internal C-API usage snuck in over the last few years (e.g. gh-28969). This fixes that.
* gh-105080: Fixed inconsistent signature on derived classes (#105217)Tian Gao2023-06-023-11/+31
|
* GH-102404, GH-100956: Document how to do a WASI build (GH-105251)Brett Cannon2023-06-023-174/+192
| | | Also includes a reference shell script to implements what is documented.
* gh-104614: Fix potential ref. leak in ↵Erlend E. Aasland2023-06-021-1/+3
| | | | _testcapimodule/get_basic_static_type() (#105225)
* gh-102778: update documentation of PyErr_PrintEx and traceback.print_last() ↵Irit Katriel2023-06-022-7/+11
| | | | regarding sys.last_exc (#105190)
* gh-87092: avoid gcc warning on uninitialized struct field in assemble… ↵Dong-hee Na2023-06-021-0/+1
| | | | | (gh-105243) gh-87092: avoid gcc warning on uninitialized struct field in assemble.c (part2)
* gh-105240: add missing function prototypes (#105241)Irit Katriel2023-06-021-2/+2
|
* gh-105214: Use named constants for MAKE_FUNCTION oparg (#105215)Jelle Zijlstra2023-06-026-289/+294
|
* gh-105194: Fix format specifier escaped characters in f-strings (#105231)Pablo Galindo Salgado2023-06-026-2/+34
|
* GH-104584: Plugin optimizer API (GH-105100)Mark Shannon2023-06-0231-501/+950
|
* GH-105162: Account for `INSTRUMENTED_RESUME` in gen.close/throw. (GH-105187)Mark Shannon2023-06-023-3/+52
|
* gh-105184: document that marshal functions can fail and need to be checked ↵Irit Katriel2023-06-022-0/+8
| | | | with PyErr_Occurred (#105185)
* gh-104799: Default missing lists in AST to the empty list (#104834)Jelle Zijlstra2023-06-024-239/+400
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-85275: Remove old buffer APIs (#105137)Inada Naoki2023-06-029-133/+79
| | | | | They are now abi-only. Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-92536: Remove PyUnicode_READY() calls (#105210)Victor Stinner2023-06-0132-186/+5
| | | | Since Python 3.12, PyUnicode_READY() does nothing and always returns 0.
* gh-92536: Argument Clinic no longer emits PyUnicode_READY() (#105208)Victor Stinner2023-06-0135-321/+37
| | | | | | Since Python 3.12, PyUnicode_READY() does nothing and always returns 0. Argument Clinic now also checks for .cpp files (PC/_wmimodule.cpp).
* gh-104614: Make Sure ob_type is Always Set Correctly by PyType_Ready() ↵Eric Snow2023-06-014-17/+128
| | | | | | | (gh-105122) When I added the relevant condition to type_ready_set_bases() in gh-103912, I had missed that the function also sets tp_base and ob_type (if necessary). That led to problems for third-party static types. We fix that here, by making those extra operations distinct and by adjusting the condition to be more specific.
* gh-104341: Call _PyEval_ReleaseLock() with NULL When Finalizing the Current ↵Eric Snow2023-06-014-9/+46
| | | | | | | Thread (gh-105109) This avoids the problematic race in drop_gil() by skipping the FORCE_SWITCHING code there for finalizing threads. (The idea for this approach came out of discussions with @markshannon.)
* GH-89886: Bump to GNU Autoconf v2.71 (#104925)Erlend E. Aasland2023-06-019-7262/+10397
| | | Co-authored-by: Christian Heimes <christian@python.org>
* gh-105140: remove unused arg of _PyErr_ChainStackItem (#105141)Irit Katriel2023-06-013-34/+9
|
* gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (#105174)Gregory P. Smith2023-06-0113-18/+8794
| | | | | | | | | | | | | Upgrade builds to OpenSSL 1.1.1u. This OpenSSL version addresses a pile if less-urgent CVEs since 1.1.1t. The Mac/BuildScript/build-installer.py was already updated. Also updates _ssl_data_111.h from OpenSSL 1.1.1u, _ssl_data_300.h from 3.0.9, and adds a new _ssl_data_31.h file from 3.1.1 along with the ssl.c code to use it. Manual edits to the _ssl_data_300.h file prevent it from removing any existing definitions in case those exist in some peoples builds and were important (avoiding regressions during backporting). backports of this prior to 3.12 will not include the openssl 3.1 header.
* gh-105191: Cleanup peg generator; keep only necessary files (#105197)Lysandros Nikolaou2023-06-0120-16832/+60
|
* gh-105145: Deprecate Py_GetPath() function (#105179)Victor Stinner2023-06-017-12/+57
| | | | | | | | | | | | | | Deprecate old Python initialization functions: * PySys_ResetWarnOptions() * Py_GetExecPrefix() * Py_GetPath() * Py_GetPrefix() * Py_GetProgramFullPath() * Py_GetProgramName() * Py_GetPythonHome() _tkinter.c uses sys.executable instead of Py_GetProgramName() and uses sys.prefix instead of Py_GetPrefix().
* gh-105182: Remove PyEval_AcquireLock() and PyEval_InitThreads() (#105183)Victor Stinner2023-06-0111-105/+36
| | | | | | | | | | | | Remove functions in the C API: * PyEval_AcquireLock() * PyEval_ReleaseLock() * PyEval_InitThreads() * PyEval_ThreadsInitialized() But keep these functions in the stable ABI. Mention "make regen-limited-abi" in "make regen-all".
* gh-89886: Rely on HAVE_SYS_TIME_H (#105058)Erlend E. Aasland2023-06-015-19/+10
| | | | | | | Quoting autoconf (v2.71): All current systems provide time.h; it need not be checked for. Not all systems provide sys/time.h, but those that do, all allow you to include it and time.h simultaneously.
* remove unused #includes of pycore_pymem.h (#105166)Irit Katriel2023-06-016-264/+259
|
* gh-103224: Use the realpath of the Python executable in `test_venv` (GH-103243)Artem Mukhin2023-06-011-3/+5
| | | | Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-105107: Remove PyCFunction_Call() function (#105181)Victor Stinner2023-06-018-6/+40
| | | | | * Keep the function in the stable ABI. * Add unit tests on PyCFunction_Call() since it remains supported in the stable ABI.
* gh-105156: Update Lib/test/clinic.test manually (#105180)Victor Stinner2023-06-011-14/+14
| | | | Update Lib/test/clinic.test manually for updated Py_UNICODE converter: it now uses wchar_t type rather than Py_UNICODE.
* Fix docstring of `warnings._deprecated` to show correct `remove` value (#105178)Nikita Sobolev2023-06-011-1/+1
|
* gh-105156: Cleanup usage of old Py_UNICODE type (#105158)Victor Stinner2023-06-014-53/+27
| | | | | | | | | | | | * refcounts.dat: * Remove Py_UNICODE functions. * Replace Py_UNICODE argument type with wchar_t. * _PyUnicode_ToLowercase(), _PyUnicode_ToUppercase(), _PyUnicode_ToTitlecase() are no longer deprecated in comments. It's no longer needed since they now use Py_UCS4 type, rather than the deprecated Py_UNICODE type. * gdb: Remove unused char_width() method.
* gh-105145: Remove old functions to config Python init (#105154)Victor Stinner2023-06-0122-522/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the following old functions to configure the Python initialization, deprecated in Python 3.11: * PySys_AddWarnOptionUnicode() * PySys_AddWarnOption() * PySys_AddXOption() * PySys_HasWarnOptions() * PySys_SetArgvEx() * PySys_SetArgv() * PySys_SetPath() * Py_SetPath() * Py_SetProgramName() * Py_SetPythonHome() * Py_SetStandardStreamEncoding() * _Py_SetProgramFullPath() Most of these functions are kept in the stable ABI, except: * Py_SetStandardStreamEncoding() * _Py_SetProgramFullPath() Update Doc/extending/embedding.rst and Doc/extending/extending.rst to use the new PyConfig API. _testembed.c: * check_stdio_details() now sets stdio_encoding and stdio_errors of PyConfig. * Add definitions of functions removed from the API but kept in the stable ABI. * test_init_from_config() and test_init_read_set() now use PyConfig_SetString() instead of PyConfig_SetBytesString(). Remove _Py_ClearStandardStreamEncoding() internal function.
* gh-105156: Deprecate the old Py_UNICODE type in C API (#105157)Victor Stinner2023-06-019-14/+25
| | | | | | | | Deprecate the old Py_UNICODE and PY_UNICODE_TYPE types in the C API: use wchar_t instead. Replace Py_UNICODE with wchar_t in multiple C files. Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* gh-105172: Fixed functools.lru_cache typed argument docstring. (GH-105173)Bar Harel2023-05-312-2/+5
|
* gh-102251: Explicitly free state for test modules with state in test_import ↵sunmy20192023-05-312-5/+31
| | | | | (#105085) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* Clarify that error messages are better with PEP 701 (#105150)Pablo Galindo Salgado2023-05-311-0/+25
| | | | Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
* gh-103464: Add checks for arguments of pdb commands (GH-103465)Tian Gao2023-05-313-11/+90
|
* gh-105146: Update links at end of Windows installer (uninstall/repair) ↵Steve Dower2023-05-312-3/+5
| | | | (GH-105147)