summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-98963: Restore the ability to have a dict-less property. (#105262)Gregory P. Smith2023-06-051-0/+4
| | | | | 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-041-0/+1
|
* gh-104690 Disallow thread creation and fork at interpreter finalization ↵chgnrdv2023-06-041-0/+6
| | | | | | | | | | | | | | | | | (#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-105080: Fixed inconsistent signature on derived classes (#105217)Tian Gao2023-06-021-0/+1
|
* GH-102404, GH-100956: Document how to do a WASI build (GH-105251)Brett Cannon2023-06-021-0/+2
| | | Also includes a reference shell script to implements what is documented.
* gh-105194: Fix format specifier escaped characters in f-strings (#105231)Pablo Galindo Salgado2023-06-021-0/+2
|
* GH-104584: Plugin optimizer API (GH-105100)Mark Shannon2023-06-021-0/+2
|
* GH-105162: Account for `INSTRUMENTED_RESUME` in gen.close/throw. (GH-105187)Mark Shannon2023-06-021-0/+2
|
* gh-104799: Default missing lists in AST to the empty list (#104834)Jelle Zijlstra2023-06-021-0/+4
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-85275: Remove old buffer APIs (#105137)Inada Naoki2023-06-021-0/+4
| | | | | They are now abi-only. Co-authored-by: Victor Stinner <vstinner@python.org>
* GH-89886: Bump to GNU Autoconf v2.71 (#104925)Erlend E. Aasland2023-06-011-0/+2
| | | Co-authored-by: Christian Heimes <christian@python.org>
* gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (#105174)Gregory P. Smith2023-06-011-0/+2
| | | | | | | | | | | | | 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-105145: Deprecate Py_GetPath() function (#105179)Victor Stinner2023-06-011-0/+11
| | | | | | | | | | | | | | 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-012-0/+4
| | | | | | | | | | | | 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-105107: Remove PyCFunction_Call() function (#105181)Victor Stinner2023-06-011-0/+1
| | | | | * Keep the function in the stable ABI. * Add unit tests on PyCFunction_Call() since it remains supported in the stable ABI.
* gh-105145: Remove old functions to config Python init (#105154)Victor Stinner2023-06-011-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-011-0/+4
| | | | | | | | 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-311-0/+2
|
* gh-103464: Add checks for arguments of pdb commands (GH-103465)Tian Gao2023-05-311-0/+1
|
* gh-105146: Update links at end of Windows installer (uninstall/repair) ↵Steve Dower2023-05-311-0/+2
| | | | (GH-105147)
* gh-105148: make _PyASTOptimizeState internal to ast_opt.c (#105149)Irit Katriel2023-05-311-0/+3
|
* gh-105144: Runtime-checkable protocols: move all 'sanity checks' to ↵Alex Waygood2023-05-311-0/+5
| | | | `_ProtocolMeta.__subclasscheck__` (#105152)
* gh-105111: remove deprecated macros Py_TRASHCAN_SAFE_BEGIN and ↵Irit Katriel2023-05-311-0/+3
| | | | Py_TRASHCAN_SAFE_END (#105112)
* gh-105096: Deprecate wave getmarkers() method (#105098)Victor Stinner2023-05-311-0/+3
| | | | | wave: Deprecate the getmark(), setmark() and getmarkers() methods of the Wave_read and Wave_write classes. They will be removed in Python 3.15.
* gh-62948: IOBase finalizer logs close() errors (#105104)Victor Stinner2023-05-311-0/+4
|
* gh-105107: Remove PyEval_CallFunction() function (#105108)Victor Stinner2023-05-311-0/+9
| | | | | | | | | | | | | | Remove 4 functions from the C API, deprecated in Python 3.9: * PyEval_CallObjectWithKeywords() * PyEval_CallObject() * PyEval_CallFunction() * PyEval_CallMethod() Keep 3 functions in the stable ABI: * PyEval_CallObjectWithKeywords() * PyEval_CallFunction() * PyEval_CallMethod()
* gh-104922: Make `PY_SSIZE_T_CLEAN` not mandatory again (#105051)Inada Naoki2023-05-311-0/+3
|
* gh-103142: Update macOS installer to use OpenSSL 1.1.1u. (GH-105130)Ned Deily2023-05-311-0/+1
|
* gh-105020: Share tp_bases and tp_mro Between Interpreters For All Static ↵Eric Snow2023-05-311-0/+3
| | | | | Builtin Types (gh-105115) In gh-103912 we added tp_bases and tp_mro to each PyInterpreterState.types.builtins entry. However, doing so ignored the fact that both PyTypeObject fields are public API, and not documented as internal (as opposed to tp_subclasses). We address that here by reverting back to shared objects, making them immortal in the process.
* gh-105035: fix super() calls on unusual types (e.g. meta-types) (#105094)Carl Meyer2023-05-301-0/+2
|
* GH-73435: Implement recursive wildcards in `pathlib.PurePath.match()` (#101398)Barney Gale2023-05-301-0/+1
| | | | | | | | `PurePath.match()` now handles the `**` wildcard as in `Path.glob()`, i.e. it matches any number of path segments. We now compile a `re.Pattern` object for the entire pattern. This is made more difficult by `fnmatch` not treating directory separators as special when evaluating wildcards (`*`, `?`, etc), and so we arrange the path parts onto separate *lines* in a string, and ensure we don't set `re.DOTALL`. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-105071: add PyUnstable_Exc_PrepReraiseStar to expose except* ↵Irit Katriel2023-05-301-0/+1
| | | | implementation in the unstable API (#105072)
* gh-105084: Tests: Use setuptools+wheel from ↵Miro Hrončok2023-05-301-0/+3
| | | | sysconfig.get_config_var('WHEEL_PKG_DIR') if set (#105056)
* gh-88745: Add _winapi.CopyFile2 and update shutil.copy2 to use it (GH-105055)Steve Dower2023-05-301-0/+3
|
* GH-89455: Add missing attributes (added in 3.11) to traceback module docs ↵Jakub Kuczys2023-05-291-0/+3
| | | | (#105044)
* gh-103646: Remove --include-pip-user from default APPX package build (GH-105064)Steve Dower2023-05-291-0/+5
|
* GH-77609: Add follow_symlinks argument to `pathlib.Path.glob()` (GH-102616)Barney Gale2023-05-291-0/+2
| | | | | Add a keyword-only *follow_symlinks* parameter to `pathlib.Path.glob()` and`rglob()`. When *follow_symlinks* is `None` (the default), these methods follow symlinks except when evaluating "`**`" wildcards. When set to true or false, symlinks are always or never followed, respectively.
* gh-104803: Implement ntpath.isdevdrive for checking whether a path is on a ↵Steve Dower2023-05-291-0/+3
| | | | Windows Dev Drive (GH-104805)
* gh-105017: Include CRLF lines in strings and column numbers (#105030)Marta Gómez Macías2023-05-281-0/+1
| | | Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* gh-105013: Fix inspect.getsource with parenthesized multiline lambdas (#105021)Pablo Galindo Salgado2023-05-271-0/+2
|
* gh-104992: Remove deprecated unittest.TestProgram.usageExit (#104993)Hugo van Kemenade2023-05-272-1/+3
|
* gh-75552: Remove deprecated tkinter.tix module (GH-104902)Zachary Ware2023-05-271-0/+1
|
* gh-105017: Fix including additional NL token when using CRLF (#105022)Marta Gómez Macías2023-05-271-0/+1
| | | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-104976: Ensure trailing dedent tokens are emitted as the previous ↵Pablo Galindo Salgado2023-05-261-0/+3
| | | | | tokenizer (#104980) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* GH-101588: Deprecate pickle/copy/deepcopy support in itertools (GH-104965)Raymond Hettinger2023-05-261-0/+1
|
* GH-103631: Fix `PurePosixPath(PureWindowsPath(...))` separator handling ↵Barney Gale2023-05-261-0/+2
| | | | | | | | | (GH-104949) For backwards compatibility, accept backslashes as path separators in `PurePosixPath` if an instance of `PureWindowsPath` is supplied. This restores behaviour from Python 3.11. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* GH-104947: Make pathlib.PureWindowsPath comparisons consistent across ↵Barney Gale2023-05-261-0/+2
| | | | | | | | platforms (GH-104948) Use `str.lower()` rather than `ntpath.normcase()` to normalize case of Windows paths. This restores behaviour from Python 3.11. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-104972: Ensure that line attributes in tokens in the tokenize module are ↵Pablo Galindo Salgado2023-05-261-0/+2
| | | | correct (#104975)
* gh-104804: Remove webbrowser.MacOSX class, deprecated in Python 3.11 (#104816)Hugo van Kemenade2023-05-262-2/+4
| | | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-104773: PEP 594: Remove the imghdr module (#104777)Victor Stinner2023-05-261-0/+2
| | | | | | * Remove the Lib/test/imghdrdata/ directory. * Copy 5 pictures (gif, png, ppm, pgm, xbm) from removed Lib/test/imghdrdata/ to a new Lib/test/tkinterdata/ directory. * Update Sphinx from 4.5 to 6.2 in Doc/requirements.txt.