summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
Commit message (Collapse)AuthorAgeFilesLines
* GH-78079: Fix UNC device path root normalization in pathlib (GH-102003)Barney Gale2023-04-141-0/+3
| | | | | | | We no longer add a root to device paths such as `//./PhysicalDrive0`, `//?/BootPartition` and `//./c:` while normalizing. We also avoid adding a root to incomplete UNC share paths, like `//`, `//a` and `//a/`. Co-authored-by: Eryk Sun <eryksun@gmail.com>
* gh-103532: Fix reST syntax in NEWS entry (GH-103544)Zachary Ware2023-04-141-1/+1
|
* gh-103532: Add NEWS entry (#103542)Zachary Ware2023-04-141-0/+4
|
* gh-103365: [Enum] STRICT boundary corrections (GH-103494)Ethan Furman2023-04-131-0/+1
| | | | | | STRICT boundary: - fix bitwise operations - make default for Flag
* GH-103488: Use return-offset, not yield-offset. (GH-103502)Mark Shannon2023-04-131-0/+3
| | | | * Use return-offset, not yield-offset, so that instruction pointer is correct when sending to a generator or coroutine.
* gh-102978: Fix mock.patch function signatures for class and staticmethod ↵Tomas R2023-04-131-0/+3
| | | | | | | decorators (#103228) Fixes unittest.mock.patch not enforcing function signatures for methods decorated with @classmethod or @staticmethod when patch is called with autospec=True.
* gh-103462: Ensure SelectorSocketTransport.writelines registers a writer when ↵Ali-Akber Saifee2023-04-131-0/+4
| | | | data is still pending (#103463)
* gh-67230: add quoting rules to csv module (GH-29469)Skip Montanaro2023-04-121-0/+2
| | | | | | Add two quoting styles for csv dialects. They will help to work with certain databases in particular. Automerge-Triggered-By: GH:merwok
* gh-103088: Fix virtual environment activate script not working in Cygwin ↵Stanislav Syekirin2023-04-121-0/+1
| | | | (GH-103470)
* gh-103092: Isolate `_collections` (#103093)Erlend E. Aasland2023-04-121-0/+1
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* GH-103082: Implementation of PEP 669: Low Impact Monitoring for CPython ↵Mark Shannon2023-04-121-0/+1
| | | | | | | | | | (GH-103083) * The majority of the monitoring code is in instrumentation.c * The new instrumentation bytecodes are in bytecodes.c * legacy_tracing.c adapts the new API to the old sys.setrace and sys.setprofile APIs
* gh-103092: Isolate msvcrt (#103248)AN Long2023-04-121-0/+1
|
* gh-103357: Add logging.Formatter defaults support to logging.config ↵Bar Harel2023-04-121-0/+3
| | | | fileConfig and dictConfig (GH-103359)
* gh-103143: Polish pdb help messages and doc strings (GH-103144)Tian Gao2023-04-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Made all the command part of the docstring match the official documentation * Always have a space between the command and the description in docstring * Added a helper function to format the help message Before: ``` (Pdb) h a a(rgs) Print the argument list of the current function. (Pdb) h commands commands [bpnumber] (com) ... (com) end (Pdb) ... (Pdb) h interact interact Start an interactive interpreter whose global namespace contains all the (global and local) names found in the current scope. ``` After ``` (Pdb) h a Usage: a(rgs) Print the argument list of the current function. (Pdb) h commands Usage: (Pdb) commands [bpnumber] (com) ... (com) end (Pdb) ... (Pdb) h interact Usage: interact Start an interactive interpreter whose global namespace contains all the (global and local) names found in the current scope. ``` Automerge-Triggered-By: GH:brandtbucher
* gh-103088: Sanitize venv paths when using MSYS or Cygwin Bash (GH-103325)Stanislav Syekirin2023-04-111-0/+1
|
* GH-103220: Fix `ntpath.join()` of partial UNC drive with trailing slash ↵Barney Gale2023-04-111-0/+2
| | | | (GH-103221)
* gh-77757: replace exception wrapping by PEP-678 notes in typeobject's ↵Irit Katriel2023-04-111-0/+3
| | | | __set_name__ (#103402)
* gh-103176: sys._current_exceptions() returns mapping to exception instances ↵Irit Katriel2023-04-111-0/+2
| | | | instead of exc_info tuples (#103177)
* gh-103000: Optimise dataclasses asdict/astuple for common types (#103005)David Ellis2023-04-101-0/+2
| | | | Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-103092: Isolate winsound (#103249)AN Long2023-04-101-0/+1
|
* GH-101362: Omit path anchor from `pathlib.PurePath()._parts` (GH-102476)Barney Gale2023-04-091-0/+2
| | | Improve performance of path construction by skipping the addition of the path anchor (`drive + root`) to the internal `_parts` list. Rename this attribute to `_tail` for clarity.
* gh-103092: Isolate `socket` module (#103094)Erlend E. Aasland2023-04-091-0/+1
|
* gh-103242: Migrate SSLContext.set_ecdh_curve not to use deprecated APIs ↵Dong-hee Na2023-04-081-0/+2
| | | | | (#103378) Migrate `SSLContext.set_ecdh_curve()` not to use deprecated OpenSSL APIs.
* gh-75729: Fix os.spawn tests not handling spaces on Windows (#99150)C.A.M. Gerlach2023-04-081-0/+2
| | | | | | | | | | | | | * Quote paths in os.spawn tests on Windows so they work with spaces * Add NEWS entry for os spawn test fix * Fix code style to avoid double negative in os.spawn tests Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> --------- Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-103329: Add regression test for PropertyMock with side effect (#103358)Russell Keith-Magee2023-04-081-0/+1
|
* gh-74690: Document changes made to runtime-checkable protocols in 3.12 (#103348)Alex Waygood2023-04-072-0/+11
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-100220: Fix error handling in make rules (GH-100328)Michał Górny2023-04-071-0/+4
| | | | | Set `SHELL = /bin/sh -e` to ensure that complex recipes fail on the first error rather than incorrectly reporting success. Co-authored-by: Zachary Ware <zach@python.org>
* gh-103225: Fixed zero lineno issue for pdb (#103265)Tian Gao2023-04-071-0/+1
| | | | | Co-authored-by: Artem Mukhin <ortem00@gmail.com>
* GH-88013: Fix TypeError raised by ntpath.realpath in some cases (GH-102813)AN Long2023-04-071-0/+2
|
* gh-103256: Fix hmac algorithm to support fallback implementation (gh-103286)Dong-hee Na2023-04-071-0/+6
| | | Co-authored-by: Gregory P. Smith <greg@krypto.org>
* GH-102700: allow built-in modules to be submodules (GH-103162)Brett Cannon2023-04-061-0/+1
|
* gh-99202: Fix extension type from documentation for compiling in C++20 mode ↵Jeffrey Newman2023-04-061-0/+1
| | | | (#102518)
* gh-93910: [Enum] remove member.member deprecation (GH-103236)Ethan Furman2023-04-061-0/+1
| | | | i.e. Color.RED.BLUE is now officially supported.
* GH-88691: Shrink the CALL caches (GH-103230)Brandt Bucher2023-04-051-0/+1
|
* gh-99069: Consolidate checks for static_assert (#94766)Joshua Root2023-04-051-0/+1
| | | | | | | | | | | | | | | | | | | | Several platforms don't define the static_assert macro despite having compiler support for the _Static_assert keyword. The macro needs to be defined since it is used unconditionally in the Python code. So it should always be safe to define it if undefined and not in C++11 (or later) mode. Hence, remove the checks for particular platforms or libc versions, and just define static_assert anytime it needs to be defined but isn't. That way, all platforms that need the fix will get it, regardless of whether someone specifically thought of them. Also document that certain macOS versions are among the platforms that need this. The C2x draft (currently expected to become C23) makes static_assert a keyword to match C++. So only define the macro for up to C17. Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-86094: Add support for Unicode Path Extra Field in ZipFile (gh-102566)Yeojin Kim2023-04-051-0/+2
|
* gh-103193: Micro-optimise helper functions for `inspect.getattr_static` ↵Alex Waygood2023-04-051-0/+2
| | | | (#103195)
* gh-66897: Upgrade HTTP CONNECT to protocol HTTP/1.1 (#8305)Michael Handler2023-04-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-22708: Upgrade HTTP CONNECT to protocol HTTP/1.1 (GH-NNNN) Use protocol HTTP/1.1 when sending HTTP CONNECT tunnelling requests; generate Host: headers if one is not already provided (required by HTTP/1.1), convert IDN domains to punycode in HTTP CONNECT requests. * Refactor tests to pass under -bb (fix ByteWarnings); missed some lines >80. * Use consistent 'tunnelling' spelling in Lib/http/client.py * Lib/test/test_httplib: Remove remnant of obsoleted test. * Use dict.copy() not copy.copy() * fix version changed * Update Lib/http/client.py Co-authored-by: bgehman <bgehman@users.noreply.github.com> * Switch to for/else: syntax, as suggested * Don't use for: else: * Sure, fine, w/e * Oops * 1nm to the left --------- Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: bgehman <bgehman@users.noreply.github.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* GH-75586: Make shutil.which() on Windows more consistent with the OS (GH-103179)Charles Machalow2023-04-041-0/+1
|
* gh-103207: Add instructions to the macOS installer welcome display on how to ↵Ned Deily2023-04-041-0/+2
| | | | workaround the macOS 13 Ventura “The installer encountered an error” failure. (GH-103251)
* Merge branch 'main' of https://github.com/python/cpython into mainThomas Wouters2023-04-041-0/+1
|\
| * bpo-44844: Enable detection of Microsoft Edge browser in webbrowser module ↵Steve Dower2023-04-041-0/+1
| | | | | | | | (GH-29908)
* | Python 3.12.0a7v3.12.0a7Thomas Wouters2023-04-0473-149/+745
|/
* gh-103092: Isolate `_pickle` module (#102982)Erlend E. Aasland2023-04-041-0/+1
| | | | Co-authored-by: Mohamed Koubaa <koubaa.m@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* GH-76846, GH-85281: Call `__new__()` and `__init__()` on pathlib subclasses ↵Barney Gale2023-04-031-0/+3
| | | | | | | | | (GH-102789) Fix an issue where `__new__()` and `__init__()` were not called on subclasses of `pathlib.PurePath` and `Path` in some circumstances. Paths are now normalized on-demand. This speeds up path construction, `p.joinpath(q)`, and `p / q`. Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* gh-101865: Deprecate `co_lnotab` from code objects as per PEP 626 (#101866)Nikita Sobolev2023-04-031-0/+2
| | | Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-102038: Skip a sometimes unnecessary stat in site.py (#102039)Shantanu2023-04-021-0/+1
|
* bpo-4080: unittest durations (#12271)Giampaolo Rodola2023-04-021-0/+8
|
* gh-102433: Use `inspect.getattr_static` in ↵Alex Waygood2023-04-021-0/+10
| | | | `typing._ProtocolMeta.__instancecheck__` (#103034)
* gh-102192: deprecate _PyErr_ChainExceptions (#102935)Irit Katriel2023-04-011-0/+2
|