]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Brett Cannon [Mon, 21 Mar 2022 23:16:37 +0000 (16:16 -0700)]
bpo-47061: document module deprecations due to PEP 594 (GH-31984)
Also removed asynchat, asyncore, and smtpd from their respective toctree entries so they are only in the superceded subtree.
jonasdlindner [Mon, 21 Mar 2022 23:11:50 +0000 (00:11 +0100)]
Fix typo in pycore_bytesobject.h (GH-31914)
Irit Katriel [Mon, 21 Mar 2022 20:41:35 +0000 (20:41 +0000)]
bpo-12029: [doc] clarify that except does not match virtual subclasses of the specified exception type (GH-32027)
penguin_wwy [Mon, 21 Mar 2022 20:33:02 +0000 (04:33 +0800)]
bpo-47067: Optimize calling GenericAlias objects (GH-31996)
Use vectorcall, and replace `PyObject_SetAttrString` with `PyObject_SetAttr` and a global string.
Tim Peters [Mon, 21 Mar 2022 17:49:43 +0000 (12:49 -0500)]
bpo-47080: Use atomic groups to simplify fnmatch (GH-32029)
Use re's new atomic groups to greatly simplify the construction of worst-case linear-time patterns.
Serhiy Storchaka [Mon, 21 Mar 2022 16:28:22 +0000 (18:28 +0200)]
bpo-433030: Add support of atomic grouping in regular expressions (GH-31982)
* Atomic grouping: (?>...).
* Possessive quantifiers: x++, x*+, x?+, x{m,n}+.
Equivalent to (?>x+), (?>x*), (?>x?), (?>x{m,n}).
Co-authored-by: Jeffrey C. Jacobs <timehorse@users.sourceforge.net>
Brandt Bucher [Mon, 21 Mar 2022 11:11:17 +0000 (04:11 -0700)]
bpo-46841: Quicken code in-place (GH-31888)
* Moves the bytecode to the end of the corresponding PyCodeObject, and quickens it in-place.
* Removes the almost-always-unused co_varnames, co_freevars, and co_cellvars member caches
* _PyOpcode_Deopt is a new mapping from all opcodes to their un-quickened forms.
* _PyOpcode_InlineCacheEntries is renamed to _PyOpcode_Caches
* _Py_IncrementCountAndMaybeQuicken is renamed to _PyCode_Warmup
* _Py_Quicken is renamed to _PyCode_Quicken
* _co_quickened is renamed to _co_code_adaptive (and is now a read-only memoryview).
* Do not emit unused nonzero opargs anymore in the compiler.
Serhiy Storchaka [Mon, 21 Mar 2022 11:00:43 +0000 (13:00 +0200)]
bpo-23691: Protect the re.finditer() iterator from re-entering (GH-32012)
Victor Stinner [Mon, 21 Mar 2022 02:03:22 +0000 (03:03 +0100)]
bpo-46850: Remove _PyEval_CallTracing() function (GH-32019)
Remove the private undocumented function _PyEval_CallTracing() from
the C API. Call the public sys.call_tracing() function instead.
Victor Stinner [Mon, 21 Mar 2022 01:24:00 +0000 (02:24 +0100)]
bpo-46850: Remove _PyEval_GetCoroutineOriginTrackingDepth() (GH-32018)
Remove the private undocumented function
_PyEval_GetCoroutineOriginTrackingDepth() from the C API. Call the
public sys.get_coroutine_origin_tracking_depth() function instead.
Change the internal function
_PyEval_SetCoroutineOriginTrackingDepth():
* Remove the 'tstate' parameter;
* Add return value and raises an exception if depth is negative;
* No longer export the function: call the public
sys.set_coroutine_origin_tracking_depth() function instead.
Uniformize also function declarations in pycore_ceval.h.
Victor Stinner [Mon, 21 Mar 2022 00:15:32 +0000 (01:15 +0100)]
bpo-46850: Remove _PyEval_SetAsyncGenFinalizer() (GH-32017)
Remove the following private undocumented functions from the C API:
* _PyEval_GetAsyncGenFirstiter()
* _PyEval_GetAsyncGenFinalizer()
* _PyEval_SetAsyncGenFirstiter()
* _PyEval_SetAsyncGenFinalizer()
Call the public sys.get_asyncgen_hooks() and sys.set_asyncgen_hooks()
functions instead.
Gregory P. Smith [Sun, 20 Mar 2022 19:28:15 +0000 (12:28 -0700)]
bpo-38256: Fix binascii.crc32() when inputs are 4+GiB (GH-32000)
When compiled with `USE_ZLIB_CRC32` defined (`configure` sets this on POSIX systems), `binascii.crc32(...)` failed to compute the correct value when the input data was >= 4GiB. Because the zlib crc32 API is limited to a 32-bit length.
This lines it up with the `zlib.crc32(...)` implementation that doesn't have that flaw.
**Performance:** This also adopts the same GIL releasing for larger inputs logic that `zlib.crc32` has, and causes the Windows build to always use zlib's crc32 instead of our slow C code as zlib is a required build dependency on Windows.
Oleg Iarygin [Sun, 20 Mar 2022 14:39:12 +0000 (17:39 +0300)]
bpo-47015: Update test_os from asyncore to asyncio (GH-31876)
Kevin Mehall [Sun, 20 Mar 2022 14:26:09 +0000 (08:26 -0600)]
bpo-42369: Fix thread safety of zipfile._SharedFile.tell (GH-26974)
The `_SharedFile` tracks its own virtual position into the file as
`self._pos` and updates it after reading or seeking. `tell()` should
return this position instead of calling into the underlying file object,
since if multiple `_SharedFile` instances are being used concurrently on
the same file, another one may have moved the real file position.
Additionally, calling into the underlying `tell` may expose thread
safety issues in the underlying file object because it was called
without taking the lock.
jmcb [Sun, 20 Mar 2022 09:58:13 +0000 (09:58 +0000)]
bpo-46013: Fix confusing kerning on period in docs (GH-29989)
Ma Lin [Sat, 19 Mar 2022 21:42:04 +0000 (05:42 +0800)]
bpo-47040: improve document of checksum functions (gh-31955)
Clarifies a versionchanged note on crc32 & adler32 docs that the workaround is only needed for Python 2 and earlier.
Also cleans up an unnecessary intermediate variable in the implementation.
Authored-By: Ma Lin / animalize
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Arie Bovenberg [Sat, 19 Mar 2022 21:01:17 +0000 (22:01 +0100)]
bpo-46382 dataclass(slots=True) now takes inherited slots into account (GH-31980)
Do not include any members in __slots__ that are already in a base class's __slots__.
Serhiy Storchaka [Sat, 19 Mar 2022 15:14:21 +0000 (17:14 +0200)]
bpo-46996: IDLE: Drop workarounds for old Tk versions (GH-31962)
Serhiy Storchaka [Sat, 19 Mar 2022 14:10:44 +0000 (16:10 +0200)]
bpo-47066: Convert a warning about flags not at the start of the regular expression into error (GH-31994)
andrei kulakov [Sat, 19 Mar 2022 12:27:37 +0000 (08:27 -0400)]
bpo-44544: add textwrap placeholder arg (GH-27671)
Serhiy Storchaka [Sat, 19 Mar 2022 12:13:31 +0000 (14:13 +0200)]
bpo-39394: Improve warning message in the re module (GH-31988)
A warning about inline flags not at the start of the regular
expression now contains the position of the flag.
Andrew Svetlov [Sat, 19 Mar 2022 12:01:46 +0000 (14:01 +0200)]
bpo-47057: Use FASTCALL convention for FutureIter.throw() (GH-31973)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Hugo van Kemenade [Fri, 18 Mar 2022 19:45:37 +0000 (21:45 +0200)]
bpo-47022: Document asynchat, asyncore and smtpd removals in 3.12 (GH-31891)
Document the deprecation of asyncore, asynchat, and smtpd with a slated removal in Python 3.12 thanks to PEP 594.
Jelle Zijlstra [Fri, 18 Mar 2022 17:56:36 +0000 (10:56 -0700)]
bpo-43224: Add TypeVarTuple.__name__ (GH-31954)
I noticed that TypeVar and ParamSpec put their name in a __name__
attribute, but TypeVarTuple doesn't. Let's be consistent.
Steve Dower [Fri, 18 Mar 2022 17:19:28 +0000 (17:19 +0000)]
bpo-47037: Test debug builds on Windows in CI so that native assertions are noticed sooner (GH-31965)
Julien Palard [Fri, 18 Mar 2022 13:48:58 +0000 (14:48 +0100)]
[doc] Some more make suspicious false positives. (GH-31977)
Pablo Galindo Salgado [Fri, 18 Mar 2022 12:03:22 +0000 (12:03 +0000)]
bpo-46968: Check for 'sys/auxv.h' in the configure script (GH-31961)
Christian Heimes [Fri, 18 Mar 2022 11:27:20 +0000 (13:27 +0200)]
bpo-47037: Don't test for strftime('%4Y') on Windows (GH-31945)
Victor Stinner [Fri, 18 Mar 2022 10:16:55 +0000 (11:16 +0100)]
bpo-45786: Remove _PyFrame_Fini() and _PyFrame_DebugMallocStats() (GH-31874)
Remove private empty _PyFrame_Fini() and _PyFrame_DebugMallocStats()
functions.
Dennis Sweeney [Fri, 18 Mar 2022 10:10:31 +0000 (06:10 -0400)]
summarize_stats.py: add pairs by opcode (GH-31957)
Miro Hrončok [Fri, 18 Mar 2022 09:53:29 +0000 (10:53 +0100)]
bpo-45413: Define "posix_venv", "nt_venv" and "venv" sysconfig installation schemes (GH-31034)
Define *posix_venv* and *nt_venv* sysconfig installation schemes
to be used for bootstrapping new virtual environments.
Add *venv* sysconfig installation scheme to get the appropriate one of the above.
The schemes are identical to the pre-existing
*posix_prefix* and *nt* install schemes.
The venv module now uses the *venv* scheme to create new virtual environments
instead of hardcoding the paths depending only on the platform. Downstream
Python distributors customizing the *posix_prefix* or *nt* install
scheme in a way that is not compatible with the install scheme used in
virtual environments are encouraged not to customize the *venv* schemes.
When Python itself runs in a virtual environment,
sysconfig.get_default_scheme and
sysconfig.get_preferred_scheme with `key="prefix"` returns
*venv*.
Serhiy Storchaka [Fri, 18 Mar 2022 09:05:18 +0000 (11:05 +0200)]
bpo-40296: Fix supporting generic aliases in pydoc (GH-30253)
Bader Zaidan [Thu, 17 Mar 2022 23:37:52 +0000 (00:37 +0100)]
bpo-46421: Fix unittest filename evaluation when called as a module (GH-30654)
Pieter Eendebak [Thu, 17 Mar 2022 23:10:36 +0000 (00:10 +0100)]
bpo-47005: Improve performance of bytearray_repeat and bytearray_irepeat (GH-31856)
Andrew Svetlov [Thu, 17 Mar 2022 20:51:40 +0000 (22:51 +0200)]
bpo-34790: Remove passing coroutine objects to asyncio.wait() (GH-31964)
Co-authored-by: Yury Selivanov <yury@edgedb.com>
David CARLIER [Thu, 17 Mar 2022 20:40:00 +0000 (20:40 +0000)]
bpo-46030: socket module add couple of FreeBSD constants. (GH-30018)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Erlend Egeberg Aasland [Thu, 17 Mar 2022 16:53:29 +0000 (17:53 +0100)]
Fix whitespace error in setup.py (GH-31960)
Serhiy Storchaka [Thu, 17 Mar 2022 16:32:53 +0000 (18:32 +0200)]
bpo-47042: Fix testing the HTML output in test_pydoc (GH-31959)
Previously it tested that that the actual output contains every non-whitespace
character from the expected output (ignoring order and repetitions).
Now it will test that the actual output contains the same lines as the expected
output, in the same order, ignoring indentation and empty lines.
Mark Shannon [Thu, 17 Mar 2022 16:14:57 +0000 (16:14 +0000)]
Use low bit of LOAD_GLOBAL's oparg to indicate whether it should push an additional NULL. (GH-31933)
Christian Heimes [Thu, 17 Mar 2022 11:09:57 +0000 (13:09 +0200)]
bpo-40280: Skip more tests on Emscripten (GH-31947)
- lchmod, lchown are not fully implemented
- skip umask tests
- cannot fstat unlinked or renamed files yet
- ignore musl libc issues that affect Emscripten
Serhiy Storchaka [Thu, 17 Mar 2022 11:05:52 +0000 (13:05 +0200)]
bpo-46996: Remove support of Tcl/Tk < 8.5.12 (GH-31839)
Inada Naoki [Thu, 17 Mar 2022 09:00:56 +0000 (18:00 +0900)]
Do not run test_gdb when gdb embeds Python 2. (GH-31956)
Serhiy Storchaka [Thu, 17 Mar 2022 07:52:24 +0000 (09:52 +0200)]
bpo-46981: Remove typing._TypingEmpty (GH-31836)
* get_args(Tuple[()]) now returns () instead of ((),).
* Tuple[Unpack[Ts]][()] now returns the result equal to Tuple[()].
Erlend Egeberg Aasland [Thu, 17 Mar 2022 05:58:25 +0000 (06:58 +0100)]
bpo-44859: Raise more accurate exceptions in `sqlite3` (GH-27695)
* Improve exception compliance with PEP 249
* Raise InterfaceError instead of ProgrammingError for SQLITE_MISUSE.
If SQLITE_MISUSE is raised, it is a sqlite3 module bug. Users of the
sqlite3 module are not responsible for using the SQLite C API correctly.
* Don't overwrite BufferError with ValueError when conversion to BLOB fails.
* Raise ProgrammingError instead of Warning if user tries to execute() more
than one SQL statement.
* Raise ProgrammingError instead of ValueError if an SQL query contains null characters.
* Make sure `_pysqlite_set_result` raises an exception if it returns -1.
Jelle Zijlstra [Thu, 17 Mar 2022 03:02:26 +0000 (20:02 -0700)]
bpo-46480: add typing.assert_type (GH-30843)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: David Foster <david@dafoster.net>
Carlos Damazio [Thu, 17 Mar 2022 02:41:02 +0000 (23:41 -0300)]
bpo-22859: deprecate unittest.main.TestProgram.usageExit (GH-30293)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Andrew Svetlov [Thu, 17 Mar 2022 01:03:09 +0000 (03:03 +0200)]
bpo-47039: Normalize repr() of asyncio future and task objects (GH-31950)
Andrew Svetlov [Thu, 17 Mar 2022 00:54:36 +0000 (02:54 +0200)]
bpo-47038: Increase a test timeout for slow CI machines (GH-31951)
Andrew Svetlov [Wed, 16 Mar 2022 23:20:29 +0000 (01:20 +0200)]
bpo-47038: Rewrite missed asyncio.wait_for test to use IsolatedAnsyncioTestCase (GH-31946)
Andrew Svetlov [Wed, 16 Mar 2022 19:49:18 +0000 (21:49 +0200)]
bpo-47038: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase (GH-31942)
Serhiy Storchaka [Wed, 16 Mar 2022 17:39:00 +0000 (19:39 +0200)]
bpo-45979: Fix Tkinter tests with old Tk (>= 8.5.12) (GH-31938)
Alex Waygood [Wed, 16 Mar 2022 15:51:26 +0000 (15:51 +0000)]
bpo-46769: Improve documentation for `typing.TypeVar` (GH-31712)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Steve Dower [Wed, 16 Mar 2022 15:23:35 +0000 (15:23 +0000)]
Fix some Windows release build script issues (GH-31931)
* Fix the condition used when excluding ARM64 packages from publish
* Do not publish anything unless the traditional installer works
* Fix disabling of MSI build
* Add override conditions for publish steps
* Allow overriding the Nuget version number during build
Andrew Svetlov [Wed, 16 Mar 2022 14:59:12 +0000 (16:59 +0200)]
Rewrite asyncio.Queue tests with IsolatedAsyncioTestCace (#31935)
Steve Dower [Wed, 16 Mar 2022 01:36:20 +0000 (01:36 +0000)]
bpo-47032: Ensure Windows install builds fail correctly with a non-zero exit code when part of the build fails (GH-31921)
Steve Dower [Wed, 16 Mar 2022 00:46:33 +0000 (00:46 +0000)]
bpo-46948: Fix launcher installer build failure due to first part of fix (GH-31920)
Steve Dower [Wed, 16 Mar 2022 00:44:17 +0000 (00:44 +0000)]
In Windows release builds, do not attempt to copy Tcl/Tk for ARM64 when it is not being published (GH-31918)
Mark Shannon [Wed, 16 Mar 2022 00:08:37 +0000 (00:08 +0000)]
bpo-46841: Don't scan backwards in bytecode (GH-31901)
Christian Heimes [Tue, 15 Mar 2022 20:55:35 +0000 (22:55 +0200)]
bpo-40280: Detect presence of time.tzset and thread_time clock (GH-31898)
Christian Heimes [Tue, 15 Mar 2022 20:03:04 +0000 (22:03 +0200)]
bpo-47024: Update OpenSSL to 1.1.1n (GH-31895)
Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
Mark Shannon [Tue, 15 Mar 2022 17:06:21 +0000 (17:06 +0000)]
bpo-45923: Decouple suspension of tracing from tracing flag. (GH-31908)
Mariusz Felisiak [Tue, 15 Mar 2022 16:55:10 +0000 (17:55 +0100)]
bpo-46907: Update Windows installer to SQLite 3.38.1. (GH-31655)
Christian Heimes [Tue, 15 Mar 2022 16:14:15 +0000 (18:14 +0200)]
bpo-40280: Skip wakeup_fd pipe tests on Emscripten (GH-31909)
Mariusz Felisiak [Tue, 15 Mar 2022 15:04:41 +0000 (16:04 +0100)]
bpo-46907: Update macOS installer to SQLite 3.38.1. (GH-31656)
Maximilian Hils [Tue, 15 Mar 2022 14:59:02 +0000 (15:59 +0100)]
bpo-43253: Don't call shutdown() for invalid socket handles (GH-31892)
Kumar Aditya [Tue, 15 Mar 2022 13:27:30 +0000 (18:57 +0530)]
bpo-46993: Speed up bytearray creation from list and tuple (GH-31834)
Kumar Aditya [Tue, 15 Mar 2022 13:25:43 +0000 (18:55 +0530)]
bpo-20392: Fix inconsistency with uppercase file extensions in mimetypes.guess_type (GH-30229)
Andrew Svetlov [Tue, 15 Mar 2022 13:22:26 +0000 (15:22 +0200)]
Drop accidentally added whitespaces in asyncio internals (GH-31900)
Christian Heimes [Tue, 15 Mar 2022 09:41:04 +0000 (11:41 +0200)]
bpo-46587: Skip tests if strftime does not support glibc extension (GH-31873)
Co-authored-by: Victor Stinner <vstinner@python.org>
Michael P. Nitowski [Tue, 15 Mar 2022 09:01:03 +0000 (05:01 -0400)]
bpo-46557: Log captured warnings without format string (GH-30975)
Hugo van Kemenade [Tue, 15 Mar 2022 08:29:10 +0000 (10:29 +0200)]
But Add missing newline to NEWS entry (GH-31893)
Inada Naoki [Tue, 15 Mar 2022 08:04:11 +0000 (17:04 +0900)]
Tools/gdb: Drop code to support Python 2. (GH-31717)
Irit Katriel [Mon, 14 Mar 2022 23:28:54 +0000 (23:28 +0000)]
bpo-43721: Fix docstrings for property.getter/setter/deleter (GH-31046)
Ned Deily [Mon, 14 Mar 2022 20:30:46 +0000 (16:30 -0400)]
Revert "bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820)" (GH-31879)
This reverts commit
c99ac3c364ee21be72263791b71ee8b55f64de08
as it breaks test_bdb and test_distutils with installed Pythons.
slateny [Mon, 14 Mar 2022 19:57:10 +0000 (12:57 -0700)]
bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548)
Dennis Sweeney [Mon, 14 Mar 2022 18:53:41 +0000 (14:53 -0400)]
git ignore Lib/site-packages (GH-31862)
Victor Stinner [Mon, 14 Mar 2022 17:39:33 +0000 (18:39 +0100)]
bpo-31415: importtime was made by Inada Naoki (GH-31875)
Oleg Iarygin [Mon, 14 Mar 2022 16:04:22 +0000 (19:04 +0300)]
bpo-46920: Remove code that has explainers why it was disabled (GH-31813)
Oleg Iarygin [Mon, 14 Mar 2022 16:03:21 +0000 (19:03 +0300)]
bpo-46920: Remove disabled debug code added decades ago and likely unnecessary (GH-31812)
Oleg Iarygin [Mon, 14 Mar 2022 16:02:32 +0000 (19:02 +0300)]
bpo-46920: Remove code that has no explainer why it was disabled (GH-31814)
Victor Stinner [Mon, 14 Mar 2022 15:51:51 +0000 (16:51 +0100)]
bpo-46906: Mention native endian in PyFloat_Pack8() doc (GH-31866)
Christian Heimes [Mon, 14 Mar 2022 13:40:28 +0000 (15:40 +0200)]
bpo-40280: select: Use NULL for empty fdset (GH-31865)
wasm32-emscripten does not support exceptfds and requires NULL. Python
now passes NULL instead of a fdset pointer when the input list is empty.
This works fine on all platforms and might even be a tiny bit faster.
Hugo van Kemenade [Mon, 14 Mar 2022 13:28:57 +0000 (15:28 +0200)]
CI: Fix patchcheck (GH-31708)
Dong-hee Na [Mon, 14 Mar 2022 12:48:00 +0000 (21:48 +0900)]
bpo-46987: Remove _PySys_GetObjectId / _PySys_GetObjectId (GH-31835)
Andrew Svetlov [Mon, 14 Mar 2022 11:54:13 +0000 (13:54 +0200)]
bpo-46994: Accept explicit contextvars.Context in asyncio create_task() API (GH-31837)
Crowthebird [Mon, 14 Mar 2022 01:23:59 +0000 (09:23 +0800)]
bpo-39829: Fix `__len__()` is called twice in list() constructor (GH-31816)
Andrew Svetlov [Sun, 13 Mar 2022 21:28:45 +0000 (23:28 +0200)]
bpo-47003: Cleanup _overlapped module (GH-31848)
Jason R. Coombs [Sun, 13 Mar 2022 19:53:29 +0000 (15:53 -0400)]
bpo-47004: Sync with importlib_metadata 4.11.3. (#31854)
Pradyun Gedam [Sun, 13 Mar 2022 18:49:28 +0000 (18:49 +0000)]
bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820)
Pradyun Gedam [Sun, 13 Mar 2022 18:14:20 +0000 (18:14 +0000)]
bpo-46985: Upgrade bundled pip to 22.0.4 (GH-31819)
Alex Grönholm [Sun, 13 Mar 2022 16:42:29 +0000 (18:42 +0200)]
bpo-46805: Add low level UDP socket functions to asyncio (GH-31455)
Andrew Svetlov [Sun, 13 Mar 2022 16:34:46 +0000 (18:34 +0200)]
bpo-46995: Deprecate missing asyncio.Task.set_name() for third-party task implementations (GH-31838)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Illia Volochii [Sat, 12 Mar 2022 23:54:59 +0000 (01:54 +0200)]
bpo-43215: Document Happy Eyeballs args of asyncio.open_connection (GH-24525)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
andrei kulakov [Sat, 12 Mar 2022 17:26:17 +0000 (12:26 -0500)]
bpo-37529: Add test for guessing extensions (GH-28243)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Matthew Rahtz [Sat, 12 Mar 2022 12:20:12 +0000 (12:20 +0000)]
bpo-43224: Implement PEP 646 changes to genericaliasobject.c (GH-31019)
Specifically, prepare for starring of tuples via a new genericalias iter type. GenericAlias also partially supports the iterator protocol after this change.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Jelle Zijlstra [Sat, 12 Mar 2022 02:17:45 +0000 (18:17 -0800)]
bpo-46644: Fix test_typing test broken by GH-31151 due to a merge race (GH-31833)
Gregory Beauregard [Sat, 12 Mar 2022 01:12:17 +0000 (17:12 -0800)]
bpo-46644: Remove callable() requirement from typing._type_check (GH-31151)
We also remove all the tests that check for integer literals.
Brandt Bucher [Sat, 12 Mar 2022 00:31:50 +0000 (16:31 -0800)]
bpo-46841: Add a _Py_SET_OPCODE macro (GH-31780)
Victor Stinner [Fri, 11 Mar 2022 23:10:02 +0000 (00:10 +0100)]
bpo-46906: Add PyFloat_Pack8() to the C API (GH-31657)
Add new functions to pack and unpack C double (serialize and
deserialize):
* PyFloat_Pack2(), PyFloat_Pack4(), PyFloat_Pack8()
* PyFloat_Unpack2(), PyFloat_Unpack4(), PyFloat_Unpack8()
Document these functions and add unit tests.
Rename private functions and move them from the internal C API
to the public C API:
* _PyFloat_Pack2() => PyFloat_Pack2()
* _PyFloat_Pack4() => PyFloat_Pack4()
* _PyFloat_Pack8() => PyFloat_Pack8()
* _PyFloat_Unpack2() => PyFloat_Unpack2()
* _PyFloat_Unpack4() => PyFloat_Unpack4()
* _PyFloat_Unpack8() => PyFloat_Unpack8()
Replace the "unsigned char*" type with "char*" which is more common
and easy to use.
Christian Heimes [Fri, 11 Mar 2022 22:25:14 +0000 (00:25 +0200)]
bpo-40280: Disable AF_UNIX, AF_PACKET, SO_REUSE* on Emscripten (#31829)
Emscripten's socket emulation is limited. AF_UNIX, AF_PACKET, setsockopt(), and most SO_* constants are not supported.