Up to [cvs.NetBSD.org] / pkgsrc / lang / python312 / patches
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
python312 py312-html-docs: updated to 3.12.5 Python 3.12.5 Windows gh-122573: The Windows build of CPython now requires 3.10 or newer. Tests gh-59022: Add tests for pkgutil.extend_path(). Patch by Andreas Stocker. gh-99242: os.getloadavg() may throw OSError when running regression tests under certain conditions (e.g. chroot). This error is now caught and ignored, since reporting load average is optional. gh-121084: Fix test_typing random leaks. Clear typing ABC caches when running tests for refleaks (-R option): call _abc_caches_clear() on typing abstract classes and their subclasses. Patch by Victor Stinner. gh-121160: Add a test for readline.set_history_length(). Note that this test may fail on readline libraries. gh-121200: Fix test_expanduser_pwd2() of test_posixpath. Call getpwnam() to get pw_dir, since it can be different than getpwall() pw_dir. Patch by Victor Stinner. gh-121188: When creating the JUnit XML file, regrtest now escapes characters which are invalid in XML, such as the chr(27) control character used in ANSI escape sequences. Patch by Victor Stinner. Security gh-121957: Fixed missing audit events around interactive use of Python, now also properly firing for python -i, as well as for python -m asyncio. The event in question is cpython.run_stdin. gh-122133: Authenticate the socket connection for the socket.socketpair() fallback on platforms where AF_UNIX is not available like Windows. Patch by Gregory P. Smith <greg@krypto.org> and Seth Larson <seth@python.org>. Reported by Ellie <el@horse64.org> Library gh-122744: Bump the version of pip bundled in ensurepip to version 24.2. gh-122334: Fix crash when importing ssl after the main interpreter restarts. gh-87320: In code.InteractiveInterpreter, handle exceptions caused by calling a non-default sys.excepthook(). Before, the exception bubbled up to the caller, ending the REPL. gh-122400: Handle ValueErrors raised by os.stat() in filecmp.dircmp and filecmp.cmpfiles(). Patch by Bénédikt Tran. gh-122311: Fix some error messages in pickle. gh-121650: email headers with embedded newlines are now quoted on output. The generator will now refuse to serialize (write) headers that are unsafely folded or delimited; see verify_generated_headers. (Contributed by Bas Bloemsaat and Petr Viktorin in gh-121650.) gh-122332: Fixed segfault with asyncio.Task.get_coro() when using an eager task factory. gh-122170: Handle ValueErrors raised by os.stat() in linecache. Patch by Bénédikt Tran. gh-121723: Make logging.config.dictConfig() accept any object implementing the Queue public API. See the queue configuration section for details. Patch by Bénédikt Tran. gh-82951: Serializing objects with complex __qualname__ (such as unbound methods and nested classes) by name no longer involves serializing parent objects by value in pickle protocols < 4. gh-120930: Fixed a bug introduced by gh-92081 that added an incorrect extra blank to encoded words occurring in wrapped headers. gh-121474: Fix missing sanity check for parties arg in threading.Barrier constructor. Patch by Clinton Christian (pygeek). gh-121025: Improve the __repr__() of functools.partialmethod. Patch by Bénédikt Tran. gh-121018: Fixed issues where argparse.ArgumentParser.parse_args() did not honor exit_on_error=False. Based on patch by Ben Hsing. gh-119614: Fix truncation of strings with embedded null characters in some internal operations in tkinter. gh-120910: When reading installed files from an egg, use relative_to(walk_up=True) to honor files installed outside of the installation root. gh-101830: Accessing the tkinter object’s string representation no longer converts the underlying Tcl object to a string on Windows. gh-120811: Fix possible memory leak in contextvars.Context.run(). gh-120769: Make empty line in pdb repeats the last command even when the command is from cmdqueue. gh-120732: Fix name passing to unittest.mock.Mock object when using unittest.mock.create_autospec(). gh-120495: Fix incorrect exception handling in Tab Nanny. Patch by Wulian233. gh-120343: Fix column offset reporting for tokens that come after multiline f-strings in the tokenize module. gh-119600: Fix unittest.mock.patch() to not read attributes of the target when new_callable is set. Patch by Robert Collins. gh-120289: Fixed the use-after-free issue in cProfile by disallowing disable() and clear() in external timers. gh-114053: Fix edge-case bug where typing.get_type_hints() would produce incorrect results if type parameters in a class scope were overridden by assignments in a class scope and from __future__ import annotations semantics were enabled. Patch by Alex Waygood. gh-114053: Fix erroneous NameError when calling inspect.get_annotations() with eval_str=True` on a class that made use of PEP 695 type parameters in a module that had from __future__ import annotations at the top of the file. Patch by Alex Waygood. gh-120268: Prohibit passing None to pure-Python datetime.date.fromtimestamp() to achieve consistency with C-extension implementation. gh-120244: Fix memory leak in re.sub() when the replacement string contains backreferences. gh-120211: Fix tkinter.ttk with Tcl/Tk 9.0. gh-71587: Fix crash in C version of datetime.datetime.strptime() when called again on the restarted interpreter. gh-117983: Defer the threading import in importlib.util until lazy loading is used. gh-119698: Fix symtable.Class.get_methods() and document its behaviour. Patch by Bénédikt Tran. gh-120121: Add concurrent.futures.InvalidStateError to module’s __all__. gh-112672: Support building tkinter with Tcl 9.0. gh-65454: unittest.mock.Mock.attach_mock() no longer triggers a call to a PropertyMock being attached. gh-81936: help() and showtopic() methods now respect a configured output argument to pydoc.Helper and not use the pager in such cases. Patch by Enrico Tröger. gh-119577: The DeprecationWarning emitted when testing the truth value of an xml.etree.ElementTree.Element now describes unconditionally returning True in a future version rather than raising an exception in Python 3.14. gh-119506: Fix io.TextIOWrapper.write() method breaks internal buffer when the method is called again during flushing internal buffer. gh-119189: When using the ** operator or pow() with Fraction as the base and an exponent that is not rational, a float, or a complex, the fraction is no longer converted to a float. gh-105623: Fix performance degradation in logging.handlers.RotatingFileHandler. Patch by Craig Robson. bpo-39324: Add mime type mapping for .md <-> text/markdown IDLE gh-122482: Change About IDLE to direct users to discuss.python.org instead of the now unused idle-dev email and mailing list. gh-78889: Stop Shell freezes by blocking user access to non-method sys.stdout.shell attributes, which are all private. gh-120104: Fix padding in config and search dialog windows in IDLE. Documentation gh-121749: Fix documentation for PyModule_AddObjectRef(). gh-120012: Clarify the behaviours of multiprocessing.Queue.empty() and multiprocessing.SimpleQueue.empty() on closed queues. Patch by Bénédikt Tran. Core and Builtins gh-122208: Dictionary watchers now only deliver the PyDict_EVENT_ADDED event when the insertion is in a known good state to succeed. gh-122300: Preserve AST nodes for f-string with single-element format specifiers. Patch by Pablo Galindo gh-122029: Emit c_call events in sys.setprofile() when a PyMethodObject pointing to a PyCFunction is called. gh-122026: Fix a bug that caused the tokenizer to not correctly identify mismatched parentheses inside f-strings in some situations. Patch by Pablo Galindo gh-121657: Improve the SyntaxError message if the user tries to use yield from outside a function. gh-117482: Unexpected slot wrappers are no longer created for builtin static types in subinterpreters. gh-121439: Allow tuples of length 20 in the freelist to be reused. gh-121130: Fix f-strings with debug expressions in format specifiers. Patch by Pablo Galindo gh-120722: Correctly set the bytecode position on return instructions within lambdas. Patch by Jelle Zijlstra. gh-120384: Fix an array out of bounds crash in list_ass_subscript, which could be invoked via some specificly tailored input: including concurrent modification of a list object, where one thread assigns a slice and another clears it. gh-120380: Fix Python implementation of pickle.Pickler for bytes and bytearray objects when using protocol version 5. Patch by Bénédikt Tran. gh-93691: Fix source locations of instructions generated for the iterator of a for statement. gh-120198: Fix a crash when multiple threads read and write to the same __class__ of an object concurrently. gh-120298: Fix use-after free in list_richcompare_impl which can be invoked via some specificly tailored evil input. gh-119666: Fix a compiler crash in the case where two comprehensions in class scope both reference __class__. bpo-24766: Fix handling of doc argument to subclasses of property. Build gh-120671: Fix failing configure tests due to a missing space when appending to CFLAGS. gh-115983: Skip building test modules that must be built as shared under WASI.
python312 py312-html-docs: added version 3.12.0 Python 3.12 New syntax features: PEP 695, type parameter syntax and the type statement New grammar features: PEP 701, f-strings in the grammar Interpreter improvements: PEP 684, a unique per-interpreter GIL PEP 669, low impact monitoring Improved ‘Did you mean …’ suggestions for NameError, ImportError, and SyntaxError exceptions Python data model improvements: PEP 688, using the buffer protocol from Python Significant improvements in the standard library: The pathlib.Path class now supports subclassing The os module received several improvements for Windows support A command-line interface has been added to the sqlite3 module isinstance() checks against runtime-checkable protocols enjoy a speed up of between two and 20 times The asyncio package has had a number of performance improvements, with some benchmarks showing a 75% speed up. A command-line interface has been added to the uuid module Due to the changes in PEP 701, producing tokens via the tokenize module is up to up to 64% faster. Security improvements: Replace the builtin hashlib implementations of SHA1, SHA3, SHA2-384, SHA2-512, and MD5 with formally verified code from the HACL* project. These builtin implementations remain as fallbacks that are only used when OpenSSL does not provide them. C API improvements: PEP 697, unstable C API tier PEP 683, immortal objects CPython implementation improvements: PEP 709, comprehension inlining CPython support for the Linux perf profiler Implement stack overflow protection on supported platforms New typing features: PEP 692, using TypedDict to annotate **kwargs PEP 698, typing.override() decorator Important deprecations, removals or restrictions: PEP 623: Remove wstr from Unicode objects in Python’s C API, reducing the size of every str object by at least 8 bytes. PEP 632: Remove the distutils package. See the migration guide for advice replacing the APIs it provided. The third-party Setuptools package continues to provide distutils, if you still require it in Python 3.12 and beyond. gh-95299: Do not pre-install setuptools in virtual environments created with venv. This means that distutils, setuptools, pkg_resources, and easy_install will no longer available by default; to access these run pip install setuptools in the activated virtual environment. The asynchat, asyncore, and imp modules have been removed, along with several unittest.TestCase method aliases.