]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Victor Stinner [Wed, 25 May 2022 12:21:36 +0000 (14:21 +0200)]
gh-93202: Always use %zd printf formatter (#93201)
Python now always use the ``%zu`` and ``%zd`` printf formats to
format a size_t or Py_ssize_t number. Building Python 3.12 requires a
C11 compiler, so these printf formats are now always supported.
* PyObject_Print() and _PyObject_Dump() now use the printf %zd format
to display an object reference count.
* Update PY_FORMAT_SIZE_T comment.
* Remove outdated notes about the %zd format in PyBytes_FromFormat()
and PyUnicode_FromFormat() documentations.
* configure no longer checks for the %zd format and no longer defines
PY_FORMAT_SIZE_T macro in pyconfig.h.
* pymacconfig.h no longer undefines PY_FORMAT_SIZE_T: macOS 10.4 is
no longer supported. Python 3.12 now requires macOS 10.6 (Snow
Leopard) or newer.
oda-gitso [Wed, 25 May 2022 10:39:06 +0000 (17:39 +0700)]
gh-93040 Wrap unused parameters in Objects/obmalloc.c with Py_UNUSED (#93175)
Victor Stinner [Wed, 25 May 2022 09:45:33 +0000 (11:45 +0200)]
gh-91924: Fix __lltrace__ for non-UTF-8 stdout encoding (#93199)
Fix __lltrace__ debug feature if the stdout encoding is not UTF-8.
If the stdout encoding is not UTF-8, the first call to
lltrace_resume_frame() indirectly sets lltrace to 0 when calling
unicode_check_encoding_errors() which calls
encodings.search_function().
Florian Bruhin [Wed, 25 May 2022 07:59:32 +0000 (09:59 +0200)]
test_threaded_import: Fix unittest.main spelling (GH-93114)
Miro Hrončok [Wed, 25 May 2022 06:05:35 +0000 (08:05 +0200)]
gh-92728: Restore re.template, but deprecate it (GH-93161)
Revert "bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)"
This reverts commit
b09184bf05b07b77c5ecfedd4daa846be3cbf0a9 .
Victor Stinner [Wed, 25 May 2022 02:44:57 +0000 (04:44 +0200)]
gh-92658: AF_HYPERV is only supported on Windows (#93192)
Only build the AF_HYPERV support on Windows for the _socket extension.
FreeBSD defines the AF_HYPERV macro but doesn't have the SOCKADDR_HV
type.
neonene [Wed, 25 May 2022 01:22:39 +0000 (10:22 +0900)]
gh-92434: Silence a compiler warning in _xxsubinterpretersmodule.c for 32bit version (gh-93091)
Tobin Yehle [Wed, 25 May 2022 01:16:20 +0000 (19:16 -0600)]
gh-93035: [Enum] Fix IntFlag crash when no single-bit members (GH-93076)
`EnumType` attempts to create a custom docstring for each enum/flag, but that was failing with pathological flags that had no members (only multi-bit aliases).
Victor Stinner [Wed, 25 May 2022 00:11:51 +0000 (02:11 +0200)]
test.pythoninfo no longer requires socket (#93191)
test.pythoninfo no longer fails if "import socket" fails: the socket
module is now optional.
Victor Stinner [Tue, 24 May 2022 22:09:48 +0000 (00:09 +0200)]
gh-93103: Py_DecodeLocale() uses _PyRuntime.preconfig (#93187)
The Py_DecodeLocale() and Py_EncodeLocale() now use
_PyRuntime.preconfig, rather than Py_UTF8Mode and
Py_LegacyWindowsFSEncodingFlag global configuration varibles, to
decide if the UTF-8 encoding is used or not.
As documented, these functions must not be called before Python is
preinitialized. The new PyConfig API should now be used, rather than
using deprecated functions like Py_SetPath() or PySys_SetArgv().
Victor Stinner [Tue, 24 May 2022 21:23:01 +0000 (23:23 +0200)]
gh-93103: Enhance PyConfig.parser_debug documentation (#93186)
Document that -d option and PYTHONDEBUG env var require a debug
build of Python. Also mention them in the debug build documentation.
Jordan Borean [Tue, 24 May 2022 20:37:06 +0000 (06:37 +1000)]
gh-92658: Add Hyper-V socket support (GH-92755)
Victor Stinner [Tue, 24 May 2022 20:35:08 +0000 (22:35 +0200)]
gh-93103: Parser uses PyConfig.parser_debug instead of Py_DebugFlag (#93106)
* Replace deprecated Py_DebugFlag with PyConfig.parser_debug in the
parser.
* Add Parser.debug member.
* Add tok_state.debug member.
* Py_FrozenMain(): Replace Py_VerboseFlag with PyConfig.verbose.
Kumar Aditya [Tue, 24 May 2022 13:41:32 +0000 (19:11 +0530)]
GH-89369: test_contextlib_async finalizes event loop after each test (#93074)
Use asyncio.run().
Florian Bruhin [Tue, 24 May 2022 12:09:52 +0000 (14:09 +0200)]
GH-93112: Fix missing ResourceDenied import in test_urllib2net (#93113)
The code was moved out of test.support in
311110abcd8ab648dbf1803e36a8ba5d93fa019b (GH-20812), thus making
ResourceDenied undefined.
goldsteinn [Tue, 24 May 2022 01:45:31 +0000 (20:45 -0500)]
gh-93033: Use wmemchr in stringlib (GH-93034)
Generally comparable perf for the "good" case where memchr doesn't
return any collisions (false matches on lower byte) but clearly faster
with collisions.
Dong-hee Na [Tue, 24 May 2022 00:37:01 +0000 (09:37 +0900)]
gh-93099: Fix _pyio to use locale module properly (gh-93136)
Julien Palard [Mon, 23 May 2022 21:45:16 +0000 (23:45 +0200)]
Doc: No need to use rst syntax in code comments. (GH-93102)
And it raises `make suspicious` false positives.
Nicolas Haller [Mon, 23 May 2022 19:18:43 +0000 (15:18 -0400)]
gh-92859: Doc: add info about logging.debug() calling basicConfig() (GH-93063)
Yury Selivanov [Mon, 23 May 2022 19:09:59 +0000 (12:09 -0700)]
gh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-93066)
Also while there, clarify a few things about why we reduce the hash to 32 bits.
Co-authored-by: Eli Libman <eli@hyro.ai>
Co-authored-by: Yury Selivanov <yury@edgedb.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Ethan Furman [Mon, 23 May 2022 18:21:58 +0000 (11:21 -0700)]
gh-93118: [Enum] fix error message (GH-93138)
Include member names in error message.
Sam Ezeh [Mon, 23 May 2022 17:59:21 +0000 (18:59 +0100)]
gh-83245: Raise BadZipFile instead of ValueError when reading a corrupt ZIP file (GH-32291)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Steve Dower [Mon, 23 May 2022 16:39:10 +0000 (17:39 +0100)]
gh-92913: Fix typos in documentation (GH-93129)
oda-gitso [Mon, 23 May 2022 16:10:18 +0000 (23:10 +0700)]
gh-93010: InvalidHeaderError used but nonexistent (#93015)
* fix issue 93010
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Steve Dower [Mon, 23 May 2022 16:04:26 +0000 (17:04 +0100)]
gh-93005: Fixes launcher test when no Python install is available (GH-93007)
Florian Bruhin [Mon, 23 May 2022 15:58:11 +0000 (17:58 +0200)]
GH-93115: Fix version check in sqlite3 module constants test (#93116)
Ethan Furman [Mon, 23 May 2022 15:56:07 +0000 (08:56 -0700)]
gh93107: [Enum] fix missing variable in global_str (GH-93107)
Wenzel Jakob [Mon, 23 May 2022 14:15:09 +0000 (16:15 +0200)]
gh-92536: Mark PyUnicode_READY() argument as unused (#93011)
Dennis Sweeney [Mon, 23 May 2022 12:58:41 +0000 (08:58 -0400)]
gh-93061: Mark as artificial: backwards jump after async for (GH-93062)
Victor Stinner [Mon, 23 May 2022 12:56:59 +0000 (14:56 +0200)]
gh-93103: Update PyUnicode_DecodeFSDefault() doc (#93105)
Update documentation of PyUnicode_DecodeFSDefault(),
PyUnicode_DecodeFSDefaultAndSize() and PyUnicode_EncodeFSDefault():
they now use the filesystem encoding and error handler of PyConfig,
Py_FileSystemDefaultEncoding and Py_FileSystemDefaultEncodeErrors
variables are no longer used.
Victor Stinner [Mon, 23 May 2022 12:56:35 +0000 (14:56 +0200)]
gh-93103: Deprecate global configuration variable (#93104)
Deprecate global configuration variables, like
Py_IgnoreEnvironmentFlag, in the documentation: the
Py_InitializeFromConfig() API should be instead.
Christian Heimes [Mon, 23 May 2022 08:39:57 +0000 (10:39 +0200)]
gh-90473: WASI: skip gethostname tests (GH-93092)
- WASI's ``gethostname()`` is a stub that always fails with OSError
``ENOTSUP``
- skip mailcap ``test`` if subprocess is not available
- WASI process_time clock does not work.
Nicolas Haller [Mon, 23 May 2022 04:58:07 +0000 (00:58 -0400)]
gh-89158: Add some REPL secondary prompt markers (#93073)
This fixes an issue on tutorial/classes.rst section 9.4 where the example "class Warehouse"
was truncated when pressing the >>> button to hide the prompts and output.
Mori Bellamy [Mon, 23 May 2022 01:54:24 +0000 (18:54 -0700)]
gh-91061: also accept pathlib.Path for winsound.PlaySound (#91489)
Fixes #91061
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Shantanu [Mon, 23 May 2022 01:53:24 +0000 (18:53 -0700)]
gh-92994: Clarify importlib "check" example (#92995)
Fixes #92994
Stanley [Mon, 23 May 2022 01:52:17 +0000 (18:52 -0700)]
gh-73137: Added sub-subsection headers for flags in re (#93000)
Fixes #73137
Jelle Zijlstra [Mon, 23 May 2022 01:48:17 +0000 (18:48 -0700)]
binascii docs: strict_mode parameter is keyword-only (#93055)
See https://github.com/python/cpython/commit/
35b98e38b6edd63153fc8e092f94cb20725dacc1
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Jelle Zijlstra [Sun, 22 May 2022 22:55:11 +0000 (15:55 -0700)]
termios docs: fix indentation (#93080)
Serhiy Storchaka [Sat, 21 May 2022 16:06:12 +0000 (19:06 +0300)]
Clean up the sqlite3 tests (GH-93056)
Remove helper managed_connect(). Use memory_database() or
contextlib.closing() + addCleanup(unlink) instead.
Shantanu [Sat, 21 May 2022 14:54:10 +0000 (07:54 -0700)]
gh-91362: reword pickle docs to account for nested classes (#92429)
Fixes #91362
Serhiy Storchaka [Sat, 21 May 2022 14:38:22 +0000 (17:38 +0300)]
Improve tests for opening Sqlite by URI (GH-93047)
* Test with with escaped non-ascii characters
* Test read-only open of existing DB.
serge-sans-paille [Sat, 21 May 2022 13:16:37 +0000 (13:16 +0000)]
GH-92898: Make _Py_Cast C++ version compatible with cast operator (gh-92951)
Serhiy Storchaka [Sat, 21 May 2022 11:35:46 +0000 (14:35 +0300)]
gh-93044: No longer convert the database argument of sqlite3.connect() to bytes (GH-93046)
Just pass it to the factory as is.
Varun Sharma [Sat, 21 May 2022 07:55:21 +0000 (00:55 -0700)]
ci: add GitHub token permissions (#92999)
Serhiy Storchaka [Sat, 21 May 2022 07:33:23 +0000 (10:33 +0300)]
gh-71223: Improve rendering of some references in the docs (GH-93041)
For example, instead of "eval()uated" (link from "eval()")
show "evaluated" (link from the whole word).
Shantanu [Sat, 21 May 2022 04:36:09 +0000 (21:36 -0700)]
gh-93019: Fix markup in zipfile.rst (#93025)
Fixes #93019
Raymond Hettinger [Fri, 20 May 2022 23:02:33 +0000 (18:02 -0500)]
Take advantage of math.comb() in the nth_combination() recipe (#93027)
Brett Cannon [Fri, 20 May 2022 22:52:38 +0000 (15:52 -0700)]
Fix a directive in the `pathlib` docs (GH-93030)
Stanley [Fri, 20 May 2022 22:25:39 +0000 (15:25 -0700)]
gh-72073: Add Windows case in pathlib.rename (GH-93002)
#72073
https://docs.python.org/3.12/library/pathlib.html#pathlib.Path.rename
CAM Gerlach [Fri, 20 May 2022 21:47:51 +0000 (15:47 -0600)]
gh-92611: Clarify planned removal version in PEP 594-deprecated modules (GH-92793)
As discussed in #92611 and #92564 and as a followup to PR #92612 , this 3.11+ only PR uses the proper `deprecated-removed` role for the modules deprecated by PEP 593 (PEP-594) to clearly indicate to users that a removal version is planned and what it is, so they can prepare accordingly or voice any unanticipated impacts.
Related to #92792 ; if we decide to backport that PR, the upgrade to using `deprecated-removed` on those functions can be moved to this one.
Lucinda May Phipps [Fri, 20 May 2022 15:14:05 +0000 (16:14 +0100)]
shutil._copyfileobj_readinto: tiny speedup (#92377)
Shantanu [Fri, 20 May 2022 14:32:29 +0000 (07:32 -0700)]
gh-91860: documentation for typing.dataclass_transform (#92768)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Serhiy Storchaka [Fri, 20 May 2022 08:53:05 +0000 (11:53 +0300)]
gh-91922: Fix sqlite connection on nonstardard locales and paths (GH-92926)
Rafael Fontenelle [Fri, 20 May 2022 08:19:37 +0000 (05:19 -0300)]
Doc: add missing manpage and title references in tkinter docs (#29008)
- add bind(3tk) manpage markup
- add Tcl/Tk book reference markup
Pavel [Fri, 20 May 2022 08:18:02 +0000 (04:18 -0400)]
Doc: Minor adjustment of `socket.create_server` docs (#26938)
- fix spelling in create_server() docs
- add a line about create_server() in the socket.py docstring
Dong-hee Na [Fri, 20 May 2022 05:06:54 +0000 (14:06 +0900)]
Update globals-to-fix.tsv to follow recent changes (gh-92959)
Steve Dower [Thu, 19 May 2022 22:45:41 +0000 (23:45 +0100)]
gh-92817: Fix precedence of options to py.exe launcher (GH-92988)
David Machaj [Thu, 19 May 2022 21:44:03 +0000 (14:44 -0700)]
gh-92984: Explicitly disable incremental linking for Windows Release and PGO builds (GH-92985)
Steve Dower [Thu, 19 May 2022 19:23:53 +0000 (20:23 +0100)]
gh-92913: Clarify changes to PyInitConfig.module_search_paths[_set] fields (GH-92980)
Mark Shannon [Thu, 19 May 2022 16:49:29 +0000 (17:49 +0100)]
GH-89914: Make the oparg of the YIELD_VALUE instruction equal the stack depth. (GH-92960)
Alex Waygood [Thu, 19 May 2022 15:48:44 +0000 (16:48 +0100)]
gh-92417: `importlib` docs: remove references to unsupported Python versions (GH-92424)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Nikita Sobolev [Thu, 19 May 2022 15:46:15 +0000 (18:46 +0300)]
bpo-28249: fix `lineno` location for empty `DocTest` instances (GH-30498)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Michael Osipov [Thu, 19 May 2022 15:42:21 +0000 (17:42 +0200)]
gh-78630: Drop invalid HP aCC compiler switch -fPIC on HP-UX (#8847)
At compile time, '+z' is already properly used with HP aCC, and shared
libraries are correctly linked with '+b'. The '-fPIC' switch can safely be
dropped.
Martin Fischer [Thu, 19 May 2022 15:34:58 +0000 (17:34 +0200)]
bpo-46879: Fix incorrect sphinx object names in doc (GH-31615)
API members documented in sphinx have an object name, which allow the
documentation to be linked from other projects. Sphinx calculates the
object name by prefixing the current module name to the directive
argument, e.g:
.. module:: foo
.. function:: bar.baz
becomes foo.bar.baz. Since these anchors aren't displayed in the
documentation, some mistakes have crept in, namely the Python stdlib
documentation currently contains the objects:
* asyncio.asyncio.subprocess.DEVNULL
* asyncio.asyncio.subprocess.PIPE
* asyncio.asyncio.subprocess.STDOUT
* asyncio.asyncio.subprocess.Process
* multiprocessing.sharedctypes.multiprocessing.Manager
* xml.etree.ElementTree.xml.etree.ElementInclude
This commit fixes this by making use of the :module: option which
without an argument makes sphinx take the directive argument as is
for the object name (avoiding the prefixing of the current module
name that led to these broken object names).
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Alex Waygood [Thu, 19 May 2022 15:31:51 +0000 (16:31 +0100)]
gh-92417: `subprocess` docs: remove note on compatibility with Python <3.5 (GH-92538)
Alex Waygood [Thu, 19 May 2022 15:28:51 +0000 (16:28 +0100)]
gh-92417: `fractions`, `decimal`: Improve docs for alternative constructor methods (GH-92421)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Alex Waygood [Thu, 19 May 2022 15:25:58 +0000 (16:25 +0100)]
gh-92417: `socket` docs: remove references to Python <3.3 (GH-92544)
Zackery Spytz [Thu, 19 May 2022 15:05:04 +0000 (08:05 -0700)]
bpo-45393: help() on operator precedence has misleading entries (GH-31246)
Fix the formatting for "await x" and "not x" in the operator
precedence table.
CAM Gerlach [Thu, 19 May 2022 14:59:07 +0000 (08:59 -0600)]
gh-92417: Update docs and examples of doctest.IGNORE_EXCEPTION_DETAIL for Py>=3 (GH-92502)
David Foster [Thu, 19 May 2022 14:47:16 +0000 (08:47 -0600)]
gh-92675: venv: Fix ensure_directories() to again accept a Path for env_dir (#92676)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Jelle Zijlstra [Thu, 19 May 2022 14:07:54 +0000 (07:07 -0700)]
gh-91491: Complete Whats New in 3.11 for typing (#92708)
Fixes #91491
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Kumar Aditya [Thu, 19 May 2022 13:55:22 +0000 (19:25 +0530)]
GH-92955: fix memory leak in code object lines and positions iterators (gh-92956)
Christian Heimes [Thu, 19 May 2022 10:43:16 +0000 (12:43 +0200)]
gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)
Mark Shannon [Thu, 19 May 2022 10:05:26 +0000 (11:05 +0100)]
GH-90690: Remove `PRECALL` instruction (GH-92925)
Jan Brasna [Thu, 19 May 2022 09:22:16 +0000 (11:22 +0200)]
Doc: amend ssl.PROTOCOL_SSLv2 and ssl.PROTOCOL_SSLv3 wording (#92634)
Ayappan Perumal [Thu, 19 May 2022 09:17:44 +0000 (14:47 +0530)]
gh-92670: Skip test_shutil.TestCopy.test_copyfile_nonexistent_dir on AIX (#92718)
Duprat [Thu, 19 May 2022 07:12:33 +0000 (09:12 +0200)]
Include ``asyncio.Barrier`` in 3.11 Whats New (GH-92927)
Serhiy Storchaka [Thu, 19 May 2022 05:43:50 +0000 (08:43 +0300)]
gh-92914: Round the allocated size for lists up to the even number (GH-92915)
Inada Naoki [Thu, 19 May 2022 02:42:43 +0000 (11:42 +0900)]
gh-87901: Remove the encoding argument from os.popen (GH-92836)
180909 [Wed, 18 May 2022 21:08:23 +0000 (05:08 +0800)]
gh-92812: Align ArgumentParser.add_subparsers() docs with argument spec (#92814)
Mark Shannon [Wed, 18 May 2022 13:38:43 +0000 (14:38 +0100)]
Split refcount stats into 'interpreter' and 'non-interpreter' (GH-92919)
Steve Dower [Wed, 18 May 2022 13:26:36 +0000 (14:26 +0100)]
Remove Windows release build script (GH-92908)
The scripts have been migrated to the release-tools repository
David CARLIER [Wed, 18 May 2022 13:10:10 +0000 (14:10 +0100)]
bpo-42047: Add native thread ID for DragonFlyBSD (#22714)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Victor Stinner [Wed, 18 May 2022 12:09:44 +0000 (14:09 +0200)]
gh-91755: Remove doc of C API private refcount functions (#92918)
These functions should only be used by Python internals.
Erlend Egeberg Aasland [Wed, 18 May 2022 11:44:16 +0000 (13:44 +0200)]
gh-92780: Improve sqlite3.Connection.create_collation docs (#92790)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Charlie Zhao [Wed, 18 May 2022 08:42:05 +0000 (16:42 +0800)]
gh-91755: Document Py_IncRef and Py_DecRef as C functions (#91805)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Nikita Sobolev [Wed, 18 May 2022 01:24:35 +0000 (04:24 +0300)]
bpo-40838: document `getdoc`, `getmodule`, `getsourcefile` in `inspect` returns `None` (#30575)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Oleg Iarygin [Tue, 17 May 2022 22:27:32 +0000 (01:27 +0300)]
gh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842)
Zackery Spytz [Tue, 17 May 2022 22:24:17 +0000 (15:24 -0700)]
bpo-38704: Prevent installation on unsupported Windows versions (GH-17950)
Victor Stinner [Tue, 17 May 2022 22:19:56 +0000 (00:19 +0200)]
gh-89898: Fix test_threading.test_args_argument() (#92885)
Join the thread to not leak threads running in the background to the
next test.
Fix the following warning on the "AMD64 FreeBSD Shared 3.11"
buildbot:
test_args_argument (test.test_threading.ThreadTests.test_args_argument) ...
Warning -- threading_cleanup() failed to cleanup 1 threads (count: 1, dangling: 2)
Warning -- Dangling thread: <_MainThread(MainThread, started
35026161664 )>
Warning -- Dangling thread: <Thread(Thread-134 (<lambda>), started
35314998016 )>
ok
Victor Stinner [Tue, 17 May 2022 17:43:19 +0000 (19:43 +0200)]
gh-89653: Add assertions on PyUnicode_READ() index (#92883)
Add assertions on the index argument of PyUnicode_READ(),
PyUnicode_READ_CHAR() and PyUnicode_WRITE() functions.
Victor Stinner [Tue, 17 May 2022 17:20:37 +0000 (19:20 +0200)]
gh-89653: PEP 670: Fix PyUnicode_READ() cast (#92872)
_Py_CAST() cannot be used with a constant type: use _Py_STATIC_CAST()
instead.
Dennis Sweeney [Tue, 17 May 2022 15:17:16 +0000 (11:17 -0400)]
Fix NULL check in test_type_from_ephemeral_spec in_testcapimodule.c (GH-92863)
Dennis Sweeney [Tue, 17 May 2022 14:12:21 +0000 (10:12 -0400)]
gh-92536: Update unicode struct size to ensure MemoryError is raised (GH-92867)
Irit Katriel [Tue, 17 May 2022 12:00:11 +0000 (13:00 +0100)]
gh-92782: unify the style of CFG traversal algorithms in the compiler (GH-92784)
Mark Shannon [Tue, 17 May 2022 09:59:24 +0000 (10:59 +0100)]
Summarize stats: Increase number of predecessor/successor pairs shown from 3 to 5. (GH-92853)
Dennis Sweeney [Tue, 17 May 2022 01:32:48 +0000 (21:32 -0400)]
Fix NULL test in _testinternalcapi (GH-92861)
谭九鼎 [Tue, 17 May 2022 00:04:17 +0000 (08:04 +0800)]
re docs: fix source code link (#92819)
Filipe Laíns [Mon, 16 May 2022 23:05:47 +0000 (00:05 +0100)]
gh-92265: set meta_path and path_hooks correctly in test_reload_namespace_changed (GH-92275)
Previously, we were blocking the frozen imports and forcing the source
version to be used, but we did not fix up sys.meta_path or
sys.path_hooks, causing the frozen importers to leak into the source
version of the test.
Erlend Egeberg Aasland [Mon, 16 May 2022 17:52:08 +0000 (19:52 +0200)]
gh-92547: Remove deprecated sqlite3 features (#92548)
The following sqlite3 features were deprecated in 3.10, scheduled for
removal in 3.12:
- sqlite3.OptimizedUnicode (gh-23163)
- sqlite3.enable_shared_cache (gh-24008)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Signed-off-by: Erlend E. Aasland <erlend.aasland@protonmail.com>