]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Mark Shannon [Thu, 16 Dec 2021 15:56:01 +0000 (15:56 +0000)]
Better randomization of stats filenames. (GH-30145)
Irit Katriel [Thu, 16 Dec 2021 15:31:08 +0000 (15:31 +0000)]
bpo-22047: [argparse] deprecate nested argument groups and mutually exclusive groups (GH-30098)
Ken Jin [Thu, 16 Dec 2021 14:29:59 +0000 (22:29 +0800)]
bpo-45755: [typing] Reveal class attributes of generic in generic aliases in `dir()` (GH-29962)
Mark Shannon [Thu, 16 Dec 2021 13:40:54 +0000 (13:40 +0000)]
bpo-46072: Document --enable-stats option. (GH-30139)
Brandt Bucher [Thu, 16 Dec 2021 11:08:20 +0000 (03:08 -0800)]
bpo-45829: Check `__getitem__`'s version for overflow before specializing (GH-30129)
* Check __getitem__'s version for overflow.
* Use SPEC_FAIL_OUT_OF_VERSIONS instead
Vivek Vashist [Thu, 16 Dec 2021 10:40:12 +0000 (21:10 +1030)]
Fix the output of built-in iter() function example in Iterators (Section 9.8) of The Python Tutorial (GH-30110)
Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
Irit Katriel [Thu, 16 Dec 2021 09:12:24 +0000 (09:12 +0000)]
bpo-28816: [doc] clarify that zipimport invokes importers only for python files (GH-30060)
AN Long [Wed, 15 Dec 2021 16:35:21 +0000 (00:35 +0800)]
Remove spaces in empty lines (GH-30121)
Mark Shannon [Wed, 15 Dec 2021 15:32:32 +0000 (15:32 +0000)]
bpo-46072: Add --with-pystats configure option to simplify gathering of VM stats (GH-30116)
* Simplify specialization stats collection macros.
* Add --enable-pystats option to configure.
* Update specialization summary script to handle larger number of kinds
Mark Shannon [Wed, 15 Dec 2021 15:03:42 +0000 (15:03 +0000)]
bpo-44525: Specialize for calls to type and other builtin classes with 1 argument. (GH-29942)
Vivek Vashist [Wed, 15 Dec 2021 11:24:38 +0000 (21:54 +1030)]
Add Positional only arguments forward slash (/) to sorted() function in Built-in Functions document (GH-30113)
sorted() function is missing forward slash (/) in Built-in Functions documentation page.
Automerge-Triggered-By: GH:asvetlov
Mark Shannon [Wed, 15 Dec 2021 10:30:09 +0000 (10:30 +0000)]
bpo-46039: Split yield from in two (GH-30035)
* Split YIELD_FROM opcode into SEND and JUMP_ABSOLUTE.
* Remove YIELD_FROM opcode.
Irit Katriel [Wed, 15 Dec 2021 10:08:26 +0000 (10:08 +0000)]
bpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099)
Mark Shannon [Tue, 14 Dec 2021 23:40:44 +0000 (23:40 +0000)]
Document new call opcodes for 3.11 (GH-30107)
Mark Shannon [Tue, 14 Dec 2021 18:22:44 +0000 (18:22 +0000)]
bpo-44525: Split calls into PRECALL and CALL (GH-30011)
* Add 3 new opcodes for calls: PRECALL_METHOD, CALL_NO_KW, CALL_KW.
* Update specialization to handle new CALL opcodes.
* Specialize call to method descriptors.
* Remove old CALL opcodes: CALL_FUNCTION, CALL_METHOD, CALL_METHOD_KW, CALL_FUNCTION_KW.
Irit Katriel [Tue, 14 Dec 2021 16:48:15 +0000 (16:48 +0000)]
bpo-45292: [PEP-654] add except* (GH-29581)
Vinay Sajip [Tue, 14 Dec 2021 16:46:07 +0000 (16:46 +0000)]
bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103)
Alex Waygood [Tue, 14 Dec 2021 15:04:29 +0000 (15:04 +0000)]
bpo-46059: Clarify pattern-matching example in "control flow" docs (GH-30079)
The "Color" example in the pattern-matching section of the "control flow" documentation is not immediately runnable, leading to confusion.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Christian Heimes [Tue, 14 Dec 2021 14:42:46 +0000 (16:42 +0200)]
bpo-46023: Skip build if module is marked as DISABLED (GH-30100)
Kumar Aditya [Tue, 14 Dec 2021 13:01:13 +0000 (18:31 +0530)]
bpo-23469: Delete Wing IDE configuration files (GH-30067)
Dong-hee Na [Tue, 14 Dec 2021 01:31:41 +0000 (10:31 +0900)]
bpo-45919: Remove out of date comment (GH-30090)
Eric Snow [Tue, 14 Dec 2021 01:04:05 +0000 (18:04 -0700)]
bpo-45953: Statically initialize the small ints. (gh-30092)
The array of small PyLong objects has been statically declared. Here I also statically initialize them. Consequently they are no longer initialized dynamically during runtime init.
I've also moved them under a new sub-struct in _PyRuntimeState, in preparation for static allocation and initialization of other global objects.
https://bugs.python.org/issue45953
Vinay Sajip [Tue, 14 Dec 2021 00:53:37 +0000 (00:53 +0000)]
bpo-46063: Improve algorithm for computing which rolled-over log file… (GH-30093)
Christian Heimes [Mon, 13 Dec 2021 19:48:46 +0000 (21:48 +0200)]
bpo-45949: Pure Python freeze module for cross builds (GH-29899)
Gareth Rees [Mon, 13 Dec 2021 17:22:43 +0000 (17:22 +0000)]
bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (GH-29266)
Dong-hee Na [Mon, 13 Dec 2021 12:57:59 +0000 (21:57 +0900)]
bpo-45919: Use WinAPI GetFileType() in is_valid_fd() (GH-30082)
Paul Bryan [Mon, 13 Dec 2021 12:39:22 +0000 (04:39 -0800)]
Clarify new_event_loop return value. (GH-30078)
AN Long [Mon, 13 Dec 2021 12:14:17 +0000 (12:14 +0000)]
bpo-16594: Add allow_reuse_port on socketserver (GH-30072)
* bpo-16594: Add allow_reuse_port on socketserver
* 📜🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Irit Katriel [Mon, 13 Dec 2021 10:04:34 +0000 (10:04 +0000)]
bpo-37602: Clarify that the lib2to3 nonzero fixer changes only definitions (GH-30075)
Serhiy Storchaka [Mon, 13 Dec 2021 09:21:55 +0000 (11:21 +0200)]
bpo-27718: Fix help for the signal module (GH-30063)
Functions signal(), getsignal(), pthread_sigmask(), sigpending(),
sigwait() and valid_signals() were omitted.
If __all__ is not defined all non-builtin functions should have
correct __module__.
Andre Delfino [Sun, 12 Dec 2021 18:05:48 +0000 (15:05 -0300)]
Remove erroneous padding in dataclasses (GH-30076)
Automerge-Triggered-By: GH:ericvsmith
Pablo Galindo Salgado [Sun, 12 Dec 2021 16:53:00 +0000 (16:53 +0000)]
bpo-46054: Correct non-utf8 character tests in test_exceptions (GH-30074)
Georg Brandl [Sun, 12 Dec 2021 09:49:50 +0000 (10:49 +0100)]
bpo-45855: document that `no_block` has no use anymore in PyCapsule_Import (#29665)
Jim Crist-Harif [Sun, 12 Dec 2021 09:47:01 +0000 (03:47 -0600)]
Re-add `reuse_address` parameter to `create_server` (GH-29733)
This parameter was accidentally removed when fixing
https://bugs.python.org/issue45129, this reverts the unnecessary changes
there.
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Kumar Aditya [Sun, 12 Dec 2021 08:45:20 +0000 (14:15 +0530)]
bpo-45855: Replaced deprecated `PyImport_ImportModuleNoBlock` with PyImport_ImportModule (GH-30046)
Christian Sattler [Sun, 12 Dec 2021 08:41:12 +0000 (09:41 +0100)]
bpo-45874: Handle empty query string correctly in urllib.parse.parse_qsl (#29716)
Pablo Galindo Salgado [Sun, 12 Dec 2021 07:06:50 +0000 (07:06 +0000)]
bpo-46054: Fix parsing error when parsing non-utf8 characters in source files (GH-30068)
Pablo Galindo Salgado [Sat, 11 Dec 2021 21:28:24 +0000 (21:28 +0000)]
bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059)
Eric V. Smith [Sat, 11 Dec 2021 21:12:17 +0000 (16:12 -0500)]
bpo-44674: Use unhashability as a proxy for mutability for default dataclass __init__ arguments. (GH-29867)
`@dataclass` in 3.10 prohibits using list, dict, or set as default values. It does this to avoid the mutable default problem. This test is both too strict, and not strict enough. Too strict, because some immutable subclasses should be safe, and not strict enough, because other mutable types should be prohibited. With this change applied, `@dataclass` now uses unhashability as a proxy for mutability: if objects aren't hashable, they're assumed to be mutable.
Steve Dower [Sat, 11 Dec 2021 15:06:17 +0000 (15:06 +0000)]
bpo-46049: Fixes ._pth support on non-Windows (GH-30051)
Steve Dower [Sat, 11 Dec 2021 13:43:40 +0000 (13:43 +0000)]
bpo-46048: Fix parsing of single character lines in getpath readlines() (GH-30048)
180909 [Sat, 11 Dec 2021 00:04:21 +0000 (08:04 +0800)]
bpo-19737: Improved the documentation for globals (GH-29823)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
dependabot[bot] [Fri, 10 Dec 2021 23:46:49 +0000 (00:46 +0100)]
build(deps): bump actions/cache from 2.1.6 to 2.1.7 (GH-29875)
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.6...v2.1.7)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Carl Friedrich Bolz-Tereick [Fri, 10 Dec 2021 23:45:02 +0000 (00:45 +0100)]
bpo-37971: fix the position of decorator application (GH-30027)
The line numbers of actually calling the decorator functions of
functions and classes was wrong (as opposed to loading them, were they
have been correct previously too).
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Weipeng Hong [Fri, 10 Dec 2021 23:44:26 +0000 (07:44 +0800)]
bpo-42918: Improve build-in function compile() in mode 'single' (GH-29934)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Petr Viktorin [Fri, 10 Dec 2021 23:34:31 +0000 (00:34 +0100)]
bpo-43795: Document stable_abi.txt format and contents (GH-29956)
Also mention that removals generally aren't allowed.
Yurii Karabas [Fri, 10 Dec 2021 23:27:55 +0000 (01:27 +0200)]
bpo-46014: Add ability to use typing.Union with singledispatch (GH-30017)
Kumar Aditya [Fri, 10 Dec 2021 23:05:23 +0000 (04:35 +0530)]
bpo-27062: add `__all__` to inspect module (GH-30003)
Irit Katriel [Fri, 10 Dec 2021 23:02:10 +0000 (23:02 +0000)]
bpo-45635: refactor print_exception_recursive into smaller functions to standardize error handling (GH-30015)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Louis Sautier [Fri, 10 Dec 2021 23:00:02 +0000 (00:00 +0100)]
bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976)
Signed-off-by: Louis Sautier <sautier.louis@gmail.com>
Christian Heimes [Fri, 10 Dec 2021 18:09:09 +0000 (20:09 +0200)]
bpo-45654: No need to freeze types (GH-30028)
neonene [Fri, 10 Dec 2021 17:13:55 +0000 (02:13 +0900)]
bpo-45582: Fix test_embed failure during a PGO build on Windows (GH-30014)
This defines VPATH differently in PGO instrumentation builds, to account for a different default output directory. It also adds sys._vpath on Windows to make the value available to sysconfig so that it can be used in tests.
Christian Heimes [Fri, 10 Dec 2021 13:11:55 +0000 (15:11 +0200)]
bpo-46023: Fix makesetup handling of disabled rule (GH-30001)
Erlend Egeberg Aasland [Fri, 10 Dec 2021 11:27:38 +0000 (12:27 +0100)]
bpo-45723: Normalise configure user communication (GH-30024)
Thomas Klausner [Fri, 10 Dec 2021 09:41:47 +0000 (10:41 +0100)]
bpo-46000: Improve NetBSD curses compatibility (GH-29947)
andrei kulakov [Fri, 10 Dec 2021 09:40:06 +0000 (04:40 -0500)]
bpo-42182: stdtypes doc - update and fix links to several dunder methods (GH-27384)
Raymond Hettinger [Fri, 10 Dec 2021 02:24:50 +0000 (20:24 -0600)]
Move error test to the function that needs it. Improve error message. (GH-30008)
Gabriele N. Tornetta [Fri, 10 Dec 2021 01:52:05 +0000 (01:52 +0000)]
bpo-43931: Export Python version as API data (GH-25577)
When Python is embedded in other applications, it is not easy to determine which version of Python is being used. This change exposes the Python version as part of the API data. Tools like Austin (https://github.com/P403n1x87/austin) can benefit from this data when targeting applications like uWSGI, as the Python version can then be inferred systematically by looking at the exported symbols rather than relying on unreliable pattern matching or other hacks (like remote code execution etc...).
Automerge-Triggered-By: GH:pablogsal
Victor Stinner [Thu, 9 Dec 2021 23:02:20 +0000 (00:02 +0100)]
bpo-46016: GHA Doc job now also runs "make check" (GH-30009)
The GitHub Action documentation job now also runs "make check" to
check the documentation.
Eric Snow [Thu, 9 Dec 2021 19:59:26 +0000 (12:59 -0700)]
bpo-46008: Make runtime-global object/type lifecycle functions and state consistent. (gh-29998)
This change is strictly renames and moving code around. It helps in the following ways:
* ensures type-related init functions focus strictly on one of the three aspects (state, objects, types)
* passes in PyInterpreterState * to all those functions, simplifying work on moving types/objects/state to the interpreter
* consistent naming conventions help make what's going on more clear
* keeping API related to a type in the corresponding header file makes it more obvious where to look for it
https://bugs.python.org/issue46008
Serhiy Storchaka [Thu, 9 Dec 2021 18:44:36 +0000 (20:44 +0200)]
Remove an outdated comment. (GH-30010)
Steve Dower [Thu, 9 Dec 2021 18:31:54 +0000 (18:31 +0000)]
bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997)
Kumar Aditya [Thu, 9 Dec 2021 16:51:09 +0000 (22:21 +0530)]
bpo-45654: Freeze the runpy module and stuff it imports (GH-29903)
Irit Katriel [Thu, 9 Dec 2021 14:38:00 +0000 (14:38 +0000)]
bpo-45635: continue refactor of print_exception() to standardize error handling (GH-29996)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Kumar Aditya [Thu, 9 Dec 2021 14:24:32 +0000 (19:54 +0530)]
bpo-46016: Fix rest syntax of GH-29993 (GH-30006)
Pablo Galindo Salgado [Thu, 9 Dec 2021 13:53:44 +0000 (13:53 +0000)]
bpo-46025: Fix a crash in the atexit module for auto-unregistering functions (GH-30002)
Kumar Aditya [Thu, 9 Dec 2021 13:16:45 +0000 (18:46 +0530)]
bpo-25066: Added repr for multiprocessing.Event (GH-29749)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Bernát Gábor [Thu, 9 Dec 2021 12:56:14 +0000 (12:56 +0000)]
bpo-45391: mark UnionType as a class in documentation (GH-28757)
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Victor Stinner [Thu, 9 Dec 2021 08:58:09 +0000 (09:58 +0100)]
bpo-46007: Exclude PyUnicode_CHECK_INTERNED() from limited C API (GH-29987)
Exclude the PyUnicode_CHECK_INTERNED() macro from the limited C API,
because it uses the PyASCIIObject structure which is excluded from
the limited C API.
Automerge-Triggered-By: GH:encukou
Brandt Bucher [Thu, 9 Dec 2021 01:17:16 +0000 (17:17 -0800)]
bpo-45510: Check both types when specializing subtraction (GH-29995)
Pablo Galindo [Wed, 8 Dec 2021 23:41:16 +0000 (23:41 +0000)]
Merge remote-tracking branch 'upstream/main'
Pablo Galindo [Wed, 8 Dec 2021 23:40:52 +0000 (23:40 +0000)]
Post 3.11.0a3
David CARLIER [Wed, 8 Dec 2021 22:28:51 +0000 (22:28 +0000)]
bpo-46016: fcntl module add FreeBSD's F_DUP2FD_CLOEXEC flag support (GH-29993)
Pablo Galindo [Wed, 8 Dec 2021 22:23:08 +0000 (22:23 +0000)]
Python 3.11.0a3
Pablo Galindo [Tue, 7 Dec 2021 22:47:24 +0000 (22:47 +0000)]
Fix some false positives of documentation syntax problems
Irit Katriel [Wed, 8 Dec 2021 20:08:06 +0000 (20:08 +0000)]
bpo-45711: Remove unnecessary normalization of exc_info (GH-29922)
Steve Dower [Wed, 8 Dec 2021 19:25:58 +0000 (19:25 +0000)]
bpo-46015: Fixes calculation of sys.path in a venv on Windows (GH-29992)
Also ensures that pybuilddir.txt is written early enough in the build to be picked up by later steps.
Jacob Hayes [Wed, 8 Dec 2021 18:52:57 +0000 (13:52 -0500)]
bpo-45359: Support TopologicalSorter type subscript (GH-28714)
* Support TopologicalSorter type subscript
* 📜🤖 Added by blurb_it.
* Add TopologicalSorter to GenericAlias tests
* Update Misc/NEWS.d/next/Library/2021-10-03-22-27-35.bpo-45359.LX_uxe.rst
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
Irit Katriel [Wed, 8 Dec 2021 18:47:27 +0000 (18:47 +0000)]
bpo-45635: refactor print_exception() into smaller functions (GH-29981)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Andrew Svetlov [Wed, 8 Dec 2021 16:05:00 +0000 (18:05 +0200)]
bpo-45813: Drop redundant assertion from frame.clear() (GH-29990)
* bpo-45813: Drop redundant assertion from frame.clear()
* Move assertion to frame_dealloc()
Mark Shannon [Wed, 8 Dec 2021 12:09:26 +0000 (12:09 +0000)]
bpo-46009: Do not exhaust generator when send() method raises (GH-29986)
Rafael Fontenelle [Wed, 8 Dec 2021 10:55:39 +0000 (07:55 -0300)]
doc: Add link issue 44010 (GH-29454)
Christian Heimes [Wed, 8 Dec 2021 10:52:08 +0000 (12:52 +0200)]
bpo-45847: Don't override user overrides for CFLAGS/LIBS (GH-29967)
Ned Batchelder [Wed, 8 Dec 2021 10:42:02 +0000 (02:42 -0800)]
Fix double-space in exception message (GH-29955)
Irit Katriel [Wed, 8 Dec 2021 09:41:28 +0000 (09:41 +0000)]
bpo-40222: update doc entry with respect to the change in WITH_EXCEPT_START (GH-29975)
Raymond Hettinger [Wed, 8 Dec 2021 03:38:21 +0000 (21:38 -0600)]
bpo-20751: Match variable name to the example. (GH-29980)
Steve Dower [Wed, 8 Dec 2021 02:18:21 +0000 (02:18 +0000)]
bpo-45582: Write empty pybuilddir.txt on Windows to allow relocatable build directories (GH-29979)
Eric Snow [Wed, 8 Dec 2021 01:59:49 +0000 (18:59 -0700)]
bpo-46008: Move Py*State init into distinct functions. (gh-29977)
Previously, basic initialization of PyInterprterState happened in PyInterpreterState_New() (along with allocation and adding the new interpreter to the runtime state). This prevented us from initializing interpreter states that were allocated separately (e.g. statically or in a free list). We've addressed that here by factoring out a separate function just for initialization. We've done the same for PyThreadState. _PyRuntimeState was sorted out when we added it since _PyRuntime is statically allocated. However, here we update the existing init code to line up with the functions for PyInterpreterState and PyThreadState.
https://bugs.python.org/issue46008
Eric Snow [Wed, 8 Dec 2021 01:56:06 +0000 (18:56 -0700)]
bpo-46008: Add _PyInterpreterState_Main(). (gh-29978)
PyInterpreterState_Main() is a plain function exposed in the public C-API. For internal usage we can take the more efficient approach in this PR.
https://bugs.python.org/issue46008
Eric Snow [Wed, 8 Dec 2021 00:26:29 +0000 (17:26 -0700)]
bpo-46008: Stop calling _PyThreadState_Init() in new_threadstate(). (gh-29973)
This simplifies new_threadstate(). We also rename _PyThreadState_Init() to _PyThreadState_SetCurrent() to reflect what it actually does.
https://bugs.python.org/issue46008
Eric Snow [Tue, 7 Dec 2021 21:37:51 +0000 (14:37 -0700)]
bpo-46008: Use PyMem_RawCalloc() to allocate PyThreadState. (GH-29972)
Doing so allows us to stop assigning various fields to `NULL` and 0. It also more closely matches the behavior of a static initializer.
Automerge-Triggered-By: GH:ericsnowcurrently
Eric Snow [Tue, 7 Dec 2021 21:03:47 +0000 (14:03 -0700)]
bpo-46008: Move thread-related interpreter state into a sub-struct. (gh-29971)
This parallels _PyRuntimeState.interpreters. Doing this helps make it more clear what part of PyInterpreterState relates to its threads.
https://bugs.python.org/issue46008
Eric Snow [Tue, 7 Dec 2021 21:02:17 +0000 (14:02 -0700)]
bpo-46008: Return void from _PyEval_InitState(). (gh-29970)
This falls into the category of keep-allocation-and-initialization separate. It also allows us to use _PyEval_InitState() safely in functions that return void.
https://bugs.python.org/issue46008
Christian Heimes [Tue, 7 Dec 2021 19:56:41 +0000 (21:56 +0200)]
bpo-45847: Revert Port _ctypes partly to PY_STDLIB_MOD (GH-29747) (GH-29969)
Christian Heimes [Tue, 7 Dec 2021 18:09:53 +0000 (20:09 +0200)]
bpo-45582: Fix framework path and bootstrap build (GH-29954)
* Check NS API return values for NULL to prevent segfault in
``_bootstrap_python``.
* Set modPathInitialized to 1 so the ``decode_to_dict`` path is used.
Signed-off-by: Christian Heimes <christian@python.org>
Mark Shannon [Tue, 7 Dec 2021 18:05:48 +0000 (18:05 +0000)]
Fix leak when an exception is raised during generator creation. (GH-29960)
Irit Katriel [Tue, 7 Dec 2021 16:17:22 +0000 (16:17 +0000)]
bpo-45635: standardize error handling in traceback.c (GH-29905)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Mark Shannon [Tue, 7 Dec 2021 16:02:53 +0000 (16:02 +0000)]
bpo-45947: Place dict and values pointer at fixed (negative) offset just before GC header. (GH-29879)
* Place __dict__ immediately before GC header for plain Python objects.
* Fix up lazy dict creation logic to use managed dict pointers.
* Manage values pointer, placing them directly before managed dict pointers.
* Convert hint-based load/store attr specialization target managed dict classes.
* Specialize LOAD_METHOD for managed dict objects.
* Remove unsafe _PyObject_GC_Calloc function.
* Remove unsafe _PyObject_GC_Malloc() function.
* Add comment explaning use of Py_TPFLAGS_MANAGED_DICT.
Ken Jin [Tue, 7 Dec 2021 15:25:13 +0000 (23:25 +0800)]
bpo-35821: Fix restructuredtext code formatting in logging.rst (GH-29963)
Pablo Galindo Salgado [Tue, 7 Dec 2021 13:02:15 +0000 (13:02 +0000)]
bpo-46004: Fix error location for loops with invalid targets (GH-29959)