2818714 | Mark Shannon | 05 January 2023, 16:05:51 UTC | GH-99005: Add `CALL_INTRINSIC_1` instruction (GH-100771) * Remove PRINT_EXPR instruction * Remove STOPITERATION_ERROR instruction * Remove IMPORT_STAR instruction | 05 January 2023, 16:05:51 UTC |
f20c553 | Mark Shannon | 05 January 2023, 12:20:09 UTC | GH-100288: Remove LOAD_ATTR_METHOD_WITH_DICT instruction. (GH-100753) | 05 January 2023, 12:20:09 UTC |
105e373 | Tzu-ping Chung | 05 January 2023, 03:34:30 UTC | GH-100766: Note that locale.LC_MESSAGES is not universal (GH-100702) | 05 January 2023, 03:34:30 UTC |
31b639a | Brett Cannon | 04 January 2023, 22:59:48 UTC | Drop myself from pathlib maintenance (#100757) | 04 January 2023, 22:59:48 UTC |
7f1eefc | Christian Klein | 04 January 2023, 22:31:29 UTC | gh-100739: Respect mock spec when checking for unsafe prefixes (#100740) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> | 04 January 2023, 22:31:29 UTC |
52017db | Irit Katriel | 04 January 2023, 20:19:20 UTC | gh-100747: some compiler macros use c instead of C to access the compiler (#100748) | 04 January 2023, 20:19:20 UTC |
15aecf8 | Mark Shannon | 04 January 2023, 15:41:39 UTC | GH-100719: Remove the `co_nplaincellvars` field from code objects. (GH-100721) | 04 January 2023, 15:41:39 UTC |
c31e356 | Irit Katriel | 04 January 2023, 13:37:06 UTC | gh-100720: refactor calculation of number of frame slots for a code object into the new function _PyFrame_NumSlotsForCodeObject (#100722) | 04 January 2023, 13:37:06 UTC |
5fb1c08 | David Lechner | 04 January 2023, 08:17:42 UTC | docs: fix `ssizeobjargproc` parameters (#100736) | 04 January 2023, 08:17:42 UTC |
ba8dcdb | Kumar Aditya | 04 January 2023, 08:00:26 UTC | GH-86508: skip binding to local addresses of different family in `asyncio.open_connection` (#100615) | 04 January 2023, 08:00:26 UTC |
a286caa | Ethan Furman | 03 January 2023, 23:20:08 UTC | gh-91219: http - use subclassing to override index_pages attribute (GH-100731) Remove previously added parameter to `__init__`, and recommend subclassing to modify the `index_pages` attribute instead. | 03 January 2023, 23:20:08 UTC |
64ed609 | Christophe Nanteuil | 03 January 2023, 22:08:50 UTC | [Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709) | 03 January 2023, 22:08:50 UTC |
e196d8c | Zachary Ware | 03 January 2023, 22:00:26 UTC | gh-100700: Remove Date and Release fields in past whatsnews (GH-100728) | 03 January 2023, 22:00:26 UTC |
e6d4440 | L. A. F. Pereira | 03 January 2023, 18:49:49 UTC | gh-100146: Steal references from stack when building a list (#100147) When executing the BUILD_LIST opcode, steal the references from the stack, in a manner similar to the BUILD_TUPLE opcode. Implement this by offloading the logic to a new private API, _PyList_FromArraySteal(), that works similarly to _PyTuple_FromArraySteal(). This way, instead of performing multiple stack pointer adjustments while the list is being initialized, the stack is adjusted only once and a fast memory copy operation is performed in one fell swoop. | 03 January 2023, 18:49:49 UTC |
b3722ca | Thomas Grainger | 03 January 2023, 15:47:13 UTC | gh-95882: fix regression in the traceback of exceptions propagated from inside a contextlib context manager (#95883) | 03 January 2023, 15:47:13 UTC |
8586949 | Eli Schwartz | 03 January 2023, 14:56:57 UTC | gh-89419: gdb: fix bug causing `AttributeError` in py-locals when no frame is available (#100611) | 03 January 2023, 14:56:57 UTC |
8b1f125 | 4l4k4z4m | 03 January 2023, 08:16:51 UTC | gh-81611: Improve `range` paragraph in 8.3 of language reference (#98353) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> | 03 January 2023, 08:16:51 UTC |
73097d9 | Stanislav Zmiev | 02 January 2023, 21:41:19 UTC | gh-89727: Improve os.walk complexity (#100671) | 02 January 2023, 21:41:19 UTC |
d7e7f79 | Ionite | 02 January 2023, 21:11:49 UTC | gh-100637: Fix int and bool __sizeof__ calculation to include the 1 element ob_digit array for 0 and False (#100663) Fixes behaviour where int (and subtypes like bool) __sizeof__ under-reports true size as it did not take into account the size 1 `ob_digit` array for the zero int. Co-authored-by: Mark Dickinson <dickinsm@gmail.com> | 02 January 2023, 21:11:49 UTC |
9dee973 | Rupa Lahiri | 02 January 2023, 12:17:58 UTC | gh-100676: Improve description for venv --upgrade-deps (GH-100678) | 02 January 2023, 12:17:58 UTC |
7feb6d2 | Kumar Aditya | 02 January 2023, 11:49:06 UTC | fix `grammer` -> `grammar` typo in expressions.rst (GH-100683) Automerge-Triggered-By: GH:AlexWaygood | 02 January 2023, 11:49:06 UTC |
254ab42 | Alexander Shadchin | 02 January 2023, 11:13:55 UTC | Fix deprecation doc for `PyEval_InitThreads` (#100667) | 02 January 2023, 11:13:55 UTC |
edfbf56 | Shantanu | 02 January 2023, 03:14:18 UTC | gh-100428: Make int documentation more accurate (#100436) - Remove first link to lexical definition of integer literal, since it doesn't apply (differs in handling of leading zeros, base needs to be explicitly specified, unicode digits are allowed) - Better describe handling of leading zeros, unicode digits, underscores - Base 0 does not work exactly as like a code literal, since it allows Unicode digits. Link code literal to lexical definition of integer literal. | 02 January 2023, 03:14:18 UTC |
b7a68ab | Erlend E. Aasland | 01 January 2023, 22:26:23 UTC | gh-99953: Purge mention of numeric param style from sqlite3 docs (#100630) The PEP-249 numeric style has never been supported by sqlite3. | 01 January 2023, 22:26:23 UTC |
2366b27 | dependabot[bot] | 01 January 2023, 21:49:10 UTC | build(deps): bump actions/stale from 6 to 7 (#100656) | 01 January 2023, 21:49:10 UTC |
447d061 | Jason R. Coombs | 01 January 2023, 16:07:32 UTC | gh-97930: Apply changes from importlib_resources 5.10. (GH-100598) | 01 January 2023, 16:07:32 UTC |
ba1342c | Géry Ogam | 01 January 2023, 15:41:33 UTC | gh-87980: Fix the error message for disallowed __weakref__ slots (#25362) Fix the error message for disallowed `__weakref__` slots. | 01 January 2023, 15:41:33 UTC |
1aab269 | ram vikram singh | 01 January 2023, 15:36:13 UTC | gh-100201: Document behavior with a bare `yield` statement (#100416) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | 01 January 2023, 15:36:13 UTC |
1d1480f | Mehrdad Moradizadeh | 01 January 2023, 15:06:17 UTC | gh-96773 Fix documentation of socket backlog (#96778) | 01 January 2023, 15:06:17 UTC |
d52d494 | Gabriele N. Tornetta | 01 January 2023, 14:20:38 UTC | gh-100649: Update native_thread_id after fork (gh-100650) Update native_thread_id after fork | 01 January 2023, 14:20:38 UTC |
e83f88a | Shantanu | 01 January 2023, 08:44:48 UTC | gh-100488: Add is_integer method to fractions.Fraction (#100489) | 01 January 2023, 08:44:48 UTC |
71159a8 | Shantanu | 01 January 2023, 00:59:31 UTC | gh-100546: Remove incorrect positional-only marker from eval (#100547) All the arguments are positional-only. The current status after #99476 seems to be to not use positional-only markers in documentation, hence I've simply removed it. | 01 January 2023, 00:59:31 UTC |
1f6c87c | Terry Jan Reedy | 01 January 2023, 00:01:44 UTC | IDLE - fix module browser test (#100647) | 01 January 2023, 00:01:44 UTC |
baf2349 | Mark Hansen | 31 December 2022, 17:10:25 UTC | Fix `pydtrace.d` path comment in `Include/pydtrace.h` (#28539) | 31 December 2022, 17:10:25 UTC |
ac7a0a9 | Sandeep Subramanian | 31 December 2022, 16:57:58 UTC | GH-87002: fix caching documentation in `struct` module (#24164) | 31 December 2022, 16:57:58 UTC |
98308db | Owain Davies | 31 December 2022, 10:23:18 UTC | gh-100633 Tutorial: Fix dataclasses import (#100638) import dataclass not dataclasses from dataclasses | 31 December 2022, 10:23:18 UTC |
636e9dd | tqxia | 31 December 2022, 09:15:30 UTC | gh-94808: Improve coverage of dictresize (GH-100619) | 31 December 2022, 09:15:30 UTC |
f59c7f8 | Paolo Lammens | 31 December 2022, 06:24:04 UTC | GH-85979: Clarify specification of `object.__await__` (#22320) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 31 December 2022, 06:24:04 UTC |
4ebaae8 | Raymond Hettinger | 31 December 2022, 02:36:38 UTC | Improve comments in itertools uniquification recipes (GH-100631) | 31 December 2022, 02:36:38 UTC |
4652182 | Éric | 30 December 2022, 21:21:15 UTC | gh-95778: add doc missing in some places (GH-100627) | 30 December 2022, 21:21:15 UTC |
f4fcfdf | mathieui | 30 December 2022, 16:35:04 UTC | gh-100616: Document 'attr' parameter for window.vline() in curses module (#24961) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> | 30 December 2022, 16:35:04 UTC |
79c10b7 | Nikita Sobolev | 30 December 2022, 11:55:01 UTC | gh-99433: Fix `doctest` failure on `types.MethodWrapperType` (#99434) | 30 December 2022, 11:55:01 UTC |
894f2c3 | Gregory P. Smith | 29 December 2022, 22:41:39 UTC | gh-100228: Warn from os.fork() if other threads exist. (#100229) Not comprehensive, best effort warning. There are cases when threads exist on some platforms that this code cannot detect. macOS when API permissions allow and Linux with a readable /proc procfs present are the currently supported cases where a warning should show up reliably. Starting with a DeprecationWarning for now, it is less disruptive than something like RuntimeWarning and most likely to only be seen in people's CI tests - a good place to start with this messaging. | 29 December 2022, 22:41:39 UTC |
2df82db | Zachary Ware | 29 December 2022, 22:13:28 UTC | gh-100540: Remove obsolete Modules/_ctypes/darwin/ dlfcn shim (GH-100541) As far as I can tell, this hasn't been actually used since Mac OS X 10.2. | 29 December 2022, 22:13:28 UTC |
7223d50 | ram vikram singh | 29 December 2022, 15:17:20 UTC | gh-100583: Improve the `pydoc` documentation (#100590) | 29 December 2022, 15:17:20 UTC |
7685636 | Nikita Sobolev | 29 December 2022, 15:13:38 UTC | gh-100600: Fix "coroutine was never awaited" warning in `test_coroutines` (#100601) | 29 December 2022, 15:13:38 UTC |
f10f503 | Samet YASLAN | 28 December 2022, 21:31:43 UTC | gh-100585: Fixed a bug where importlib.resources.as_file was leaving file pointers open (GH-100586) * gh-100585: Fixed open fp bug in the imporlib module * Added news for gh-100585 | 28 December 2022, 21:31:43 UTC |
cf1c098 | JustAnotherArchivist | 28 December 2022, 21:24:50 UTC | GH-100101: Clarify documentation of zip's strict option (GH-100103) | 28 December 2022, 21:24:50 UTC |
c4c5790 | Raymond Hettinger | 28 December 2022, 20:29:27 UTC | Restore early-out to factor(). Strengthen tests. (GH-100591) | 28 December 2022, 20:29:27 UTC |
9eca723 | Hugo van Kemenade | 28 December 2022, 19:43:19 UTC | gh-94172: Update docs for params removed in 3.12 (#100431) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> | 28 December 2022, 19:43:19 UTC |
025b5c3 | Zachary Ware | 28 December 2022, 19:38:52 UTC | gh-100540: Remove unused Modules/_ctypes/libffi_osx/ (GH-100543) It was an ancient, modified copy of libffi that has not been in use since GH-22855. | 28 December 2022, 19:38:52 UTC |
25590eb | Zachary Ware | 28 December 2022, 19:36:03 UTC | gh-100540: Remove obsolete '--with-system-ffi' configure option (GH-100544) It has had no effect on non-macOS platforms for a long time, and has had the non-obvious effect of invoking `pkg_config` and not setting `-DUSING_APPLE_OS_LIBFFI` on macOS since GH-22855. | 28 December 2022, 19:36:03 UTC |
fd4b55f | Zachary Ware | 28 December 2022, 18:06:58 UTC | gh-100540: Remove unnecessary '-DMACOSX' for ctypes on macOS (GH-100542) The define was only used to protect a `#pragma clang diagnostic` setting, which is already better guarded by `__clang__` anwyay. | 28 December 2022, 18:06:58 UTC |
5e1adb4 | Nikita Sobolev | 28 December 2022, 15:31:53 UTC | gh-100577: Replace `assert(0)` with `Py_UNREACHABLE` in `symtable.c` (#100579) | 28 December 2022, 15:31:53 UTC |
457c1f4 | Chris Withers | 28 December 2022, 12:36:26 UTC | Fix mock code coverage. (#100580) | 28 December 2022, 12:36:26 UTC |
2d52406 | Raymond Hettinger | 28 December 2022, 11:13:58 UTC | Improve factor() recipe and fix its tests (GH-100576) | 28 December 2022, 11:13:58 UTC |
984894a | Chris Withers | 28 December 2022, 10:55:50 UTC | Remove skipped test in test for async mocks. (#100559) Remove skipped test. See discussion on https://github.com/python/cpython/pull/25326. Fix is apparently here, but no-one is confident to review and land: https://github.com/python/cpython/pull/25347. | 28 December 2022, 10:55:50 UTC |
6835184 | Kumar Aditya | 28 December 2022, 05:46:04 UTC | GH-100192: fix `asyncio` subprocess tests to pass env vars to subprocess (#100569) | 28 December 2022, 05:46:04 UTC |
b95b1b3 | Stanley | 28 December 2022, 05:30:42 UTC | gh-55688: Add note about ending backslashes for raw strings (#94768) Co-authored-by: hauntsaninja <hauntsaninja@gmail.com> | 28 December 2022, 05:30:42 UTC |
5369bba | Kumar Aditya | 28 December 2022, 04:37:55 UTC | add tests for `asyncio` transport sockets (#100263) | 28 December 2022, 04:37:55 UTC |
3da71ff | Nikita Sobolev | 28 December 2022, 04:27:57 UTC | Fix copy-paste error in `Tools/clinic.py` (#100560) | 28 December 2022, 04:27:57 UTC |
7cf164a | Kumar Aditya | 28 December 2022, 04:16:28 UTC | GH-100342: check for allocation failure in AC `*args` parsing (#100343) | 28 December 2022, 04:16:28 UTC |
e97afef | Kumar Aditya | 28 December 2022, 04:12:16 UTC | GH-100192: add more `asyncio` subprocess tests (#100194) | 28 December 2022, 04:12:16 UTC |
08e5594 | Guido van Rossum | 28 December 2022, 01:11:03 UTC | GH-98831: Modernize a ton of simpler instructions (#100545) * load_const and load_fast aren't families for now * Don't decref unmoved names * Modernize GET_ANEXT * Modernize GET_AWAITABLE * Modernize ASYNC_GEN_WRAP * Modernize YIELD_VALUE * Modernize POP_EXCEPT (in more than one way) * Modernize PREP_RERAISE_STAR * Modernize LOAD_ASSERTION_ERROR * Modernize LOAD_BUILD_CLASS * Modernize STORE_NAME * Modernize LOAD_NAME * Modernize LOAD_CLASSDEREF * Modernize LOAD_DEREF * Modernize STORE_DEREF * Modernize COPY_FREE_VARS (mark it as done) * Modernize LIST_TO_TUPLE * Modernize LIST_EXTEND * Modernize SET_UPDATE * Modernize SETUP_ANNOTATIONS * Modernize DICT_UPDATE * Modernize DICT_MERGE * Modernize MAP_ADD * Modernize IS_OP * Modernize CONTAINS_OP * Modernize CHECK_EXC_MATCH * Modernize IMPORT_NAME * Modernize IMPORT_STAR * Modernize IMPORT_FROM * Modernize JUMP_FORWARD (mark it as done) * Modernize JUMP_BACKWARD (mark it as done) | 28 December 2022, 01:11:03 UTC |
3dc48da | Nikita Sobolev | 28 December 2022, 00:58:05 UTC | gh-100553: Improve accuracy of sqlite3.Row iter test (#100555) | 28 December 2022, 00:58:05 UTC |
b0ea289 | Nikita Sobolev | 27 December 2022, 16:11:39 UTC | Remove `NoneType` redefinition from `clinic.py` (#100551) | 27 December 2022, 16:11:39 UTC |
b3da698 | Pieter Eendebak | 27 December 2022, 10:55:54 UTC | gh-94603: micro optimize list.pop (gh-94604) | 27 December 2022, 10:55:54 UTC |
ce39aaf | Nikita Sobolev | 27 December 2022, 04:50:55 UTC | gh-99509: Add `__class_getitem__` to `multiprocessing.queues.Queue` (#99511) | 27 December 2022, 04:50:55 UTC |
199507b | Nikita Sobolev | 26 December 2022, 11:38:49 UTC | gh-100520: Fix `rst` markup in `configparser` docstrings (#100524) | 26 December 2022, 11:38:49 UTC |
3ccc98f | Jakub Kuczys | 26 December 2022, 11:34:18 UTC | Fix name of removed `inspect.Signature.from_builtin` method in 3.11.0a2 changelog (#100525) | 26 December 2022, 11:34:18 UTC |
ad3c99e | Guy Yagev | 26 December 2022, 06:22:53 UTC | gh-92446: Improve argparse choices docs; revert bad change to lzma docs (#94627) Based on the definition of the collections.abc classes, it is more accurate to use "sequence" instead of "container" when describing argparse choices. A previous attempt at fixing this in #92450 was mistaken; this PR reverts that change. Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> | 26 December 2022, 06:22:53 UTC |
dbc1e69 | Ilya Kulakov | 25 December 2022, 06:55:27 UTC | gh-99308: Clarify re docs for byte pattern group names (#99311) | 25 December 2022, 06:55:27 UTC |
b9aa14a | Glyph | 25 December 2022, 00:14:51 UTC | gh-100519: simplification to `eff_request_host` in cookiejar.py (#99588) `IPV4_RE` includes a `.`, and the `.find(".") == -1` included here is already testing to make sure there's no dot, so this part of the expression is tautological. Instead use more modern `in` syntax to make it clear what the check is doing here. The simplified implementation more clearly matches the wording in RFC 2965. Co-authored-by: hauntsaninja <hauntsaninja@gmail.com> | 25 December 2022, 00:14:51 UTC |
046cbc2 | Shantanu | 24 December 2022, 20:22:49 UTC | gh-100472: Fix docs claim that compileall parameters could be bytes (#100473) | 24 December 2022, 20:22:49 UTC |
efccd04 | Bart Broere | 24 December 2022, 20:17:39 UTC | [Minor PR] Quotes in documentation changed into code blocks (#99536) Minor formatting fix in documentation Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> | 24 December 2022, 20:17:39 UTC |
2e1a9ce | Shantanu | 24 December 2022, 20:09:31 UTC | gh-100428: Make float documentation more accurate (#100437) Previously, the grammar did not accept `float("10")`. Also implement mdickinson's suggestion of removing the indirection. | 24 December 2022, 20:09:31 UTC |
f5b7b19 | MonadChains | 24 December 2022, 20:07:14 UTC | gh-99535: Add test for inheritance of annotations and update documentation (#99990) | 24 December 2022, 20:07:14 UTC |
e4b43eb | Shantanu | 24 December 2022, 19:39:39 UTC | gh-100287: Fix unittest.mock.seal with AsyncMock (#100496) | 24 December 2022, 19:39:39 UTC |
46e6a28 | James Frost | 24 December 2022, 18:28:59 UTC | gh-100474: Fix handling of dirs named index.html in http.server (GH-100475) If you had a directory called index.html or index.htm within a directory, it would cause http.server to return a 404 Not Found error instead of the directory listing. This came about due to not checking that the index was a regular file. I have also added a test case for this situation. Automerge-Triggered-By: GH:merwok | 24 December 2022, 18:28:59 UTC |
00afa50 | JosephSBoyle | 24 December 2022, 15:23:24 UTC | gh-99908: Tutorial: Modernize the 'data-record class' example (#100499) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | 24 December 2022, 15:23:24 UTC |
c6dac12 | Nikita Sobolev | 24 December 2022, 14:48:43 UTC | Remove wrong comment about `repr` in `test_unicode` (#100495) | 24 December 2022, 14:48:43 UTC |
bdfb694 | Nikita Sobolev | 24 December 2022, 14:45:47 UTC | gh-100357: Convert several functions in `bltinsmodule` to AC (#100358) | 24 December 2022, 14:45:47 UTC |
0769f95 | Raymond Hettinger | 24 December 2022, 08:21:30 UTC | Misc Itertools recipe tweaks (GH-100493) | 24 December 2022, 08:21:30 UTC |
2eea959 | Kumar Aditya | 24 December 2022, 05:51:48 UTC | GH-91166: Implement zero copy writes for `SelectorSocketTransport` in asyncio (#31871) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> | 24 December 2022, 05:51:48 UTC |
c122390 | Kumar Aditya | 24 December 2022, 05:51:11 UTC | GH-91166: Implement zero copy writes for `SelectorSocketTransport` in asyncio (#31871) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> | 24 December 2022, 05:51:11 UTC |
0f64206 | Stanley | 24 December 2022, 05:21:52 UTC | gh-77771: Add enterabs example in sched (#92716) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> | 24 December 2022, 05:21:52 UTC |
3e46f9f | Shantanu | 24 December 2022, 02:30:27 UTC | gh-100268: Add is_integer method to int (#100439) This improves the lives of type annotation users of `float` - which type checkers implicitly treat as `int|float` because that is what most code actually wants. Before this change a `.is_integer()` method could not be assumed to exist on things annotated as `: float` due to the method not existing on both types. | 24 December 2022, 02:30:27 UTC |
a23cb72 | Illia Volochii | 24 December 2022, 02:04:20 UTC | gh-100454: Start running SSL tests with OpenSSL 3.1.0-beta1 (#100456) | 24 December 2022, 02:04:20 UTC |
7ca45e5 | Nikita Sobolev | 24 December 2022, 00:03:31 UTC | gh-94808: improve test coverage of number formatting (#99472) | 24 December 2022, 00:03:31 UTC |
f89de67 | Raymond Hettinger | 23 December 2022, 23:52:16 UTC | Add "strict" to dotproduct(). Add docstring. Factor-out common code. (GH-100480) | 23 December 2022, 23:52:16 UTC |
474220e | Sebastian Berg | 23 December 2022, 23:43:19 UTC | gh-99947: Ensure unreported errors are chained for SystemError during import (GH-99946) | 23 December 2022, 23:43:19 UTC |
a68e585 | Barney Gale | 23 December 2022, 22:52:23 UTC | gh-68320, gh-88302 - Allow for private `pathlib.Path` subclassing (GH-31691) Users may wish to define subclasses of `pathlib.Path` to add or modify existing methods. Before this change, attempting to instantiate a subclass raised an exception like: AttributeError: type object 'PPath' has no attribute '_flavour' Previously the `_flavour` attribute was assigned as follows: PurePath._flavour = xxx not set!! xxx PurePosixPath._flavour = _PosixFlavour() PureWindowsPath._flavour = _WindowsFlavour() This change replaces it with a `_pathmod` attribute, set as follows: PurePath._pathmod = os.path PurePosixPath._pathmod = posixpath PureWindowsPath._pathmod = ntpath Functionality from `_PosixFlavour` and `_WindowsFlavour` is moved into `PurePath` as underscored-prefixed classmethods. Flavours are removed. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Eryk Sun <eryksun@gmail.com> | 23 December 2022, 22:52:23 UTC |
5d84966 | Raymond Hettinger | 23 December 2022, 22:35:58 UTC | GH-100425: Improve accuracy of builtin sum() for float inputs (GH-100426) | 23 December 2022, 22:35:58 UTC |
1ecfd1e | Filipe Laíns | 23 December 2022, 20:19:16 UTC | bpo-40447: accept all path-like objects in compileall.compile_file (#19883) Signed-off-by: Filipe Laíns <lains@archlinux.org> Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> | 23 December 2022, 20:19:16 UTC |
745545b | Nikita Sobolev | 23 December 2022, 20:17:24 UTC | gh-99482: remove `jython` compatibility parts from stdlib and tests (#99484) | 23 December 2022, 20:17:24 UTC |
c5726b7 | Carl Meyer | 23 December 2022, 19:41:37 UTC | gh-83076: 3.8x speed improvement in (Async)Mock instantiation (#100252) | 23 December 2022, 19:41:37 UTC |
a98d9ea | Dennis Sweeney | 23 December 2022, 18:15:47 UTC | gh-94155: Reduce hash collisions for code objects (#100183) * Uses a better hashing algorithm to get better dispersion and remove commutativity. * Incorporates `co_firstlineno`, `Py_SIZE(co)`, and bytecode instructions. * This is now the entire set of criteria used in `code_richcompare`, except for `_PyCode_ConstantKey` (which would incorporate the types of `co_consts` rather than just their values). | 23 December 2022, 18:15:47 UTC |
36d3583 | Ken Jin | 23 December 2022, 17:48:43 UTC | Revert "gh-100288: Specialise LOAD_ATTR_METHOD for managed dictionaries (GH-100289)" (#100468) This reverts commit c3c7848a48b74a321632202e4bdcf2f465fb1cc6. | 23 December 2022, 17:48:43 UTC |
c3c7848 | Ken Jin | 23 December 2022, 16:26:42 UTC | gh-100288: Specialise LOAD_ATTR_METHOD for managed dictionaries (GH-100289) | 23 December 2022, 16:26:42 UTC |
7fc7909 | Pieter Eendebak | 23 December 2022, 15:23:36 UTC | gh-92216: improve performance of `hasattr` for type objects (GH-99979) | 23 December 2022, 15:23:36 UTC |