summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* gh-95754: Better AttributeError on partially initialised module (#112577)Shantanu2023-12-211-0/+1
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-113174: Sync with importlib_metadata 7.0 (#113175)Jason R. Coombs2023-12-211-0/+5
| | | | | | | | | | | | | | | | | | | | | | | * 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-65701: document that freeze doesn't work with framework builds on macOS ↵Ronald Oussoren2023-12-211-0/+2
| | | | | | | | | | | (#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-87277: Don't look for X11 browsers on macOS in webbrowser (#24480)Ronald Oussoren2023-12-211-0/+3
| | | | | | | | 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-112305: Fix check-clean-src to detect frozen_modules .h files. (#113344)Gregory P. Smith2023-12-211-0/+3
| | | | | | | | | | | 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-211-0/+2
| | | | that an exception was handled (#113302)
* GH-113214: Fix SSLProto exception handling in SSL-over-SSL scenarios (#113334)Martijn Pieters2023-12-201-0/+1
| | | | | | 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-113257: Automatically generate pip SBOM metadata from wheel (#113295)Seth Michael Larson2023-12-201-1/+1
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* 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-191-0/+1
|
* gh-87264: Convert tarinfo type to stat type (GH-113230)Marat Idrisov2023-12-191-0/+1
| | | 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-191-0/+1
|
* gh-101100: Fix Sphinx warnings in `library/ast.rst` (#113289)Hugo van Kemenade2023-12-191-1/+1
| | | | 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-191-0/+2
| | | | by a NOP (#113139)
* gh-113257: Fix SBOM metadata for pip 23.3.2 (#113262)Seth Michael Larson2023-12-191-4/+4
| | | Fix SBOM metadata for pip 23.3.2
* gh-113269: IDLE - Fix test_editor hang (macOS) (#113271)Terry Jan Reedy2023-12-191-0/+1
| | | | Hangs on installed 3.13.0a2 on macOS Catalina. Behavior on installed 3.12.1 and 3.11.7 is unknown.
* gh-102362: Fix macOS version number in result of sysconfig.get_platform() ↵Ronald Oussoren2023-12-181-0/+3
| | | | | | | | | | | (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-181-0/+4
| | | | | | | (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-181-0/+3
| | | | reading all data (GH-113200)
* gh-113246: Updated bundled pip to 23.3.2 (gh-113249)Stéphane Bidoul2023-12-182-5/+6
| | | Updated bundled pip to 23.3.2
* gh-113117: Support posix_spawn in subprocess.Popen with close_fds=True (#113118)Jakub Kulík2023-12-171-0/+4
| | | | | | | | 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>
* gh-113149: Improve error message when JSON has trailing comma (GH-113227)Carson Radtke2023-12-171-0/+2
|
* gh-113119 fix environment handling in subprocess.Popen when posix_spawn is ↵Jakub Kulík2023-12-171-0/+2
| | | | | | | used (#113120) * Allow posix_spawn to inherit environment form parent environ variable. With this change, posix_spawn call can behave similarly to execv with regards to environments when used in subprocess functions.
* gh-113202: Add a strict option to itertools.batched() (gh-113203)Raymond Hettinger2023-12-161-0/+1
|
* gh-67790: Support basic formatting for Fraction (#111320)Mark Dickinson2023-12-161-0/+2
| | | | | | | | | | | PR #100161 added fancy float-style formatting for the Fraction type, but left us in a state where basic formatting for fractions (alignment, fill, minimum width, thousands separators) still wasn't supported. This PR adds that support. --------- Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-110746: Improve markup in ``tkinter.ttk.rst`` (#111236)Akshat Khandelwal2023-12-151-0/+1
| | | | | | | | | | | | * gh-110746: Improve markup in tkinter.ttk.rst * gh-110746: Improve markup in tkinter.ttk.rst * 📜🤖 Added by blurb_it. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() ↵Victor Stinner2023-12-151-0/+8
| | | | | | | | | | (#111116) Detect email address parsing errors and return empty tuple to indicate the parsing error (old API). Add an optional 'strict' parameter to getaddresses() and parseaddr() functions. Patch by Thomas Dwyer. Co-Authored-By: Thomas Dwyer <github@tomd.tel>
* gh-113009: Fix multiprocessing Process.terminate() on Windows (#113128)Victor Stinner2023-12-151-0/+5
| | | | | | On Windows, Process.terminate() no longer sets the returncode attribute to always call WaitForSingleObject() in Process.wait(). Previously, sometimes the process was still running after TerminateProcess() even if GetExitCodeProcess() is not STILL_ACTIVE.
* gh-61648: Detect line numbers of properties in doctests (GH-113161)Serhiy Storchaka2023-12-151-0/+1
|
* gh-112716: Fix SystemError when __builtins__ is not a dict (GH-112770)Serhiy Storchaka2023-12-141-0/+2
| | | | | | It was raised in two cases: * in the import statement when looking up __import__ * in pickling some builtin type when looking up built-ins iter, getattr, etc.
* gh-112730: Update docs for colour env vars (#112837)Hugo van Kemenade2023-12-141-0/+3
|
* gh-59616: Support os.chmod(follow_symlinks=True) and os.lchmod() on Windows ↵Serhiy Storchaka2023-12-141-0/+3
| | | | (GH-113049)
* gh-111049: Fix crash during garbage collection of the BytesIO buffer object ↵Serhiy Storchaka2023-12-141-0/+2
| | | | (GH-111221)
* gh-86179: Implement realpath() on Windows for getpath.py calculations ↵Steve Dower2023-12-131-0/+1
| | | | (GH-113033)
* bpo-40648: Test modes that file can get with chmod() on Windows (GH-20130)Pavol Babinčák‏2023-12-131-0/+1
| | | | | Order of tests matter second part makes testing file writable and possible to remove again.
* gh-110190: Fix ctypes structs with array on PPCLE64 (GH-112959)Diego Russo2023-12-131-0/+1
| | | | | Fix the same issue of PR #112604 on PPC64LE platform Refactor tests to make easier to add more platfroms if needed.
* gh-111650: Ensure pyconfig.h includes Py_GIL_DISABLED on Windows (GH-112778)Steve Dower2023-12-131-0/+3
|
* gh-112962: in dis module, put cache information in the Instruction instead ↵Irit Katriel2023-12-131-0/+3
| | | | of creating fake Instructions to represent it (#113016)
* gh-101100: Fix Sphinx warning in references with asterisks (#113029)Hugo van Kemenade2023-12-135-10/+10
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-101336: Add keep_alive keyword arg for asyncio create_server() (#112485)beavailable2023-12-131-0/+1
|
* gh-112622: Pass name to loop create_task method (#112623)Jamie2023-12-131-0/+2
| | | This affects task creation through either `asyncio.create_task()` or `TaskGroup.create_task()` -- the redundant call to `task.set_name()` is skipped. We still call `set_name()` when a task factory is involved, because the task factory call signature (unfortunately) doesn't take a `name` argument.
* gh-112989: asyncio: Reduce overhead to connect sockets with ↵J. Nick Koston2023-12-131-0/+1
| | | | | | SelectorEventLoop (#112991) _ensure_fd_no_transport had a KeyError in the success path
* gh-112320: Implement on-trace confidence tracking for branches (#112321)Guido van Rossum2023-12-121-0/+4
| | | We track the confidence as a scaled int.
* GH-108866: Guarantee forward progress in executors. (GH-113006)Mark Shannon2023-12-121-0/+3
|
* gh-112970: Detect and use closefrom() when available (#112969)Sam James2023-12-121-0/+1
| | | | | | | | | | | glibc-2.34 implements closefrom(3) using the same semantics as on BSD. Check for closefrom() in configure and use the check result in fileutils.c, rather than hardcoding a FreeBSD check. Some implementations of closefrom() return an int. Explicitly discard the return value by casting it to void, to avoid future compiler warnings. Signed-off-by: Sam James <sam@gentoo.org>
* gh-87286: Add a number of LOG_* constants to syslog (#24432)Ronald Oussoren2023-12-121-0/+3
| | | | | | | | | | | | | | | | | * bpo-43120: Add a number of LOG_* constants to syslog This adds a number of syslog facilities to the syslogmodule.c. These values are available on macOS. * Switch contant documentation to the data directive This fixes a CI warning and matches the pattern used in the documentation for ``os``. * Update Doc/library/syslog.rst Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-71383: Update Tcl/Tk version in Windows to our patched build containing a ↵Steve Dower2023-12-111-0/+2
| | | | targeted upstream fix (GH-112973)
* GH-83162: Rename re.error for better clarity. (#101677)achhina2023-12-111-0/+3
| | | | | | | | | Renamed re.error for clarity, and kept re.error for backward compatibility. Updated idlelib files at TJR's request. --------- Co-authored-by: Matthias Bussonnier <mbussonnier@ucmerced.edu> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-90350: Optimize builtin functions min() and max() (GH-30286)colorfulappl2023-12-111-0/+1
| | | | Builtin functions min() and max() now use METH_FASTCALL
* gh-94606: Fix error when message with Unicode surrogate not surrogateescaped ↵Sidney Markowitz2023-12-111-0/+3
| | | | | string (GH-94641) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>