The NetBSD Project

CVS log for pkgsrc/lang/python311/Makefile

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / lang / python311

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Nov 14 22:20:31 2024 UTC (15 hours, 59 minutes ago) by wiz
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.33: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.33: +2 -2 lines
*: recursive bump for icu 76 shlib major version bump

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Nov 1 12:53:15 2024 UTC (2 weeks ago) by wiz
Branches: MAIN
Diff to: previous 1.32: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.32: +2 -2 lines
*: revbump for icu downgrade

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Nov 1 00:52:29 2024 UTC (2 weeks ago) by wiz
Branches: MAIN
Diff to: previous 1.31: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.31: +2 -1 lines
*: recursive bump for icu 76.1 shlib bump

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Sep 9 15:50:30 2024 UTC (2 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3
Diff to: previous 1.30: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.30: +1 -2 lines
python311 py311-html-docs: updated to 3.11.10

Python 3.11.10 final

Windows

gh-123418: Updated Windows build to use OpenSSL 3.0.15.
gh-119690: Fixes data type confusion in audit event raised by _winapi.CreateNamedPipe.

Security

gh-123678: Upgrade libexpat to 2.6.3

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 <[email protected]> and Seth Larson <[email protected]>. Reported by Ellie <[email protected]>

gh-121285: Remove backtracking from tarfile header parsing for hdrcharset, PAX, and GNU sparse headers.

gh-118486: os.mkdir() on Windows now accepts mode of 0o700 to restrict the new directory to the current user. This fixes CVE-2024-4030 affecting tempfile.mkdtemp() in scenarios where the base temporary directory is more permissive than the default.

gh-116741: Update bundled libexpat to 2.6.2

Library

gh-123270: Applied a more surgical fix for malformed payloads in zipfile.Path causing infinite loops (gh-122905) without breaking contents using legitimate characters.

gh-123067: Fix quadratic complexity in parsing "-quoted cookie values with backslashes by http.cookies.

gh-122905: zipfile.Path objects now sanitize names from the zipfile.

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-119506: Fix io.TextIOWrapper.write() method breaks internal buffer when the method is called again during flushing internal buffer.

gh-118643: Fix an AttributeError in the email module when re-fold a long address list. Also fix more cases of incorrect encoding of the address separator in the address list.

gh-113171: Fixed various false positives and false negatives in

ipaddress.IPv4Address.is_private (see these docs for details)
ipaddress.IPv4Address.is_global
ipaddress.IPv6Address.is_private
ipaddress.IPv6Address.is_global
Also in the corresponding ipaddress.IPv4Network and ipaddress.IPv6Network attributes.

gh-102988: email.utils.getaddresses() and email.utils.parseaddr() now return ('', '') 2-tuples in more situations where invalid email addresses are encountered instead of potentially inaccurate values. Add optional strict parameter to these two functions: use strict=False to get the old behavior, accept malformed inputs. getattr(email.utils, 'supports_strict_parsing', False) can be use to check if the strict paramater is available. Patch by Thomas Dwyer and Victor Stinner to improve the CVE-2023-27043 fix.

gh-67693: Fix urllib.parse.urlunparse() and urllib.parse.urlunsplit() for URIs with path starting with multiple slashes and no authority. Based on patch by Ashwin Ramaswami.

Core and Builtins

gh-112275: A deadlock involving pystate.c’s HEAD_LOCK in posixmodule.c at fork is now fixed. Patch by ChuBoning based on previous Python 3.12 fix by Victor Stinner.
gh-109120: Added handle of incorrect star expressions, e.g f(3, *). Patch by Grigoryev Semyon

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed May 29 16:33:16 2024 UTC (5 months, 2 weeks ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q2-base, pkgsrc-2024Q2
Diff to: previous 1.29: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.29: +2 -1 lines
revbump after icu and protobuf updates

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Apr 30 21:09:15 2024 UTC (6 months, 2 weeks ago) by cheusov
Branches: MAIN
Diff to: previous 1.28: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.28: +8 -6 lines
Fix linking issue of _readline.so (missing ncursesw library)
  by setting FAKE_NCURSES to YES only on NetBSD.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Apr 30 20:51:14 2024 UTC (6 months, 2 weeks ago) by cheusov
Branches: MAIN
Diff to: previous 1.27: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.27: +5 -5 lines
Build _dbm.so module on Linux just like on other UNIX-es

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Apr 30 17:13:55 2024 UTC (6 months, 2 weeks ago) by cheusov
Branches: MAIN
Diff to: previous 1.26: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.26: +0 -1 lines
Remove dependency on devel/gettext-lib, we don`t need it

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Apr 30 17:01:15 2024 UTC (6 months, 2 weeks ago) by cheusov
Branches: MAIN
Diff to: previous 1.25: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.25: +1 -3 lines
Add option "readline" enabled by default.
Either --with-readline=editline or --with-readline are added
  to CONFIGURE_ARGS depending on READLINE_TYPE.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Feb 2 15:50:55 2024 UTC (9 months, 1 week ago) by tsutsui
Branches: MAIN
CVS tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1
Diff to: previous 1.24: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.24: +6 -1 lines
python311: kludge to appease configure error on vax where no IEEE-754.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jan 13 04:24:28 2024 UTC (10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.23: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.23: +2 -1 lines
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).

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Dec 28 13:12:24 2023 UTC (10 months, 2 weeks ago) by thor
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4
Diff to: previous 1.22: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.22: +9 -3 lines
lang/python311: fix NIS detection

This ensures the configure script finds the NIS headers just like the
Makefile did by adding include directories.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Dec 11 10:23:42 2023 UTC (11 months ago) by adam
Branches: MAIN
Diff to: previous 1.21: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.21: +1 -2 lines
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.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Nov 23 12:43:35 2023 UTC (11 months, 3 weeks ago) by jperkin
Branches: MAIN
Diff to: previous 1.20: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.20: +1 -2 lines
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.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Nov 10 16:55:32 2023 UTC (12 months ago) by nia
Branches: MAIN
Diff to: previous 1.19: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.19: +2 -2 lines
Revert previous

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Nov 10 12:13:22 2023 UTC (12 months ago) by nia
Branches: MAIN
Diff to: previous 1.18: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.18: +2 -2 lines
python: Honour user's choice of readline implementation.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Nov 8 13:19:51 2023 UTC (12 months, 1 week ago) by wiz
Branches: MAIN
Diff to: previous 1.17: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.17: +2 -2 lines
*: recursive bump for icu 74.1

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Nov 7 11:27:22 2023 UTC (12 months, 1 week ago) by nia
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -1 lines
Python from version 3.11 onwards requires a C11 capable compiler.

Revision 1.16: download - view: text, markup, annotated - [selected for diffs]
Wed Oct 25 21:33:15 2023 UTC (12 months, 3 weeks ago) by wiz
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
python311: add 'wide' to USE_CURSES

(Guessing and trying to fix macOS bulk build, please step in if you know
the proper fix.)

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Oct 24 22:09:38 2023 UTC (12 months, 3 weeks ago) by wiz
Branches: MAIN
Diff to: previous 1.14: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.14: +2 -2 lines
*: bump for openssl 3

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Oct 24 09:12:36 2023 UTC (12 months, 3 weeks ago) by wiz
Branches: MAIN
Diff to: previous 1.13: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.13: +3 -2 lines
python*: explicitly add --with-system-expat

To make sure expat module is linked against expat library.

Bump PKGREVISION.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Oct 23 08:50:35 2023 UTC (12 months, 3 weeks ago) by wiz
Branches: MAIN
Diff to: previous 1.12: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.12: +7 -1 lines
python*: add SUPERSEDES

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Oct 23 06:36:00 2023 UTC (12 months, 3 weeks ago) by wiz
Branches: MAIN
Diff to: previous 1.11: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.11: +16 -4 lines
python*: include some standard modules in the base Python package

As proposed on tech-pkg

Bump PKGREVISION.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Aug 25 08:28:22 2023 UTC (14 months, 3 weeks ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3
Diff to: previous 1.10: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.10: +1 -2 lines
python311 py311-html-docs: updated to 3.11.5

Python 3.11.5

Security

gh-108310: Fixed an issue where instances of ssl.SSLSocket were vulnerable to a bypass of the TLS handshake and included protections (like certificate verification) and treating sent unencrypted data as if it were post-handshake TLS encrypted data. Security issue reported as CVE-2023-40217 by Aapo Oksman. Patch by Gregory P. Smith.

Core and Builtins

gh-104432: Fix potential unaligned memory access on C APIs involving returned sequences of char * pointers within the grp and socket modules. These were revealed using a -fsaniziter=alignment build on ARM macOS. Patch by Christopher Chavez.
gh-77377: Ensure that multiprocessing synchronization objects created in a fork context are not sent to a different process created in a spawn context. This changes a segfault into an actionable RuntimeError in the parent process.
gh-106092: Fix a segmentation fault caused by a use-after-free bug in frame_dealloc when the trashcan delays the deallocation of a PyFrameObject.
gh-106719: No longer suppress arbitrary errors in the __annotations__ getter and setter in the type and module types.
gh-106723: Propagate frozen_modules to multiprocessing spawned process interpreters.
gh-105979: Fix crash in _imp.get_frozen_object() due to improper exception handling.
gh-105840: Fix possible crashes when specializing function calls with too many __defaults__.
gh-105588: Fix an issue that could result in crashes when compiling malformed ast nodes.
gh-105375: Fix bugs in the builtins module where exceptions could end up being overwritten.
gh-105375: Fix bug in the compiler where an exception could end up being overwritten.
gh-105375: Improve error handling in PyUnicode_BuildEncodingMap() where an exception could end up being overwritten.
gh-105235: Prevent out-of-bounds memory access during mmap.find() calls.
gh-101006: Improve error handling when read marshal data.

Library

gh-105736: Harmonized the pure Python version of OrderedDict with the C version. Now, both versions set up their internal state in __new__. Formerly, the pure Python version did the set up in __init__.
gh-107963: Fix multiprocessing.set_forkserver_preload() to check the given list of modules names. Patch by Dong-hee Na.
gh-106242: Fixes os.path.normpath() to handle embedded null characters without truncating the path.
gh-107845: tarfile.data_filter() now takes the location of symlinks into account when determining their target, so it will no longer reject some valid tarballs with LinkOutsideDestinationError.
gh-107715: Fix doctest.DocTestFinder.find() in presence of class names with special characters. Patch by Gertjan van Zwieten.
gh-100814: Passing a callable object as an option value to a Tkinter image now raises the expected TclError instead of an AttributeError.
gh-106684: Close asyncio.StreamWriter when it is not closed by application leading to memory leaks. Patch by Kumar Aditya.
gh-107077: Seems that in some conditions, OpenSSL will return SSL_ERROR_SYSCALL instead of SSL_ERROR_SSL when a certification verification has failed, but the error parameters will still contain ERR_LIB_SSL and SSL_R_CERTIFICATE_VERIFY_FAILED. We are now detecting this situation and raising the appropiate ssl.SSLCertVerificationError. Patch by Pablo Galindo
gh-107396: tarfiles; Fixed use before assignment of self.exception for gzip decompression
gh-62519: Make gettext.pgettext() search plural definitions when translation is not found.
gh-83006: Document behavior of shutil.disk_usage() for non-mounted filesystems on Unix.
gh-106186: Do not report MultipartInvariantViolationDefect defect when the email.parser.Parser class is used to parse emails with headersonly=True.
gh-106831: Fix potential missing NULL check of d2i_SSL_SESSION result in _ssl.c.
gh-106774: Update the bundled copy of pip to version 23.2.1.
gh-106752: Fixed several bug in zipfile.Path in name/suffix/suffixes/stem operations when no filename is present and the Path is not at the root of the zipfile.
gh-106602: Add __copy__ and __deepcopy__ in enum
gh-106530: Revert a change to colorsys.rgb_to_hls() that caused division by zero for certain almost-white inputs. Patch by Terry Jan Reedy.
gh-106052: re module: fix the matching of possessive quantifiers in the case of a subpattern containing backtracking.
gh-106510: Improve debug output for atomic groups in regular expressions.
gh-105497: Fix flag mask inversion when unnamed flags exist.
gh-90876: Prevent multiprocessing.spawn from failing to import in environments where sys.executable is None. This regressed in 3.11 with the addition of support for path-like objects in multiprocessing.
gh-106350: Detect possible memory allocation failure in the libtommath function mp_init() used by the _tkinter module.
gh-102541: Make pydoc.doc catch bad module ImportError when output stream is not None.
gh-106263: Fix crash when calling repr with a manually constructed SignalDict object. Patch by Charlie Zhao.
gh-105375: Fix a bug in _Unpickler_SetInputStream() where an exception could end up being overwritten in case of failure.
gh-105375: Fix bugs in sys where exceptions could end up being overwritten because of deferred error handling.
gh-105605: Harden pyexpat error handling during module initialisation to prevent exceptions from possibly being overwritten, and objects from being dereferenced twice.
gh-105375: Fix bug in decimal where an exception could end up being overwritten.
gh-105375: Fix bugs in _datetime where exceptions could be overwritten in case of module initialisation failure.
gh-105375: Fix bugs in _ssl initialisation which could lead to leaked references and overwritten exceptions.
gh-105375: Fix a bug in array.array where an exception could end up being overwritten.
gh-105375: Fix bugs in _ctypes where exceptions could end up being overwritten.
gh-105375: Fix a bug in the posix module where an exception could be overwritten.
gh-105375: Fix bugs in _elementtree where exceptions could be overwritten.
gh-105375: Fix bugs in zoneinfo where exceptions could be overwritten.
gh-105375: Fix bugs in pickle where exceptions could be overwritten.
gh-105497: Fix flag inversion when alias/mask members exist.
gh-105375: Fix bugs in pickle where exceptions could be overwritten.
gh-103171: Revert undocumented behaviour change with runtime-checkable protocols decorated with typing.final() in Python 3.11. The behaviour change had meant that objects would not be considered instances of these protocols at runtime unless they had a __final__ attribute. Patch by Alex Waygood.
gh-105375: Fix a bug in sqlite3 where an exception could be overwritten in the collation callback.
gh-105332: Revert pickling method from by-name back to by-value.
gh-104554: Add RTSPS scheme support in urllib.parse
gh-100061: Fix a bug that causes wrong matches for regular expressions with possessive qualifier.
gh-102541: Hide traceback in help() prompt, when import failed.
gh-99203: Restore following CPython <= 3.10.5 behavior of shutil.make_archive(): do not create an empty archive if root_dir is not a directory, and, in that case, raise FileNotFoundError or NotADirectoryError regardless of format choice. Beyond the brought-back behavior, the function may now also raise these exceptions in dry_run mode.
gh-94777: Fix hanging multiprocessing ProcessPoolExecutor when a child process crashes while data is being written in the call queue.
bpo-18319: Ensure gettext(msg) retrieve translations even if a plural form exists. In other words: gettext(msg) == ngettext(msg, '', 1).

Documentation

gh-107008: Document the curses module variables LINES and COLS.
gh-106948: Add a number of standard external names to nitpick_ignore.
gh-54738: Add documentation on how to localize the argparse module.

Tests

gh-105776: Fix test_cppext when the C compiler command -std=c11 option: remove -std= options from the compiler command. Patch by Victor Stinner.
gh-107237: test_logging: Fix test_udp_reconnection() by increasing the timeout from 100 ms to 5 minutes (LONG_TIMEOUT). Patch by Victor Stinner.
gh-101634: When running the Python test suite with -jN option, if a worker stdout cannot be decoded from the locale encoding report a failed testn so the exitcode is non-zero. Patch by Victor Stinner.

Build

gh-107814: When calling find_python.bat with -q it did not properly silence the output of nuget. That is now fixed.

gh-106881: Check for linux/limits.h before including it in Modules/posixmodule.c.

gh-104692: Include commoninstall as a prerequisite for bininstall

This ensures that commoninstall is completed before bininstall is started when parallel builds are used (make -j install), and so the python3 symlink is only installed after all standard library modules are installed.

gh-100340: Allows -Wno-int-conversion for wasm-sdk 17 and onwards, thus enables building WASI builds once against the latest sdk.

Windows

gh-106242: Fixes realpath() to behave consistently when passed a path containing an embedded null character on Windows. In strict mode, it now raises OSError instead of the unexpected ValueError, and in non-strict mode will make the path absolute.
gh-106844: Fix integer overflow in _winapi.LCMapStringEx() which affects ntpath.normcase().
gh-99079: Update Windows build to use OpenSSL 3.0.9
gh-105436: Ensure that an empty environment block is terminated by two null characters, as is required by Windows.

macOS

gh-107565: Update macOS installer to use OpenSSL 3.0.10.
gh-99079: Update macOS installer to use OpenSSL 3.0.9.

Tools/Demos

gh-107565: Update multissltests and GitHub CI workflows to use OpenSSL 1.1.1v, 3.0.10, and 3.1.2.
gh-95065: Argument Clinic now supports overriding automatically generated signature by using directive @text_signature. See How to override the generated signature.
gh-106970: Fix bugs in the Argument Clinic destination <name> clear command; the destination buffers would never be cleared, and the destination directive parser would simply continue to the fault handler after processing the command. Patch by Erlend E. Aasland.

C API

gh-107916: C API functions PyErr_SetFromErrnoWithFilename(), PyErr_SetExcFromWindowsErrWithFilename() and PyErr_SetFromWindowsErrWithFilename() save now the error code before calling PyUnicode_DecodeFSDefault().
gh-107915: Such C API functions as PyErr_SetString(), PyErr_Format(), PyErr_SetFromErrnoWithFilename() and many others no longer crash or ignore errors if it failed to format the error message or decode the filename. Instead, they keep a corresponding error.
gh-107226: PyModule_AddObjectRef() is now only available in the limited API version 3.10 or later.
gh-105375: Fix a bug in PyErr_WarnExplicit() where an exception could end up being overwritten if the API failed internally.
gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data: *consumed was not set.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Aug 15 14:39:08 2023 UTC (15 months ago) by schmonz
Branches: MAIN
Diff to: previous 1.9: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.9: +4 -1 lines
python3*: when linking with pkgsrc gettext, pass -lintl. When linking
with builtin gettext, NFCI. Fixes PREFER_PKGSRC=gettext-lib builds on at
least NetBSD 9 and 10.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jul 22 18:27:45 2023 UTC (15 months, 3 weeks ago) by js
Branches: MAIN
Diff to: previous 1.8: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.8: +6 -3 lines
Fix lang/python311 on Linux

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Jun 29 01:32:28 2023 UTC (16 months, 2 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.7: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.7: +2 -6 lines
python311: Adjust to new configure interface for cross-compilation.

Restore patch to simplify sysconfigdata name in configure, now that
passing through this logic is mandatory for cross-compilation (at
least, mandatory without further patches to configure).

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Jun 27 10:35:30 2023 UTC (16 months, 2 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.6: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.6: +3 -12 lines
python: Override sys.platform with PY_PLATNAME when cross-compiling.

For this purpose, factor the PY_PLATNAME definition out into a new
lang/pythonNN/platname.mk file.  It's not the same for 2.x and 3.x;
perhaps we could factor it out further into a single 2.x vs 3.x
conditional but this is a more mechanical change that makes it easier
to audit for now.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Jun 27 10:29:58 2023 UTC (16 months, 2 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.5: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.5: +2 -3 lines
lang/python39, 310, 311: Handle TOOLBASE/LOCALBASE split.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Jun 22 11:16:06 2023 UTC (16 months, 3 weeks ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2023Q2-base, pkgsrc-2023Q2
Diff to: previous 1.4: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.4: +3 -2 lines
python311: Do not define static_assert in C++ code.

Bump PKGREVISION.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Jan 14 17:25:53 2023 UTC (22 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1
Diff to: previous 1.3: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.3: +2 -2 lines
python311: clean up some pkglint

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jan 14 17:22:25 2023 UTC (22 months ago) by wiz
Branches: MAIN
Diff to: previous 1.2: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.2: +1 -4 lines
python311: remove REPLACE* where it changes nothing

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Nov 2 11:36:23 2022 UTC (2 years ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4
Diff to: previous 1.1: preferred, colored; selected 1.16: preferred, colored
Changes since revision 1.1: +3 -1 lines
python311: SunOS build and install fixes.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Oct 31 09:50:40 2022 UTC (2 years ago) by adam
Branches: MAIN
Diff to: selected 1.16: preferred, colored
python311 py311-html-docs: added version 3.11.0

Python 3.11 is between 10-60% faster than Python 3.10. On average, we measured a 1.25x speedup on the standard benchmark suite. See Faster CPython for details.

New syntax features:

PEP 654: Exception Groups and except*

New built-in features:

PEP 678: Exceptions can be enriched with notes

New standard library modules:

PEP 680: tomllib — Support for parsing TOML in the Standard Library

Interpreter improvements:

PEP 657: Fine-grained error locations in tracebacks
New -P command line option and PYTHONSAFEPATH environment variable to disable automatically prepending potentially unsafe paths to sys.path

New typing features:

PEP 646: Variadic generics
PEP 655: Marking individual TypedDict items as required or not-required
PEP 673: Self type
PEP 675: Arbitrary literal string type
PEP 681: Data class transforms

Important deprecations, removals and restrictions:

PEP 594: Many legacy standard library modules have been deprecated and will be removed in Python 3.13
PEP 624: Py_UNICODE encoder APIs have been removed
PEP 670: Macros converted to static inline functions

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <[email protected]>