2024-04-08 14:49:34 by Adam Ciarcinski | Files touched by this commit (6) | |
Log message:
python311 py311-html-docs: updated to 3.11.9
Python 3.11.9 final
Release date: 2024-04-02
Security
gh-115398: Allow controlling Expat >=2.6.0 reparse deferral (CVE-2023-52425) \
by adding five new methods:
xml.etree.ElementTree.XMLParser.flush()
xml.etree.ElementTree.XMLPullParser.flush()
xml.parsers.expat.xmlparser.GetReparseDeferralEnabled()
xml.parsers.expat.xmlparser.SetReparseDeferralEnabled()
xml.sax.expatreader.ExpatParser.flush()
gh-115399: Update bundled libexpat to 2.6.0
gh-115243: Fix possible crashes in collections.deque.index() when the deque is \
concurrently modified.
gh-114572: ssl.SSLContext.cert_store_stats() and ssl.SSLContext.get_ca_certs() \
now correctly lock access to the certificate store, when the ssl.SSLContext is \
shared across multiple threads.
Core and Builtins
gh-116296: Fix possible refleak in object.__reduce__() internal error handling.
gh-116034: Fix location of the error on a failed assertion.
gh-115823: Properly calculate error ranges in the parser when raising \
SyntaxError exceptions caused by invalid byte sequences. Patch by Pablo Galindo
gh-112087: For an empty reverse iterator for list will be reduced to reversed(). \
Patch by Donghee Na.
gh-115011: Setters for members with an unsigned integer type now support the \
same range of valid values for objects that has a __index__() method as for int.
gh-96497: Fix incorrect resolution of mangled class variables used in assignment \
expressions in comprehensions.
Library
gh-117310: Fixed an unlikely early & extra Py_DECREF triggered crash in ssl \
when creating a new _ssl._SSLContext if CPython was built implausibly such that \
the default cipher list is empty or the SSL library it was linked against \
reports a failure from its C SSL_CTX_set_cipher_list() API.
gh-117178: Fix regression in lazy loading of self-referential modules, \
introduced in gh-114781.
gh-117084: Fix zipfile extraction for directory entries with the name containing \
backslashes on Windows.
gh-117110: Fix a bug that prevents subclasses of typing.Any to be instantiated \
with arguments. Patch by Chris Fu.
gh-90872: On Windows, subprocess.Popen.wait() no longer calls \
WaitForSingleObject() with a negative timeout: pass 0 ms if the timeout is \
negative. Patch by Victor Stinner.
gh-116957: configparser: Don’t leave ConfigParser values in an invalid state \
(stored as a list instead of a str) after an earlier read raised \
DuplicateSectionError or DuplicateOptionError.
gh-90095: Ignore empty lines and comments in .pdbrc
gh-116764: Restore support of None and other false values in urllib.parse \
functions parse_qs() and parse_qsl(). Also, they now raise a TypeError for \
non-zero integers and non-empty sequences.
gh-116811: In PathFinder.invalidate_caches, delegate to \
MetadataPathFinder.invalidate_caches.
gh-116600: Fix repr() for global Flag members.
gh-116484: Change automatically generated tkinter.Checkbutton widget names to \
avoid collisions with automatically generated tkinter.ttk.Checkbutton widget \
names within the same parent widget.
gh-116401: Fix blocking os.fwalk() and shutil.rmtree() on opening named pipe.
gh-116143: Fix a race in pydoc _start_server, eliminating a window in which \
_start_server can return a thread that is “serving” but without a docserver \
set.
gh-116325: typing: raise SyntaxError instead of AttributeError on forward \
references as empty strings.
gh-90535: Fix support of interval values > 1 in \
logging.TimedRotatingFileHandler for when='MIDNIGHT' and when='Wx'.
gh-115978: Disable preadv(), readv(), pwritev(), and writev() on WASI.
Under wasmtime for WASI 0.2, these functions don’t pass test_posix \
(https://github.com/bytecodealliance/wasmtime/issues/7830).
gh-88352: Fix the computation of the next rollover time in the \
logging.TimedRotatingFileHandler handler. computeRollover() now always returns a \
timestamp larger than the specified time and works correctly during the DST \
change. doRollover() no longer overwrite the already rolled over file, saving \
from data loss when run at midnight or during repeated time at the DST change.
gh-87115: Set __main__.__spec__ to None when running a script with pdb
gh-76511: Fix UnicodeEncodeError in email.Message.as_string() that results when \
a message that claims to be in the ascii character set actually has non-ascii \
characters. Non-ascii characters are now replaced with the U+FFFD replacement \
character, like in the replace error handler.
gh-75988: Fixed unittest.mock.create_autospec() to pass the call through to the \
wrapped object to return the real result.
gh-115881: Fix issue where ast.parse() would incorrectly flag conditional \
context managers (such as with (x() if y else z()): ...) as invalid syntax if \
feature_version=(3, 8) was passed. This reverts changes to the grammar made as \
part of gh-94949.
gh-115886: Fix silent truncation of the name with an embedded null character in \
multiprocessing.shared_memory.SharedMemory.
gh-115809: Improve algorithm for computing which rolled-over log files to delete \
in logging.TimedRotatingFileHandler. It is now reliable for handlers without \
namer and with arbitrary deterministic namer that leaves the datetime part in \
the file name unmodified.
gh-74668: urllib.parse functions parse_qs() and parse_qsl() now support bytes \
arguments containing raw and percent-encoded non-ASCII data.
gh-67044: csv.writer() now always quotes or escapes '\r' and '\n', regardless of \
lineterminator value.
gh-115712: csv.writer() now quotes empty fields if delimiter is a space and \
skipinitialspace is true and raises exception if quoting is not possible.
gh-115618: Fix improper decreasing the reference count for None argument in \
property methods getter(), setter() and deleter().
gh-115570: A DeprecationWarning is no longer omitted on access to the __doc__ \
attributes of the deprecated typing.io and typing.re pseudo-modules.
gh-112006: Fix inspect.unwrap() for types with the __wrapper__ data descriptor.
gh-101293: Support callables with the __call__() method and types with __new__() \
and __init__() methods set to class methods, static methods, bound methods, \
partial functions, and other types of methods and descriptors in \
inspect.Signature.from_callable().
gh-115392: Fix a bug in doctest where incorrect line numbers would be reported \
for decorated functions.
gh-114563: Fix several format() bugs when using the C implementation of Decimal: \
* memory leak in some rare cases when using the z format option (coerce negative \
0) * incorrect output when applying the z format option to type F (fixed-point \
with capital NAN / INF) * incorrect output when applying the # format option \
(alternate form)
gh-115197: urllib.request no longer resolves the hostname before checking it \
against the system’s proxy bypass list on macOS and Windows.
gh-115198: Fix support of Docutils >= 0.19 in distutils.
gh-115165: Most exceptions are now ignored when attempting to set the \
__orig_class__ attribute on objects returned when calling typing generic aliases \
(including generic aliases created using typing.Annotated). Previously only \
AttributeError was ignored. Patch by Dave Shawley.
gh-115133: Fix tests for XMLPullParser with Expat 2.6.0.
gh-115059: io.BufferedRandom.read1() now flushes the underlying write buffer.
gh-79382: Trailing ** no longer allows to match files and non-existing paths in \
recursive glob().
gh-114763: Protect modules loaded with importlib.util.LazyLoader from race \
conditions when multiple threads try to access attributes before the loading is \
complete.
gh-97959: Fix rendering class methods, bound methods, method and function \
aliases in pydoc. Class methods no longer have “method of builtins.type \
instance” note. Corresponding notes are now added for class and unbound \
methods. Method and function aliases now have references to the module or the \
class where the origin was defined if it differs from the current. Bound methods \
are now listed in the static methods section. Methods of builtin classes are now \
supported as well as methods of Python classes.
gh-112281: Allow creating union of types for typing.Annotated with unhashable \
metadata.
gh-111775: Fix importlib.resources.simple.ResourceHandle.open() for text mode, \
added missed stream argument.
gh-90095: Make .pdbrc and -c work with any valid pdb commands.
gh-107155: Fix incorrect output of help(x) where x is a lambda function, which \
has an __annotations__ dictionary attribute with a "return" key.
gh-105866: Fixed _get_slots bug which caused error when defining dataclasses \
with slots and a weakref_slot.
gh-60346: Fix ArgumentParser inconsistent with parse_known_args.
gh-100985: Update HTTPSConnection to consistently wrap IPv6 Addresses when using \
a proxy.
gh-100884: email: fix misfolding of comma in address-lists over multiple lines \
in combination with unicode encoding.
gh-95782: Fix io.BufferedReader.tell(), io.BufferedReader.seek(), \
_pyio.BufferedReader.tell(), io.BufferedRandom.tell(), io.BufferedRandom.seek() \
and _pyio.BufferedRandom.tell() being able to return negative offsets.
gh-96310: Fix a traceback in argparse when all options in a mutually exclusive \
group are suppressed.
gh-93205: Fixed a bug in logging.handlers.TimedRotatingFileHandler where \
multiple rotating handler instances pointing to files with the same name but \
different extensions would conflict and not delete the correct files.
bpo-44865: Add missing call to localization function in argparse.
bpo-43952: Fix multiprocessing.connection.Listener.accept() to accept empty \
bytes as authkey. Not accepting empty bytes as key causes it to hang \
indefinitely.
bpo-42125: linecache: get module name from __spec__ if available. This allows \
getting source code for the __main__ module when a custom loader is used.
gh-66543: Make mimetypes.guess_type() properly parsing of URLs with only a host \
name, URLs containing fragment or query, and filenames with only a UNC \
sharepoint on Windows. Based on patch by Dong-hee Na.
bpo-33775: Add ‘default’ and ‘version’ help text for localization in \
argparse.
Documentation
gh-115399: Document CVE-2023-52425 of Expat <2.6.0 under “XML \
vulnerabilities”.
gh-115233: Fix an example for LoggerAdapter in the Logging Cookbook.
Tests
gh-83434: Disable JUnit XML output (--junit-xml=FILE command line option) in \
regrtest when hunting for reference leaks (-R option). Patch by Victor Stinner.
gh-117187: Fix XML tests for vanilla Expat <2.6.0.
gh-115979: Update test_importlib so that it passes under WASI SDK 21.
gh-116307: Added import helper isolated_modules as CleanImport does not remove \
modules imported during the context.
gh-115720: Leak tests (-R, --huntrleaks) now show a summary of the number of \
leaks found in each iteration.
gh-115122: Add --bisect option to regrtest test runner: run failed tests with \
test.bisect_cmd to identify failing tests. Patch by Victor Stinner.
gh-115596: Fix ProgramPriorityTests in test_os permanently changing the process \
priority.
gh-115198: Fix test_check_metadata_deprecate in distutils tests with a newer \
Docutils.
Build
gh-116313: Get WASI builds to work under wasmtime 18 w/ WASI 0.2/preview2 primitives.
gh-115167: Avoid vendoring vcruntime140_threads.dll when building with Visual \
Studio 2022 version 17.8.
Windows
gh-116773: Fix instances of <_overlapped.Overlapped object at 0xXXX> still \
has pending operation at deallocation, the process may crash.
gh-91227: Fix the asyncio ProactorEventLoop implementation so that sending a \
datagram to an address that is not listening does not prevent receiving any more \
datagrams.
gh-115554: The installer now has more strict rules about updating the Python \
Launcher for Windows. In general, most users only have a single launcher \
installed and will see no difference. When multiple launchers have been \
installed, the option to install the launcher is disabled until all but one have \
been removed. Downgrading the launcher (which was never allowed) is now more \
obviously blocked.
gh-115543: Python Launcher for Windows can now detect Python 3.13 when installed \
from the Microsoft Store, and will install Python 3.12 by default when \
PYLAUNCHER_ALLOW_INSTALL is set.
gh-115009: Update Windows installer to use SQLite 3.45.1.
IDLE
gh-88516: On macOS show a proxy icon in the title bar of editor windows to match \
platform behaviour.
Tools/Demos
gh-113516: Don’t set LDSHARED when building for WASI.
C API
gh-117021: Fix integer overflow in PyLong_AsPid() on non-Windows 64-bit platforms.
|
2024-04-02 01:36:31 by Charlotte Koch | Files touched by this commit (1) |
Log message:
lang/python311: Add DragonFly support
|
2024-02-07 09:02:11 by Adam Ciarcinski | Files touched by this commit (6) | |
Log message:
python311 py311-html-docs: updated to 3.11.8
Python 3.11.8 final
Security
gh-113659: Skip .pth files with names starting with a dot or hidden file attribute.
Core and Builtins
gh-114887: Changed socket type validation in create_datagram_endpoint() to \
accept all non-stream sockets. This fixes a regression in compatibility with raw \
sockets.
gh-114388: Fix a RuntimeWarning emitted when assign an integer-like value that \
is not an instance of int to an attribute that corresponds to a C struct member \
of type T_UINT and T_ULONG. Fix a double RuntimeWarning emitted when assign a \
negative integer value to an attribute that corresponds to a C struct member of \
type T_UINT.
gh-89811: Check for a valid tp_version_tag before performing bytecode \
specializations that rely on this value being usable.
gh-113602: Fix an error that was causing the parser to try to overwrite existing \
errors and crashing in the process. Patch by Pablo Galindo
gh-113566: Fix a 3.11-specific crash when the repr of a Future is requested \
after the module has already been garbage-collected.
gh-106905: Use per AST-parser state rather than global state to track recursion \
depth within the AST parser to prevent potential race condition due to \
simultaneous parsing.
The issue primarily showed up in 3.11 by multithreaded users of ast.parse(). In \
3.12 a change to when garbage collection can be triggered prevented the race \
condition from occurring.
gh-112716: Fix SystemError in the import statement and in __reduce__() methods \
of builtin types when __builtins__ is not a dict.
gh-105967: Workaround a bug in Apple’s macOS platform zlib library where \
zlib.crc32() and binascii.crc32() could produce incorrect results on \
multi-gigabyte inputs. Including when using zipfile on zips containing large \
data.
gh-94606: Fix UnicodeEncodeError when email.message.get_payload() reads a \
message with a Unicode surrogate character and the message content is not \
well-formed for surrogateescape encoding. Patch by Sidney Markowitz.
Library
gh-114965: Update bundled pip to 24.0
gh-114959: tarfile no longer ignores errors when trying to extract a directory \
on top of a file.
gh-109475: Fix support of explicit option value “–” in argparse (e.g. \
--option=--).
gh-110190: Fix ctypes structs with array on Windows ARM64 platform by setting \
MAX_STRUCT_SIZE to 32 in stgdict. Patch by Diego Russo
gh-113280: Fix a leak of open socket in rare cases when error occurred in \
ssl.SSLSocket creation.
gh-77749: email.policy.EmailPolicy.fold() now always encodes non-ASCII \
characters in headers if utf8 is false.
gh-114492: Make the result of termios.tcgetattr() reproducible on Alpine Linux. \
Previously it could leave a random garbage in some fields.
gh-75128: Ignore an OSError in asyncio.BaseEventLoop.create_server() when IPv6 \
is available but the interface cannot actually support it.
gh-114257: Dismiss the FileNotFound error in ctypes.util.find_library() and just \
return None on Linux.
gh-101438: Avoid reference cycle in ElementTree.iterparse. The iterator returned \
by ElementTree.iterparse may hold on to a file descriptor. The reference cycle \
prevented prompt clean-up of the file descriptor if the returned iterator was \
not exhausted.
gh-104522: OSError raised when run a subprocess now only has filename attribute \
set to cwd if the error was caused by a failed attempt to change the current \
directory.
gh-109534: Fix a reference leak in asyncio.selector_events.BaseSelectorEventLoop \
when SSL handshakes fail. Patch contributed by Jamie Phan.
gh-114077: Fix possible OverflowError in socket.socket.sendfile() when pass \
count larger than 2 GiB on 32-bit platform.
gh-114014: Fixed a bug in fractions.Fraction where an invalid string using d in \
the decimals part creates a different error compared to other invalid \
letters/characters. Patch by Jeremiah Gabriel Pascual.
gh-113951: Fix the behavior of tag_unbind() methods of tkinter.Text and \
tkinter.Canvas classes with three arguments. Previously, widget.tag_unbind(tag, \
sequence, funcid) destroyed the current binding for sequence, leaving sequence \
unbound, and deleted the funcid command. Now it removes only funcid from the \
binding for sequence, keeping other commands, and deletes the funcid command. It \
leaves sequence unbound only if funcid was the last bound command.
gh-113877: Fix tkinter method winfo_pathname() on 64-bit Windows.
gh-113781: Silence unraisable AttributeError when warnings are emitted during \
Python finalization.
gh-113594: Fix UnicodeEncodeError in email when re-fold lines that contain \
unknown-8bit encoded part followed by non-unknown-8bit encoded part.
gh-113538: In asyncio.StreamReaderProtocol.connection_made(), there is callback \
that logs an error if the task wrapping the “connected callback” fails. This \
callback would itself fail if the task was cancelled. Prevent this by checking \
whether the task was cancelled first. If so, close the transport but don’t log \
an error.
gh-85567: Fix resource warnings for unclosed files in pickle and pickletools \
command line interfaces.
gh-101225: Increase the backlog for multiprocessing.connection.Listener objects \
created by multiprocessing.manager and multiprocessing.resource_sharer to \
significantly reduce the risk of getting a connection refused error when \
creating a multiprocessing.connection.Connection to them.
gh-113543: Make sure that webbrowser.MacOSXOSAScript sends webbrowser.open audit \
event.
gh-113028: When a second reference to a string appears in the input to pickle, \
and the Python implementation is in use, we are guaranteed that a single copy \
gets pickled and a single object is shared when reloaded. Previously, in \
protocol 0, when a string contained certain characters (e.g. newline) it \
resulted in duplicate objects.
gh-113421: Fix multiprocessing logger for %(filename)s.
gh-113358: Fix rendering tracebacks for exceptions with a broken __getattr__.
gh-113214: Fix an AttributeError during asyncio SSL protocol aborts in \
SSL-over-SSL scenarios.
gh-113246: Update bundled pip to 23.3.2.
gh-113199: Make http.client.HTTPResponse.read1 and \
http.client.HTTPResponse.readline close IO after reading all data when content \
length is known. Patch by Illia Volochii.
gh-113188: Fix shutil.copymode() and shutil.copystat() on Windows. Previously \
they worked differenly if dst is a symbolic link: they modified the permission \
bits of dst itself rather than the file it points to if follow_symlinks is true \
or src is not a symbolic link, and did not modify the permission bits if \
follow_symlinks is false and src is a symbolic link.
gh-61648: Detect line numbers of properties in doctests.
gh-112559: signal.signal() and signal.getsignal() no longer call repr on \
callable handlers. asyncio.run() and asyncio.Runner.run() no longer call repr on \
the task results. Patch by Yilei Yang.
gh-110190: Fix ctypes structs with array on PPC64LE platform by setting \
MAX_STRUCT_SIZE to 64 in stgdict. Patch by Diego Russo.
gh-79429: Ignore FileNotFoundError when remove a temporary directory in the \
multiprocessing finalizer.
gh-79325: Fix an infinite recursion error in tempfile.TemporaryDirectory() \
cleanup on Windows.
gh-110190: Fix ctypes structs with array on Arm platform by setting \
MAX_STRUCT_SIZE to 32 in stgdict. Patch by Diego Russo.
gh-81194: Fix a crash in socket.if_indextoname() with specific value (UINT_MAX). \
Fix an integer overflow in socket.if_indextoname() on 64-bit non-Windows \
platforms.
gh-75666: Fix the behavior of tkinter widget’s unbind() method with two \
arguments. Previously, widget.unbind(sequence, funcid) destroyed the current \
binding for sequence, leaving sequence unbound, and deleted the funcid command. \
Now it removes only funcid from the binding for sequence, keeping other \
commands, and deletes the funcid command. It leaves sequence unbound only if \
funcid was the last bound command.
gh-110345: Show the Tcl/Tk patchlevel (rather than version) in tkinter._test().
gh-109858: Protect zipfile from “quoted-overlap” zipbomb. It now raises \
BadZipFile when try to read an entry that overlaps with other entry or central \
directory.
gh-38807: Fix race condition in trace. Instead of checking if a directory exists \
and creating it, directly call os.makedirs() with the kwarg exist_ok=True.
gh-75705: Set unixfrom envelope in mailbox.mbox and mailbox.MMDF.
gh-105102: Allow ctypes.Union to be nested in ctypes.Structure when the system \
endianness is the opposite of the classes.
gh-104282: Fix null pointer dereference in lzma._decode_filter_properties() due \
to improper handling of BCJ filters with properties of zero length. Patch by \
Radislav Chugunov.
gh-102512: When os.fork() is called from a foreign thread (aka _DummyThread), \
the type of the thread in a child process is changed to _MainThread. Also \
changed its name and daemonic status, it can be now joined.
gh-91133: Fix a bug in tempfile.TemporaryDirectory cleanup, which now no longer \
dereferences symlinks when working around file system permission errors.
bpo-43153: On Windows, tempfile.TemporaryDirectory previously masked a \
PermissionError with NotADirectoryError during directory cleanup. It now \
correctly raises PermissionError if errors are not ignored. Patch by Andrei \
Kulakov and Ken Jin.
bpo-35332: The shutil.rmtree() function now ignores errors when calling \
os.close() when ignore_errors is True, and os.close() no longer retried after \
error.
bpo-35928: io.TextIOWrapper now correctly handles the decoding buffer after \
read() and write().
bpo-26791: shutil.move() now moves a symlink into a directory when that \
directory is the target of the symlink. This provides the same behavior as the \
mv shell command. The previous behavior raised an exception. Patch by Jeffrey \
Kintscher.
bpo-36959: Fix some error messages for invalid ISO format string combinations in \
strptime() that referred to directives not contained in the format string. Patch \
by Gordon P. Hemsley.
bpo-18060: Fixed a class inheritance issue that can cause segfaults when \
deriving two or more levels of subclasses from a base class of Structure or \
Union.
Documentation
gh-110746: Improved markup for valid options/values for methods \
ttk.treeview.column and ttk.treeview.heading, and for Layouts.
gh-95649: Document that the asyncio module contains code taken from v0.16.0 of \
the uvloop project, as well as the required MIT licensing information.
Tests
gh-109980: Fix test_tarfile_vs_tar in test_shutil for macOS, where system tar \
can include more information in the archive than shutil.make_archive.
gh-112769: The tests now correctly compare zlib version when \
zlib.ZLIB_RUNTIME_VERSION contains non-integer suffixes. For example zlib-ng \
defines the version as 1.3.0.zlib-ng.
gh-105089: Fix \
test.test_zipfile.test_core.TestWithDirectory.test_create_directory_with_write \
test in AIX by doing a bitwise AND of 0xFFFF on mode , so that it will be in \
sync with zinfo.external_attr
bpo-40648: Test modes that file can get with chmod() on Windows.
Build
gh-101778: Fix build error when there’s a dangling symlink in the directory \
containing ffi.h.
gh-112305: Fixed the check-clean-src step performed on out of tree builds to \
detect errant $(srcdir)/Python/frozen_modules/*.h files and recommend \
appropriate source tree cleanup steps to get a working build again.
bpo-11102: The os.major(), os.makedev(), and os.minor() functions are now \
available on HP-UX v3.
bpo-36351: Do not set ipv6type when cross-compiling.
Windows
gh-109991: Update Windows build to use OpenSSL 3.0.13.
gh-111239: Update Windows builds to use zlib v1.3.1.
gh-100107: The py.exe launcher will no longer attempt to run the Microsoft Store \
redirector when launching a script containing a /usr/bin/env shebang
gh-114096: Process privileges that are activated for creating directory \
junctions are now restored afterwards, avoiding behaviour changes in other parts \
of the program.
gh-113009: multiprocessing: On Windows, fix a race condition in \
Process.terminate(): no longer set 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. Patch by Victor Stinner.
gh-87868: Correctly sort and remove duplicate environment variables in \
_winapi.CreateProcess().
bpo-37308: Fix mojibake in mmap.mmap when using a non-ASCII tagname argument on \
Windows.
macOS
gh-115009: Update macOS installer to use SQLite 3.45.1.
gh-109991: Update macOS installer to use OpenSSL 3.0.13.
gh-74573: Document that dbm.ndbm can silently corrupt DBM files on updates when \
exceeding undocumented platform limits, and can crash (segmentation fault) when \
reading such a corrupted file. (FB8919203)
gh-65701: The freeze tool doesn’t work with framework builds of Python. \
Document this and bail out early when running the tool with such a build.
gh-102362: Make sure the result of sysconfig.get_plaform() includes at least a \
major and minor versions, even if MACOSX_DEPLOYMENT_TARGET is set to only a \
major version during build to match the format expected by pip.
gh-110017: Disable a signal handling stress test on macOS due to a bug in macOS \
(FB13453490).
gh-109981: Use /dev/fd on macOS to determine the number of open files in \
test.support.os_helper.fd_count to avoid a crash with “guarded” file \
descriptors when probing for open files.
IDLE
gh-96905: In idlelib code, stop redefining built-ins ‘dict’ and ‘object’.
gh-72284: Improve the lists of features, editor key bindings, and shell key \
bingings in the IDLE doc.
gh-113903: Fix rare failure of test.test_idle, in test_configdialog.
gh-113729: Fix the “Help -> IDLE Doc” menu bug in 3.11.7 and 3.12.1.
gh-113269: Fix test_editor hang on macOS Catalina.
gh-112898: Fix processing unsaved files when quitting IDLE on macOS.
gh-103820: Revise IDLE bindings so that events from mouse button 4/5 on non-X11 \
windowing systems (i.e. Win32 and Aqua) are not mistaken for scrolling.
bpo-13586: Enter the selected text when opening the “Replace” dialog.
Tools/Demos
gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.13 and multissltests to \
use 1.1.1w, 3.0.13, 3.1.5, and 3.2.1.
gh-115015: Fix a bug in Argument Clinic that generated incorrect code for \
methods with no parameters that use the METH_METHOD | METH_FASTCALL | \
METH_KEYWORDS calling convention. Only the positional parameter count was \
checked; any keyword argument passed would be silently accepted.
|
2024-02-02 16:50:55 by Izumi Tsutsui | Files touched by this commit (1) |
Log message:
python311: kludge to appease configure error on vax where no IEEE-754.
|
2024-01-13 05:24:29 by Taylor R Campbell | Files touched by this commit (8) |
Log message:
lang/python3*: Fix cross-build by patching out broken readline crud.
Python's setup.py tries to decide whether readline is available by
running readelf on the path it thinks it can find to libreadline.so.
Since we always use a single static readline/curses choice in Pythin
(readline, not editline, with (fake-)ncurses), just patch all that
buggy detection goo away.
No new maintenance burden because this logic has been ripped out of
Python 3.12 anyway. Python 3.8 skipped for now because it doesn't
cross-build at the moment anyway -- more work needed to make that
happen (and it's not as easy as Python>=3.9 as I recall).
|
2023-12-28 14:12:24 by Dr. Thomas Orgis | Files touched by this commit (1) |
Log message:
lang/python311: fix NIS detection
This ensures the configure script finds the NIS headers just like the
Makefile did by adding include directories.
|
2023-12-11 11:23:43 by Adam Ciarcinski | Files touched by this commit (8) | |
Log message:
python311 py311-html-docs: updated to 3.11.7
Python 3.11.7 final
Core and Builtins
gh-112625: Fixes a bug where a bytearray object could be cleared while iterating \
over an argument in the bytearray.join() method that could result in reading \
memory after it was freed.
gh-112388: Fix an error that was causing the parser to try to overwrite \
tokenizer errors. Patch by pablo Galindo
gh-112387: Fix error positions for decoded strings with backwards tokenize \
errors. Patch by Pablo Galindo
gh-112266: Change docstrings of __dict__ and __weakref__.
gh-109181: Speed up Traceback object creation by lazily compute the line number. \
Patch by Pablo Galindo
gh-102388: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs read out of bounds
gh-111366: Fix an issue in the codeop that was causing SyntaxError exceptions \
raised in the presence of invalid syntax to not contain precise error messages. \
Patch by Pablo Galindo
gh-111380: Fix a bug that was causing SyntaxWarning to appear twice when parsing \
if invalid syntax is encountered later. Patch by Pablo galindo
gh-88116: Traceback location ranges involving wide unicode characters (like \
emoji and asian characters) now are properly highlighted. Patch by Batuhan \
Taskaya and Pablo Galindo.
gh-94438: Fix a regression that prevented jumping across is None and is not None \
when debugging. Patch by Savannah Ostrowski.
gh-110696: Fix incorrect error message for invalid argument unpacking. Patch by \
Pablo Galindo
gh-110237: Fix missing error checks for calls to PyList_Append in _PyEval_MatchClass.
gh-109216: Fix possible memory leak in BUILD_MAP.
Library
gh-112618: Fix a caching bug relating to typing.Annotated. Annotated[str, True] \
is no longer identical to Annotated[str, 1].
gh-112509: Fix edge cases that could cause a key to be present in both the \
__required_keys__ and __optional_keys__ attributes of a typing.TypedDict. Patch \
by Jelle Zijlstra.
gh-94722: Fix bug where comparison between instances of DocTest fails if one of \
them has None as its lineno.
gh-112105: Make readline.set_completer_delims() work with libedit
gh-111942: Fix SystemError in the TextIOWrapper constructor with non-encodable \
“errors” argument in non-debug mode.
gh-109538: Issue warning message instead of having RuntimeError be displayed \
when event loop has already been closed at StreamWriter.__del__().
gh-111942: Fix crashes in io.TextIOWrapper.reconfigure() when pass invalid \
arguments, e.g. non-string encoding.
gh-111804: Remove posix.fallocate() under WASI as the underlying \
posix_fallocate() is not available in WASI preview2.
gh-111841: Fix truncating arguments on an embedded null character in os.putenv() \
and os.unsetenv() on Windows.
gh-111541: Fix doctest for SyntaxError not-builtin subclasses.
gh-110894: Call loop exception handler for exceptions in client_connected_cb of \
asyncio.start_server() so that applications can handle it. Patch by Kumar \
Aditya.
gh-111531: Fix reference leaks in bind_class() and bind_all() methods of tkinter \
widgets.
gh-111356: Added io.text_encoding(), io.DEFAULT_BUFFER_SIZE, and \
io.IncrementalNewlineDecoder to io.__all__.
gh-68166: Remove mention of not supported “vsapi” element type in \
tkinter.ttk.Style.element_create(). Add tests for element_create() and other \
ttk.Style methods. Add examples for element_create() in the documentation.
gh-111251: Fix _blake2 not checking for errors when initializing.
gh-111174: Fix crash in io.BytesIO.getbuffer() called repeatedly for empty BytesIO.
gh-111187: Postpone removal version for locale.getdefaultlocale() to Python 3.15.
gh-111159: Fix doctest output comparison for exceptions with notes.
gh-110910: Fix invalid state handling in asyncio.TaskGroup and asyncio.Timeout. \
They now raise proper RuntimeError if they are improperly used and are left in \
consistent state after this.
gh-111092: Make turtledemo run without default root enabled.
gh-110590: Fix a bug in _sre.compile() where TypeError would be overwritten by \
OverflowError when the code argument was a list of non-ints.
gh-65052: Prevent pdb from crashing when trying to display undisplayable objects
gh-110519: Deprecation warning about non-integer number in gettext now alwais \
refers to the line in the user code where gettext function or method is used. \
Previously it could refer to a line in gettext code.
gh-110378: contextmanager() and asynccontextmanager() context managers now close \
an invalid underlying generator object that yields more then one value.
gh-110365: Fix termios.tcsetattr() bug that was overwritting existing errors \
during parsing integers from term list.
gh-110196: Add __reduce__ method to IPv6Address in order to keep scope_id
gh-109747: Improve errors for unsupported look-behind patterns. Now re.error is \
raised instead of OverflowError or RuntimeError for too large width of \
look-behind pattern.
gh-109786: Fix possible reference leaks and crash when re-enter the __next__() \
method of itertools.pairwise.
gh-108791: Improved error handling in pdb command line interface, making it \
produce more concise error messages.
gh-73561: Omit the interface scope from an IPv6 address when used as Host header \
by http.client.
gh-86826: zipinfo now supports the full range of values in the TZ string \
determined by RFC 8536 and detects all invalid formats. Both Python and C \
implementations now raise exceptions of the same type on invalid data.
bpo-41422: Fixed memory leaks of pickle.Pickler and pickle.Unpickler involving \
cyclic references via the internal memo mapping.
bpo-40262: The ssl.SSLSocket.recv_into() method no longer requires the buffer \
argument to implement __len__ and supports buffers with arbitrary item size.
bpo-35191: Fix unexpected integer truncation in socket.setblocking() which \
caused it to interpret multiples of 2**32 as False.
Documentation
gh-108826: dis module command-line interface is now mentioned in documentation.
Tests
gh-110367: Make regrtest --verbose3 option compatible with --huntrleaks -jN \
options. The ./python -m test -j1 -R 3:3 --verbose3 command now works as \
expected. Patch by Victor Stinner.
gh-111309: distutils tests can now be run via unittest.
gh-111165: Remove no longer used functions run_unittest() and run_doctest() and \
class BasicTestRunner from the test.support module.
gh-110932: Fix regrtest if the SOURCE_DATE_EPOCH environment variable is \
defined: use the variable value as the random seed. Patch by Victor Stinner.
gh-110995: test_gdb: Fix detection of gdb built without Python scripting \
support. Patch by Victor Stinner.
gh-110918: Test case matching patterns specified by options --match, --ignore, \
--matchfile and --ignorefile are now tested in the order of specification, and \
the last match determines whether the test case be run or ignored.
gh-110647: Fix test_stress_modifying_handlers() of test_signal. Patch by Victor \
Stinner.
gh-103053: Fix test_tools.test_freeze on FreeBSD: run “make distclean” \
instead of “make clean” in the copied source directory to remove also the \
“python” program. Patch by Victor Stinner.
gh-110167: Fix a deadlock in test_socket when server fails with a timeout but \
the client is still running in its thread. Don’t hold a lock to call cleanup \
functions in doCleanups(). One of the cleanup function waits until the client \
completes, whereas the client could deadlock if it called addCleanup() in such \
situation. Patch by Victor Stinner.
gh-110388: Add tests for tty.
gh-81002: Add tests for termios.
gh-110267: Add tests for pickling and copying PyStructSequence objects. Patched \
by Xuehai Pan.
gh-109974: Fix race conditions in test_threading lock tests. Wait until a \
condition is met rather than using time.sleep() with a hardcoded number of \
seconds. Patch by Victor Stinner.
gh-109972: Split test_gdb.py file into a test_gdb package made of multiple \
tests, so tests can now be run in parallel. Patch by Victor Stinner.
gh-104736: Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex: \
Fedora 38). Search patterns in gdb “bt” command output to detect when gdb \
fails to retrieve the traceback. For example, skip a test if Backtrace stopped: \
frame did not save the PC is found. Patch by Victor Stinner.
gh-108927: Fixed order dependence in running tests in the same process when a \
test that has submodules (e.g. test_importlib) follows a test that imports its \
submodule (e.g. test_importlib.util) and precedes a test (e.g. test_unittest or \
test_compileall) that uses that submodule.
Build
gh-103053: “make check-clean-src” now also checks if the “python” \
program is found in the source directory: fail with an error if it does exist. \
Patch by Victor Stinner.
gh-109191: Fix compile error when building with recent versions of libedit.
Windows
gh-110913: WindowsConsoleIO now correctly chunks large buffers without splitting \
up UTF-8 sequences.
gh-110437: Allows overriding the source of VC redistributables so that releases \
can be guaranteed to never downgrade between updates.
gh-109286: Update Windows installer to use SQLite 3.43.1.
macOS
gh-110950: Update macOS installer to include an upstream Tcl/Tk fix for the \
Secure coding is not enabled for restorable state! warning encountered in \
Tkinter on macOS 14 Sonoma.
gh-111015: Ensure that IDLE.app and Python Launcher.app are installed with \
appropriate permissions on macOS builds.
gh-109286: Update macOS installer to use SQLite 3.43.1.
gh-71383: Update macOS installer to include an upstream Tcl/Tk fix for the \
ttk::ThemeChanged error encountered in Tkinter.
gh-92603: Update macOS installer to include a fix accepted by upstream Tcl/Tk \
for a crash encountered after the first tkinter.Tk() instance is destroyed.
gh-99834: Update macOS installer to Tcl/Tk 8.6.13.
IDLE
bpo-35668: Add docstrings to the IDLE debugger module. Fix two bugs: initialize \
Idb.botframe (should be in Bdb); in Idb.in_rpc_code, check whether prev_frame is \
None before trying to use it. Greatly expand test_debugger.
C API
gh-112438: Fix support of format units “es”, “et”, “es#”, and \
“et#” in nested tuples in PyArg_ParseTuple()-like functions.
gh-109521: PyImport_GetImporter() now sets RuntimeError if it fails to get \
sys.path_hooks or sys.path_importer_cache or they are not list and dict \
correspondingly. Previously it could return NULL without setting error in \
obscure cases, crash or raise SystemError if these attributes have wrong type.
|
2023-11-29 12:02:41 by Jonathan Perkin | Files touched by this commit (6) |
Log message:
python: Exclude dependencies for build.
When python bl3 files are included with PYTHON_FOR_BUILD_ONLY=yes, their
DEPMETHOD is set to "build", in which case we do not want to include
indirect dependencies as they will then be tagged as "build" also. Fixes
potential runtime issues exposed by indirect dependency checks.
|
2023-11-23 13:43:35 by Jonathan Perkin | Files touched by this commit (3) |
Log message:
python*: Remove -luuid hack on SunOS.
This ends up leaking into the shipped python-config, which wouldn't normally
be a problem, but broken build systems such as waf end up linking against
libraries that are not buildlinked, resulting in missing libuuid references.
If this is still required for builtin libuuid support then that will need to
be done in a different way that doesn't end up in the exported libraries.
|
2023-11-10 17:55:32 by Nia Alarie | Files touched by this commit (6) |
Log message:
Revert previous
|