Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-103092: Isolate `socket` module (#103094) | Erlend E. Aasland | 2023-04-09 | 5 | -167/+242 | |
| | ||||||
* | gh-103242: Migrate SSLContext.set_ecdh_curve not to use deprecated APIs ↵ | Dong-hee Na | 2023-04-08 | 2 | -3/+10 | |
| | | | | | (#103378) Migrate `SSLContext.set_ecdh_curve()` not to use deprecated OpenSSL APIs. | |||||
* | gh-103373: Improve documentation for `__mro_entries__` (#103374) | Alex Waygood | 2023-04-08 | 1 | -5/+9 | |
| | ||||||
* | gh-100176: Tools/iobench: Remove redundant compat code for Python <= 3.2 ↵ | Hugo van Kemenade | 2023-04-08 | 1 | -42/+54 | |
| | | | | | | (#100197) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||||
* | gh-100574: add examples/links to the `strptime`/`strftime` docs (#100575) | Ezio Melotti | 2023-04-08 | 1 | -21/+26 | |
| | ||||||
* | Docs: use Node.findall to avoid a deprecation warning (#99403) | Adam Turner | 2023-04-08 | 1 | -1/+12 | |
| | ||||||
* | gh-75729: Fix os.spawn tests not handling spaces on Windows (#99150) | C.A.M. Gerlach | 2023-04-08 | 2 | -45/+59 | |
| | | | | | | | | | | | | | * 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-102809: Remove gdbinit mention in Misc/README (#103269) | Tomáš Hrnčiar | 2023-04-08 | 1 | -1/+0 | |
| | ||||||
* | gh-103329: Add regression test for PropertyMock with side effect (#103358) | Russell Keith-Magee | 2023-04-08 | 2 | -1/+23 | |
| | ||||||
* | gh-83004: Harden _socket init (GH-103261) | Erlend E. Aasland | 2023-04-07 | 1 | -537/+581 | |
| | | | Automerge-Triggered-By: GH:erlend-aasland | |||||
* | gh-74690: Document changes made to runtime-checkable protocols in 3.12 (#103348) | Alex Waygood | 2023-04-07 | 4 | -9/+64 | |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | |||||
* | gh-103272: regression test for getattr exception in property (#103336) | sunmy2019 | 2023-04-07 | 1 | -0/+13 | |
| | ||||||
* | gh-100220: Fix error handling in make rules (GH-100328) | Michał Górny | 2023-04-07 | 2 | -1/+5 | |
| | | | | | 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 Gao | 2023-04-07 | 3 | -2/+38 | |
| | | | | | Co-authored-by: Artem Mukhin <ortem00@gmail.com> | |||||
* | gh-74690: Add more tests for runtime-checkable protocols (#103347) | Alex Waygood | 2023-04-07 | 1 | -2/+39 | |
| | ||||||
* | gh-103193: Celebrate performance improvements to `inspect.getattr_static` in ↵ | Alex Waygood | 2023-04-07 | 1 | -0/+4 | |
| | | | | 'What's New in Python 3.12' (#103349) | |||||
* | GH-88013: Fix TypeError raised by ntpath.realpath in some cases (GH-102813) | AN Long | 2023-04-07 | 3 | -1/+10 | |
| | ||||||
* | bpo-46523: fix tests rerun when `setUp[Class|Module]` fails (#30895) | Nikita Sobolev | 2023-04-07 | 3 | -3/+184 | |
| | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> | |||||
* | gh-102213: Revert "gh-102213: Optimize the performance of `__getattr__` ↵ | Nikita Sobolev | 2023-04-07 | 3 | -13/+3 | |
| | | | | | (GH-102248)" (GH-103332) This reverts commit aa0a73d1bc53dcb6348a869df1e775138991e561. | |||||
* | gh-103256: Fix hmac algorithm to support fallback implementation (gh-103286) | Dong-hee Na | 2023-04-07 | 3 | -1/+17 | |
| | | | Co-authored-by: Gregory P. Smith <greg@krypto.org> | |||||
* | gh-103266: Fix a typo in example code for bisect() function (#103267) | Oleg Iarygin | 2023-04-07 | 1 | -4/+4 | |
| | ||||||
* | gh-93121: fix test_mailbox where some test cases were accidentally dropped ↵ | AGZain | 2023-04-06 | 1 | -22/+23 | |
| | | | | (#93242) | |||||
* | GH-102700: allow built-in modules to be submodules (GH-103162) | Brett Cannon | 2023-04-06 | 3 | -19/+1 | |
| | ||||||
* | gh-103193: Speedup and inline `inspect._is_type` (#103321) | Alex Waygood | 2023-04-06 | 1 | -9/+4 | |
| | | | Improve performance of `inspect.getattr_static` | |||||
* | gh-103193: Use LBYL idioms rather than EAFP in `inspect.getattr_static` ↵ | Alex Waygood | 2023-04-06 | 1 | -15/+10 | |
| | | | | (#103318) | |||||
* | gh-103186: assert in tests that UnsafeMailcapInput warnings are provided ↵ | Ijtaba Hussain | 2023-04-06 | 1 | -4/+24 | |
| | | | | (#103217) | |||||
* | gh-100227: Use an Array for _PyRuntime's Set of Locks During Init (gh-103315) | Eric Snow | 2023-04-06 | 1 | -60/+48 | |
| | | | This cleans things up a bit and simplifies adding new granular global locks. | |||||
* | gh-99202: Fix extension type from documentation for compiling in C++20 mode ↵ | Jeffrey Newman | 2023-04-06 | 6 | -10/+11 | |
| | | | | (#102518) | |||||
* | gh-48330: assert warning is emitted on unittest.TestResult with no ↵ | Irit Katriel | 2023-04-06 | 1 | -1/+2 | |
| | | | | addDuration (#103309) | |||||
* | gh-102799: use sys.exception() instead of sys.exc_info() in tests (#103293) | Irit Katriel | 2023-04-06 | 12 | -71/+68 | |
| | ||||||
* | [Enum] unchain exception property.__get__ (GH-103305) | Ethan Furman | 2023-04-06 | 1 | -1/+1 | |
| | ||||||
* | gh-103207: Fix Welcome formatting issues when macOS Installer is run in dark ↵ | Ned Deily | 2023-04-06 | 1 | -29/+22 | |
| | | | | mode. (GH-103303) | |||||
* | gh-101659: Add _Py_AtExit() (gh-103298) | Eric Snow | 2023-04-06 | 13 | -68/+269 | |
| | | | | | The function is like Py_AtExit() but for a single interpreter. This is a companion to the atexit module's register() function, taking a C callback instead of a Python one. We also update the _xxinterpchannels module to use _Py_AtExit(), which is the motivating case. (This is inspired by pain points felt while working on gh-101660.) | |||||
* | gh-93910: [Enum] remove member.member deprecation (GH-103236) | Ethan Furman | 2023-04-06 | 4 | -50/+37 | |
| | | | | i.e. Color.RED.BLUE is now officially supported. | |||||
* | GH-88691: Shrink the CALL caches (GH-103230) | Brandt Bucher | 2023-04-05 | 12 | -281/+285 | |
| | ||||||
* | gh-101659: Use the Raw Allocator in the _xxinterpchannels Module (gh-103287) | Eric Snow | 2023-04-05 | 1 | -22/+93 | |
| | | | Using the raw allocator for any of the global state makes sense, especially as we move to a per-interpreter obmalloc state (gh-101660). | |||||
* | gh-74690: Further optimise `typing._ProtocolMeta.__instancecheck__` (#103280) | Alex Waygood | 2023-04-05 | 1 | -1/+1 | |
| | ||||||
* | gh-99069: Consolidate checks for static_assert (#94766) | Joshua Root | 2023-04-05 | 2 | -13/+17 | |
| | | | | | | | | | | | | | | | | | | | | 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-102899: Fix doc link for getting filesystem error handler (#102901) | Olivier Gayot | 2023-04-05 | 1 | -1/+1 | |
| | ||||||
* | gh-89058: remove skip from test_no_hang_on_context_chain_cycle2 (#102903) | Irit Katriel | 2023-04-05 | 1 | -1/+0 | |
| | ||||||
* | gh-86094: Add support for Unicode Path Extra Field in ZipFile (gh-102566) | Yeojin Kim | 2023-04-05 | 4 | -13/+67 | |
| | ||||||
* | gh-100408: Fix a traceback in multiprocessing example (#100409) | Serhiy Storchaka | 2023-04-05 | 1 | -4/+4 | |
| | ||||||
* | gh-74690: typing: Call `_get_protocol_attrs` and `_callable_members_only` at ↵ | Alex Waygood | 2023-04-05 | 1 | -11/+14 | |
| | | | | protocol class creation time, not during `isinstance()` checks (#103160) | |||||
* | gh-81762: Clarify and simplify description of print's flush param (#103264) | C.A.M. Gerlach | 2023-04-05 | 1 | -2/+3 | |
| | ||||||
* | gh-74690: typing: Simplify and optimise `_ProtocolMeta.__instancecheck__` ↵ | Alex Waygood | 2023-04-05 | 1 | -11/+3 | |
| | | | | (#103159) | |||||
* | gh-103193: Micro-optimise helper functions for `inspect.getattr_static` ↵ | Alex Waygood | 2023-04-05 | 2 | -4/+5 | |
| | | | | (#103195) | |||||
* | gh-103167: Fix `-Wstrict-prototypes` warnings by using `(void)` for ↵ | Nikita Sobolev | 2023-04-05 | 7 | -16/+16 | |
| | | | | functions with no args (GH-103168) | |||||
* | gh-66897: Upgrade HTTP CONNECT to protocol HTTP/1.1 (#8305) | Michael Handler | 2023-04-05 | 5 | -21/+167 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-101525: Disable peephole optimization process of BOLT (gh-103187) | Dong-hee Na | 2023-04-05 | 2 | -2/+2 | |
| | | | Co-authored-by: Dong-hee Na <donghee.na@linecorp.com> | |||||
* | gh-102660: Fix is_core_module() (gh-103257) | Eric Snow | 2023-04-04 | 1 | -1/+13 | |
| | | | | | In gh-102744 we added is_core_module() (in Python/import.c), which relies on get_core_module_dict() (also added in that PR). The problem is that_PyImport_FixupBuiltin(), which ultimately calls is_core_module(), is called on the builtins module before interp->builtins_copyis set. Consequently, the builtins module isn't considered a "core" module while it is getting "fixed up" and its module def m_copy erroneously gets set. Under isolated interpreters this causes problems since sys and builtins are allowed even though they are still single-phase init modules. (This was discovered while working on gh-101660.) The solution is to stop relying on get_core_module_dict() in is_core_module(). |