summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-95754: Better AttributeError on partially initialised module (#112577)Shantanu2023-12-214-2/+34
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-113174: Sync with importlib_metadata 7.0 (#113175)Jason R. Coombs2023-12-2110-144/+265
| | | | | | | | | | | | | | | | | | | | | | | * Sync with importlib_metadata 7.0.0 * Add blurb * Update docs to reflect changes. * Link datamodel docs for object.__getitem__ Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Add what's new for removed __getattr__ * Link datamodel docs for object.__getitem__ Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Add exclamation point, as that seems to be used for other classes. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-113343: Fix error check on mmap(2) (#113342)Namhyung Kim2023-12-211-1/+1
| | | | | | | | | | | | Fix error check on mmap(2) It should check MAP_FAILED instead of NULL for error. On mmap(2) man page: RETURN VALUE On success, mmap() returns a pointer to the mapped area. On error, the value MAP_FAILED (that is, (void *) -1) is returned, and errno is set to indicate the error.
* gh-113325: Remove a debugging print accidentally left in test_symtable ↵Serhiy Storchaka2023-12-211-1/+0
| | | | (GH-113368)
* gh-65701: document that freeze doesn't work with framework builds on macOS ↵Ronald Oussoren2023-12-213-0/+12
| | | | | | | | | | | (#113352) * gh-65701: document that freeze doesn't work with framework builds on macOS The framework install is inherently incompatible with freeze. Document that that freeze doesn't work with framework builds and bail out early when trying to run freeze anyway. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-110383: Improve accuracy of str.split() and str.rsplit() docstrings (#113355)Erlend E. Aasland2023-12-212-5/+9
| | | | Clarify split direction in the docstring body, instead of in the 'maxsplit' param docstring.
* gh-87277: Don't look for X11 browsers on macOS in webbrowser (#24480)Ronald Oussoren2023-12-213-1/+20
| | | | | | | | The installation of XQuartz on macOS will unconditionally set the $DISPLAY variable. The X11 server will be launched when a program tries to access the display. This results in launching the X11 server when using the webbrowser module, even though X11 browsers won't be used in practice.
* GH-111485: Delete the old generator code. (GH-113321)Mark Shannon2023-12-2118-3723/+210
|
* gh-113336: Remove the 'version' directive from Argument Clinic (#113341)Erlend E. Aasland2023-12-212-117/+0
| | | | | The 'version' directive was introduced with gh-63929 in Nov 2013. It has not been in use in the CPython code base, and the 'version' variable has never been bumped.
* Docs: update URL in Argument Clinic CLI help text (#113351)Erlend E. Aasland2023-12-211-1/+1
| | | The Argument Clinic docs was moved to the devguide earlier in 2023.
* Docs: OpenSSL wording ambiguity (#113296)Jan Brasna2023-12-211-1/+1
|
* gh-112305: Fix check-clean-src to detect frozen_modules .h files. (#113344)Gregory P. Smith2023-12-212-2/+7
| | | | | | | | | | | A typo left this check broken so many of us who do out-of-tree builds were seeing strange failures due to bad `Python/frozen_modules/*.h` files being picked up from the source tree and used at build time from different Python versions leading to errors like: `Fatal Python error: _PyImport_InitCore: failed to initialize importlib` Or similar once our build got to an "invoke the interpreter" bootstrapping step due to incorrect bytecode being embedded.
* gh-111375: Use `NULL` rather than `None` in the exception stack to indicate ↵Carey Metcalfe2023-12-216-7/+9
| | | | that an exception was handled (#113302)
* GH-113214: Fix SSLProto exception handling in SSL-over-SSL scenarios (#113334)Martijn Pieters2023-12-203-8/+21
| | | | | | When wrapped, `_SSLProtocolTransport._force_close(exc)` is called just like in the unwrapped scenario `_SelectorTransport._force_close(exc)` or `_ProactorBasePipeTransport._force_close(exc)` would be called, except here the exception needs to be passed through the `SSLProtocol._abort()` method, which didn't accept an exception object. This commit ensures that this path works, in the same way that the uvloop implementation of SSLProto passes on the exception (on which the current implementation of SSLProto is based).
* gh-113330: Fix mimalloc headers reference (#113331)Sam Gross2023-12-201-1/+1
| | | | | The `MIMALLOC_HEADERS` variable is defined in the Makefile.pre.in, not the configure script, so we should use the `$(MIMALLOC_HEADERS)` syntax instead of the `@MIMALLOC_HEADERS@` syntax.
* GH-111485: Fix DEFAULT_OUTPUT in opcode_metadata_generator.py (#113324)Guido van Rossum2023-12-201-1/+1
|
* gh-113257: Automatically generate pip SBOM metadata from wheel (#113295)Seth Michael Larson2023-12-202-11/+107
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-113255: Clarify docs for `typing.reveal_type` (#113286)Kir2023-12-202-14/+13
| | | Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
* GH-111485: Generate `TARGET` table for computed goto dispatch. (GH-113319)Mark Shannon2023-12-204-3/+58
|
* GH-111485: Generate instruction and uop metadata (GH-113287)Mark Shannon2023-12-2027-1271/+1740
|
* gh-111178: Make slot functions in typeobject.c have compatible types (GH-112752)Christopher Chavez2023-12-203-21/+36
|
* gh-112205: Support docstring for `@getter` (#113160)Donghee Na2023-12-207-61/+265
| | | | | --------- Co-authored-by: Erlend E. Aasland <erlend@python.org>
* Fix typo in datamodel docs (#113314)Rodrigo Girão Serrão2023-12-201-1/+1
| | | Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
* Fix typo in collections.abc docs example (#113310)David Greaves2023-12-201-1/+1
| | | Calling the instance reference arg for the __next__ method, "next", seems misleading as it would normally just be "self"
* add Ujan to ACKS for work on enum docs (GH-113301)Ethan Furman2023-12-201-0/+1
|
* gh-111973: Update Windows installer to use SQLite 3.44.2 (#113281)Erlend E. Aasland2023-12-194-3/+4
|
* gh-87264: Convert tarinfo type to stat type (GH-113230)Marat Idrisov2023-12-193-5/+23
| | | Co-authored-by: val-shkolnikov <val@nvsoft.net>
* gh-111973: Update macOS installer to use SQLite 3.44.2 (GH-113279)Erlend E. Aasland2023-12-192-3/+4
|
* gh-101100: Fix Sphinx warnings in `library/ast.rst` (#113289)Hugo van Kemenade2023-12-192-17/+20
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-112205: Require @getter and @setter to be methods (#113278)Erlend E. Aasland2023-12-192-0/+15
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-113054: Compiler no longer replaces a redundant jump with no line number ↵Irit Katriel2023-12-193-1/+22
| | | | by a NOP (#113139)
* gh-113234: tomllib docs: reorder conversion table & add remaining types ↵ryan-duve2023-12-191-1/+7
| | | | (GH-113236)
* gh-113208: Mention namespace packages don't require __init__.py (#113209)Unique-Usman2023-12-191-1/+2
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-113257: Fix SBOM metadata for pip 23.3.2 (#113262)Seth Michael Larson2023-12-192-5/+5
| | | Fix SBOM metadata for pip 23.3.2
* gh-113269: IDLE - Fix test_editor hang (macOS) (#113271)Terry Jan Reedy2023-12-193-1/+4
| | | | Hangs on installed 3.13.0a2 on macOS Catalina. Behavior on installed 3.12.1 and 3.11.7 is unknown.
* gh-113119: Fix the macOS framework installer build (#113268)Gregory P. Smith2023-12-191-1/+10
| | | `--enable-framework` builds were failing. we apparently do not have good CI & buildbot coverage here.
* gh-102362: Fix macOS version number in result of sysconfig.get_platform() ↵Ronald Oussoren2023-12-182-0/+8
| | | | | | | | | | | (GH-112942) Change _osx_support.get_platform_osx() to make sure that the version number in the result includes at least a major and minor version (e.g. 14.2) even if MACOSX_DEPLOYMENT_TARGET is set to just a major version (e.g. 14). This matches the versions expected by pip when selecting appropriate wheels for installation.
* gh-108269: Add CFBundleAllowMixedLocalizations to Info.plist on macOS ↵Ronald Oussoren2023-12-184-0/+10
| | | | | | | (GH-113213) Adding this key with a value of true enables detecting the users prefered language in libraries accessing system APIs for this.
* gh-113199: Make read1() and readline() of HTTPResponse close IO after ↵Illia Volochii2023-12-183-2/+21
| | | | reading all data (GH-113200)
* gh-113039: Avoid using leading dots in the include path for frozen ↵Itamar Oren2023-12-182-1/+2
| | | | getpath.py (GH-113022)
* gh-112535: Implement fallback implementation of _Py_ThreadId() (gh-113185)Donghee Na2023-12-182-1/+19
| | | | | --------- Co-authored-by: Sam Gross <colesbury@gmail.com>
* gh-108113: [docs] mention PyCF_OPTIMIZED_AST in ast Compiler Flags (#113241)dreamflow2023-12-181-0/+7
|
* GH-111485: Break up instructions with unused cache entries into component ↵Mark Shannon2023-12-185-8/+102
| | | | micro-ops (GH-113169)
* GH-111485: Test the new cases generator (GH-113252)Mark Shannon2023-12-188-88/+116
|
* gh-113246: Updated bundled pip to 23.3.2 (gh-113249)Stéphane Bidoul2023-12-185-7/+8
| | | Updated bundled pip to 23.3.2
* gh-101100: Fix Sphinx warnings in library/tarfile.rst (#113237)Hugo van Kemenade2023-12-182-12/+56
| | | Fix Sphinx warnings in library/tarfile.rst
* gh-113117: Support posix_spawn in subprocess.Popen with close_fds=True (#113118)Jakub Kulík2023-12-179-5/+91
| | | | | | | | Add support for `os.POSIX_SPAWN_CLOSEFROM` and `posix_spawn_file_actions_addclosefrom_np` and have the `subprocess` module use them when available. This means `posix_spawn` can now be used in the default `close_fds=True` situation on many platforms. Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
* Docs: Add label to grammar spec for linking from PEPs (#113235)Hugo van Kemenade2023-12-171-0/+2
|
* gh-113149: Improve error message when JSON has trailing comma (GH-113227)Carson Radtke2023-12-174-3/+28
|
* gh-112890: `unittest` Test Discovery page updated "`unittest` dropped the ↵Taylor Packard2023-12-171-2/+2
| | | | namspace packages support" (GH-113195)