]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Ezio Melotti [Mon, 25 Apr 2022 10:05:54 +0000 (12:05 +0200)]
gh-91888: add a `:gh:` role to the documentation (#91889)
* Add a new :gh:`...` role for GitHub issues.
* Fix a GitHub id to use the :gh: role.
* Add Misc/NEWS entry.
* Refactoring and rephrasing.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Barry Warsaw [Sun, 24 Apr 2022 22:50:07 +0000 (15:50 -0700)]
Rewrite audio.py to jive with image.py (#91886)
Similar to the rewrite of email/mime/image.py and associated test after the
deprecation of imghdr.py, thisrewrites email/mime/audio.py and associated
tests after the deprecation of sndhdr.py.
Closes #91885
Jelle Zijlstra [Sun, 24 Apr 2022 22:02:57 +0000 (15:02 -0700)]
gh-91821: Make decimal test succeed consistently (#91825)
The test relies on precision being set to 9, but some ways of
invoking this test leave it set to 28 instead. I don't know
exactly how it happens, but setting the precision directly should
make the behavior consistent.
Jelle Zijlstra [Sun, 24 Apr 2022 21:13:15 +0000 (14:13 -0700)]
gh-91491: What's New in 3.11 section for typing PEPs (#91721)
Other aspects of typing aren't covered yet; I'll do that in a
separate PR.
Serhiy Storchaka [Sun, 24 Apr 2022 07:23:59 +0000 (10:23 +0300)]
Simplify testing the warning filename (GH-91868)
The context manager result has the "filename" attribute.
Zac Hatfield-Dodds [Sun, 24 Apr 2022 00:55:22 +0000 (17:55 -0700)]
gh-91230: Concise catch_warnings with simplefilter (#91435)
Brett Cannon [Sat, 23 Apr 2022 21:48:17 +0000 (14:48 -0700)]
gh-91217: deprecate spwd (#91846)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Serhiy Storchaka [Sat, 23 Apr 2022 15:49:23 +0000 (18:49 +0300)]
RE: Pre-split the list of opcode names (GH-91859)
1. It makes them interned.
2. It allows to add comments to individual opcodes.
Christian Heimes [Sat, 23 Apr 2022 12:59:33 +0000 (15:59 +0300)]
gh-84461: Add --enable-wasm-pthreads and more file systems (GH-91820)
Serhiy Storchaka [Sat, 23 Apr 2022 09:50:42 +0000 (12:50 +0300)]
gh-91308: Simplify parsing inline flag "x" (verbose) (GH-91855)
Serhiy Storchaka [Sat, 23 Apr 2022 09:49:06 +0000 (12:49 +0300)]
RE: Add more tests for inline flag "x" and re.VERBOSE (GH-91854)
Christian Heimes [Sat, 23 Apr 2022 07:52:16 +0000 (10:52 +0300)]
gh-84461: Add sys._emscripten_info, improve docs and build (gh-91781)
Pablo Galindo Salgado [Sat, 23 Apr 2022 02:16:48 +0000 (03:16 +0100)]
gh-88116: Enhance the inspect frame APIs to use the extended position information (GH-91531)
slateny [Sat, 23 Apr 2022 00:30:52 +0000 (17:30 -0700)]
gh-85864: Mark positional-only args in io docs (#91683)
Shantanu [Fri, 22 Apr 2022 23:01:52 +0000 (16:01 -0700)]
gh-91547: Remove "Undocumented modules" page (#91682)
Brett Cannon [Fri, 22 Apr 2022 22:48:03 +0000 (15:48 -0700)]
gh-91217: deprecate-sndhdr (#91806)
Also inline necessary functionality from `sndhdr` into `email.mime.audio` for `MIMEAudio`.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Géry Ogam [Fri, 22 Apr 2022 22:47:09 +0000 (00:47 +0200)]
bpo-46720: Add support for path-like objects to multiprocessing.set_executable for Windows (GH-31279)
This bring the API to be on a par with Unix-like systems.
Serhiy Storchaka [Fri, 22 Apr 2022 18:37:46 +0000 (21:37 +0300)]
gh-91575: Add a script for generating data for case-insensitive matching in re (GH-91660)
Also test that all extra cases are in BMP.
Serhiy Storchaka [Fri, 22 Apr 2022 16:53:10 +0000 (19:53 +0300)]
gh-91700: Validate the group number in conditional expression in RE (GH-91702)
In expression (?(group)...) an appropriate re.error is now
raised if the group number refers to not defined group.
Previously it raised RuntimeError: invalid SRE code.
Serhiy Storchaka [Fri, 22 Apr 2022 15:35:28 +0000 (18:35 +0300)]
gh-90568: Fix exception type for \N with a named sequence in RE (GH-91665)
re.error is now raised instead of TypeError.
Guido van Rossum [Fri, 22 Apr 2022 14:46:26 +0000 (07:46 -0700)]
gh-89279: In ceval.c, redefine some macros for speed (#32387)
Macros Py_DECREF, Py_XDECREF, Py_IS_TYPE, _Py_atomic_load_32bit_impl
and _Py_DECREF_SPECIALIZED are redefined as macros
that completely replace the inline functions of the same name.
These three came out in the top four of functions that (in MSVC)
somehow weren't inlined.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Dominic Davis-Foster [Fri, 22 Apr 2022 14:28:39 +0000 (15:28 +0100)]
gh-91764: Mark version typing.Unpack and LiteralString were added in (#91817)
Closes GH-91764
Erlend Egeberg Aasland [Fri, 22 Apr 2022 12:59:18 +0000 (14:59 +0200)]
gh-89653: PEP 670: Amend docs (GH-91813)
Victor Stinner [Fri, 22 Apr 2022 11:05:36 +0000 (13:05 +0200)]
gh-80527: Deprecate PEP 623 Unicode functions (#91801)
Deprecate functions:
* PyUnicode_AS_DATA()
* PyUnicode_AS_UNICODE()
* PyUnicode_GET_DATA_SIZE()
* PyUnicode_GET_SIZE()
Previously, these functions were macros and so it wasn't possible to
decorate them with Py_DEPRECATED().
Petr Viktorin [Fri, 22 Apr 2022 10:44:43 +0000 (12:44 +0200)]
Docs: Clarify availability of PyOS_CheckStack (GH-91816)
Sam Ezeh [Fri, 22 Apr 2022 04:27:15 +0000 (05:27 +0100)]
gh-91291: Accept attributes as keyword arguments in decimal.localcontext (#32242)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Matthew Rahtz [Fri, 22 Apr 2022 04:22:53 +0000 (05:22 +0100)]
bpo-43224: Implement pickling of TypeVarTuples (#32119)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Brett Cannon [Fri, 22 Apr 2022 02:28:34 +0000 (19:28 -0700)]
gh-91217: deprecate-pipes (GH-91779)
Erlend Egeberg Aasland [Fri, 22 Apr 2022 01:45:16 +0000 (03:45 +0200)]
gh-69093: Add indexing and slicing support to sqlite3.Blob (#91599)
Authored-by: Aviv Palivoda <palaviv@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@innova.no>
Inada Naoki [Fri, 22 Apr 2022 01:39:24 +0000 (10:39 +0900)]
gh-91156: Use `locale.getencoding()` instead of getpreferredencoding (GH-91732)
Co-authored-by: Victor Stinner <vstinner@python.org>
Victor Stinner [Thu, 21 Apr 2022 21:26:25 +0000 (23:26 +0200)]
gh-89653: Add assertions to unicodeobject.h functions (#91800)
Victor Stinner [Thu, 21 Apr 2022 21:07:13 +0000 (23:07 +0200)]
gh-89653: PEP 670: Convert unicodeobject.h macros to functions (#91799)
Convert unicodeobject.h macros to static inline functions:
* PyUnicode_AS_DATA()
* PyUnicode_AS_UNICODE()
* PyUnicode_GET_DATA_SIZE()
* PyUnicode_GET_SIZE()
Static inline functions are wrapped by macros which casts arguments
with _PyObject_CAST() to prevent introducing new compiler warnings
when passing "const PyObject*".
Victor Stinner [Thu, 21 Apr 2022 21:04:01 +0000 (23:04 +0200)]
gh-89373: _Py_Dealloc() checks tp_dealloc exception (#32357)
If Python is built in debug mode, _Py_Dealloc() now ensures that the
tp_dealloc function leaves the current exception unchanged.
Victor Stinner [Thu, 21 Apr 2022 21:00:42 +0000 (23:00 +0200)]
gh-79315: Add Include/cpython/pythread.h header (#91798)
Victor Stinner [Thu, 21 Apr 2022 21:00:26 +0000 (23:00 +0200)]
gh-79315: Add Include/cpython/modsupport.h header (#91797)
Victor Stinner [Thu, 21 Apr 2022 20:44:23 +0000 (22:44 +0200)]
gh-89653: PEP 670: Group deprecated API in unicodeobject.h (#91796)
Victor Stinner [Thu, 21 Apr 2022 20:07:19 +0000 (22:07 +0200)]
gh-91768: C API no longer use "const PyObject*" type (#91769)
Py_REFCNT(), Py_TYPE(), Py_SIZE() and Py_IS_TYPE() functions argument
type is now "PyObject*", rather than "const PyObject*".
* Replace also "const PyObject*" with "PyObject*" in functions:
* _Py_strhex_impl()
* _Py_strhex_with_sep()
* _Py_strhex_bytes_with_sep()
* Remove _PyObject_CAST_CONST() and _PyVarObject_CAST_CONST() macros.
* Py_IS_TYPE() can now use Py_TYPE() in its implementation.
Victor Stinner [Thu, 21 Apr 2022 19:53:18 +0000 (21:53 +0200)]
gh-89653: PEP 670: Convert unicodeobject.h macros to functions (#91773)
Convert unicodeobject.h macros to static inline functions:
* PyUnicode_MAX_CHAR_VALUE()
* PyUnicode_READ()
* PyUnicode_READY()
* PyUnicode_READ_CHAR()
* PyUnicode_WRITE()
Move PyUnicode_READY() after _PyUnicode_Ready(), since it uses
_PyUnicode_Ready().
Static inline functions are wrapped by macros which casts arguments
with _PyObject_CAST() and casts 'kind' arguments to "unsigned int" to
prevent introducing new compiler warnings when passing "const
PyObject*".
Guido van Rossum [Thu, 21 Apr 2022 18:53:57 +0000 (11:53 -0700)]
GH-91719: Make MSVC generate somewhat faster switch code (#91718)
Apparently a switch on an 8-bit quantity where all cases are
present generates a more efficient jump (doing only one indexed
memory load instead of two).
So we make opcode and use_tracing uint8_t, and generate a macro
full of extra `case NNN:` lines for all unused opcodes.
See https://github.com/faster-cpython/ideas/issues/321#issuecomment-
1103263673
Mark Shannon [Thu, 21 Apr 2022 18:08:36 +0000 (19:08 +0100)]
GH-88116: Document that PyCodeNew is dangerous, and make PyCode_NewEmpty less dangerous. (GH-91790)
Mark Shannon [Thu, 21 Apr 2022 17:14:01 +0000 (18:14 +0100)]
GH-88756: Update docs for PEP 523 eval function type. (GH-91788)
Petr Viktorin [Thu, 21 Apr 2022 16:03:25 +0000 (18:03 +0200)]
bpo-47169: Export PyOS_CheckStack on Windows (GH-32414)
Mark Shannon [Thu, 21 Apr 2022 15:10:37 +0000 (16:10 +0100)]
GH-88116: Use a compact format to represent end line and column offsets. (GH-91666)
* Stores all location info in linetable to conform to PEP 626.
* Remove column table from code objects.
* Remove end-line table from code objects.
* Document new location table format
Victor Stinner [Thu, 21 Apr 2022 14:52:54 +0000 (16:52 +0200)]
gh-89653: PEP 670: Convert tuple macros to functions (#91786)
Convert macros to static inline functions:
* PyTuple_GET_SIZE()
* PyTuple_SET_ITEM()
* PyList_GET_SIZE()
* PyList_SET_ITEM()
Add a macro converting arguments to PyTupleObject*, PyListObject* or
PyObject* to prevent emitting new compiler warnings.
According to PEP 670, PyTuple_GET_ITEM() and PyList_GET_ITEM() are
left as macros.
Victor Stinner [Thu, 21 Apr 2022 14:40:34 +0000 (16:40 +0200)]
gh-91782: Define static_assert() macro on FreeBSD (#91787)
On FreeBSD, if the static_assert() macro is not defined, define it in
Python until <sys/cdefs.h> supports C11:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255290
Victor Stinner [Thu, 21 Apr 2022 14:01:47 +0000 (16:01 +0200)]
gh-89653: PEP 670: Convert PyWeakref_GET_OBJECT() to function (#91785)
Convert the PyWeakref_GET_OBJECT() macro to a static inline function.
Add an assertion to check the argument with PyWeakref_Check(). Add a
macro converting the argument to PyObject* to prevent emitting new
compiler warning.
Dennis Sweeney [Thu, 21 Apr 2022 06:06:35 +0000 (02:06 -0400)]
gh-91636: Don't clear required fields of function objects (GH-91651)
Iman Kermani [Thu, 21 Apr 2022 01:45:24 +0000 (06:15 +0430)]
bpo-42066: CookieJar cookies should not be sorted (GH-22745)
Victor Stinner [Thu, 21 Apr 2022 01:14:57 +0000 (03:14 +0200)]
gh-90623: signal.raise_signal() calls PyErr_CheckSignals() (#91756)
signal.raise_signal() and os.kill() now call PyErr_CheckSignals() to
check immediately for pending signals.
Victor Stinner [Thu, 21 Apr 2022 01:10:51 +0000 (03:10 +0200)]
Revert "gh-85567: Register a cleanup function to close files for FileType objects in argparse (#32257)" (#91771)
This reverts commit
328dbc051f84bd5fdf61101bb4fa61d85f8b7feb .
Victor Stinner [Thu, 21 Apr 2022 00:51:17 +0000 (02:51 +0200)]
gh-89653: PEP 670: Convert unicodeobject.h macros to functions (#91705)
Convert unicodeobject.h macros to static inline functions:
* PyUnicode_CHECK_INTERNED()
* PyUnicode_DATA(), _PyUnicode_COMPACT_DATA(),
_PyUnicode_NONCOMPACT_DATA()
* PyUnicode_GET_LENGTH()
* PyUnicode_IS_ASCII()
* PyUnicode_IS_COMPACT()
* PyUnicode_IS_COMPACT_ASCII()
* PyUnicode_IS_READY()
Reorder functions to declare functions before their first usage.
Static inline functions are wrapped by macros which casts
arguments with _PyObject_CAST() to prevent introducing
new compiler warnings when passing "const PyObject*".
Raymond Hettinger [Wed, 20 Apr 2022 21:02:47 +0000 (16:02 -0500)]
Minor improvements to grammar and markup. (GH-91762)
Mariatta Wijaya [Wed, 20 Apr 2022 19:18:30 +0000 (12:18 -0700)]
Fix typo in GH Issue template (GH-91759)
Typo in the word enhancement.
Victor Stinner [Wed, 20 Apr 2022 17:26:40 +0000 (19:26 +0200)]
gh-91731: Replace Py_BUILD_ASSERT() with static_assert() (#91730)
Python 3.11 now uses C11 standard which adds static_assert()
to <assert.h>.
* In pytime.c, replace Py_BUILD_ASSERT() with preprocessor checks on
SIZEOF_TIME_T with #error.
* On macOS, py_mach_timebase_info() now accepts timebase members with
the same size than _PyTime_t.
* py_get_monotonic_clock() now saturates GetTickCount64() to
_PyTime_MAX: GetTickCount64() is unsigned, whereas _PyTime_t is
signed.
slateny [Wed, 20 Apr 2022 16:23:40 +0000 (09:23 -0700)]
bpo-23747: Enhance platform doc, document default behavior (GH-31462)
Dennis Sweeney [Wed, 20 Apr 2022 15:15:45 +0000 (11:15 -0400)]
Cast to (destructor) to fix compiler warnings (GH-91711)
dependabot[bot] [Wed, 20 Apr 2022 15:04:56 +0000 (08:04 -0700)]
build(deps): bump actions/upload-artifact from 2.3.1 to 3 (#32227)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2.3.1 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2.3.1...v3)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
dependabot[bot] [Wed, 20 Apr 2022 14:53:08 +0000 (07:53 -0700)]
build(deps): bump actions/cache from 2.1.7 to 3.0.1 (#32228)
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.7 to 3.0.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2.1.7...v3.0.1)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Dong-hee Na [Wed, 20 Apr 2022 14:10:41 +0000 (23:10 +0900)]
gh-91632: Fix generic_alias_iterator to be finalized at exit. (GH-91727)
Irit Katriel [Wed, 20 Apr 2022 12:43:10 +0000 (13:43 +0100)]
gh-89770: [PEP-678] add exception notes to tutorial (GH-30441)
Victor Stinner [Wed, 20 Apr 2022 11:19:05 +0000 (13:19 +0200)]
gh-91731: Build Python with -std=c11 (#91733)
Python is now built with "-std=c11" compiler option, rather than
"-std=c99".
Jakub Kulík [Wed, 20 Apr 2022 10:46:08 +0000 (12:46 +0200)]
gh-91734: Fix ossaudio support on Solaris (GH-91735)
slateny [Wed, 20 Apr 2022 08:24:53 +0000 (01:24 -0700)]
bpo-30718: Add information about text buffering (GH-32351)
Raymond Hettinger [Wed, 20 Apr 2022 06:21:54 +0000 (01:21 -0500)]
Clean-up the argparse docs quick links table (GH-91726)
Inada Naoki [Wed, 20 Apr 2022 05:06:29 +0000 (14:06 +0900)]
gh-91020: Add `PyBytes_Type.tp_alloc` for subclass (GH-91686)
slateny [Wed, 20 Apr 2022 03:59:48 +0000 (20:59 -0700)]
Add link to sys.path in os lib (#91679)
dependabot[bot] [Wed, 20 Apr 2022 03:50:07 +0000 (20:50 -0700)]
build(deps): bump actions/checkout from 2 to 3 (#32226)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AJ Jordan [Wed, 20 Apr 2022 01:20:25 +0000 (21:20 -0400)]
Fix awkward sentence in signal docs (#91508)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Nick [Tue, 19 Apr 2022 20:08:06 +0000 (20:08 +0000)]
bpo-46075: Store localhost cookies in CookieJar (#30108)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
dependabot[bot] [Tue, 19 Apr 2022 20:03:58 +0000 (13:03 -0700)]
build(deps): bump actions/setup-python from 2 to 3 (#31630)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v3)
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Dennis Sweeney [Tue, 19 Apr 2022 18:02:19 +0000 (14:02 -0400)]
gh-90667: Add specializations of Py_DECREF when types are known (GH-30872)
Kumar Aditya [Tue, 19 Apr 2022 17:41:36 +0000 (23:11 +0530)]
bpo-46712: share more global strings in deepfreeze (gh-32152)
(for gh-90868)
Irit Katriel [Tue, 19 Apr 2022 17:16:20 +0000 (18:16 +0100)]
gh-74166: make all_errors keyword-only (GH-91704)
Ma Lin [Tue, 19 Apr 2022 16:36:51 +0000 (00:36 +0800)]
bpo-40859: Update Windows build to use xz-5.2.5 (GH-20622)
Ma Lin [Tue, 19 Apr 2022 14:49:36 +0000 (22:49 +0800)]
gh-91616: re module, fix .fullmatch() mismatch when using Atomic Grouping or Possessive Quantifiers (GH-91681)
These jumps should use DO_JUMP0() instead of DO_JUMP():
- JUMP_POSS_REPEAT_1
- JUMP_POSS_REPEAT_2
- JUMP_ATOMIC_GROUP
Victor Stinner [Tue, 19 Apr 2022 14:27:00 +0000 (16:27 +0200)]
gh-91231: Add shutdown_timeout to multiprocessing BaseManager (#32112)
Add an optional keyword 'shutdown_timeout' parameter to the
multiprocessing.BaseManager constructor. Kill the process if
terminate() takes longer than the timeout.
Multiprocessing tests pass test.support.SHORT_TIMEOUT
to BaseManager.shutdown_timeout.
Serhiy Storchaka [Tue, 19 Apr 2022 13:56:51 +0000 (16:56 +0300)]
Add more tests for group names and refs in RE (GH-91695)
Dong-hee Na [Tue, 19 Apr 2022 13:12:46 +0000 (22:12 +0900)]
gh-90699: Use module state to access insert str object. (GH-91693)
slateny [Tue, 19 Apr 2022 09:15:46 +0000 (02:15 -0700)]
Doc: Fix link formatting typo (GH-91659)
Irit Katriel [Tue, 19 Apr 2022 09:09:10 +0000 (10:09 +0100)]
gh-74166: break cycle by clearing the list instead of dropping its reference (GH-91685)
penguin_wwy [Tue, 19 Apr 2022 08:45:08 +0000 (16:45 +0800)]
gh-90997: bpo-46841: Disassembly of quickened code (GH-32099)
Victor Stinner [Tue, 19 Apr 2022 07:53:10 +0000 (09:53 +0200)]
bpo-40421: Cleanup PyFrame C API (GH-32417)
Oleg Iarygin [Tue, 19 Apr 2022 02:56:53 +0000 (05:56 +0300)]
gh-91098: Use Argument Clinic for Object/classobject.c to fix docstrings (#31711)
Closes GH-91098.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Yurii Karabas [Tue, 19 Apr 2022 02:50:59 +0000 (05:50 +0300)]
bpo-46014: Add docs regarding `functools.singledispatch` changes in 3.11 (#32282)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Inada Naoki [Tue, 19 Apr 2022 02:44:36 +0000 (11:44 +0900)]
gh-91526: io: Remove device encoding support from TextIOWrapper (GH-91529)
`TextIOWrapper.__init__()` called `os.device_encoding(file.fileno())` if fileno is 0-2 and encoding=None.
But it is very rarely works, and never documented behavior.
Irit Katriel [Mon, 18 Apr 2022 22:15:41 +0000 (23:15 +0100)]
gh-74166: Add option to get all errors from socket.create_connection (GH-91586)
Bryan Weber [Mon, 18 Apr 2022 21:01:18 +0000 (17:01 -0400)]
gh-91670: Removes `SO` config variable in `sysconfig.py` (#91671)
* Removes SO config variable in sysconfig
Per @warsaw in https://github.com/python/cpython/issues/63754, this was
deprecated in Python 3.4 and was suggested for removal in Python 3.5.
* Add NEWS
* Update Misc/NEWS.d/next/Library/2022-04-18-15-23-24.gh-issue-91670.6eyChw.rst
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Barry Warsaw <barry@python.org>
Co-authored-by: Éric <merwok@netwok.org>
Oleg Iarygin [Mon, 18 Apr 2022 20:43:56 +0000 (23:43 +0300)]
gh-91102: Use Argument Clinic for EncodingMap (#31725)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Barry Warsaw [Mon, 18 Apr 2022 14:34:53 +0000 (07:34 -0700)]
Add some information about where pynche has moved to (#91650)
Kumar Aditya [Mon, 18 Apr 2022 14:18:27 +0000 (19:48 +0530)]
gh-91576: Speed up iteration of strings (#91574)
Ma Lin [Mon, 18 Apr 2022 13:50:40 +0000 (21:50 +0800)]
bpo-47256: Increasing the depth of backtracking in RE (GH-32411)
Limit the maximum capturing group to 2**30-1 on 64-bit platforms
(it was 2**31-1). No change on 32-bit platforms (2**28-1).
It allows to reduce the size of SRE(match_context):
- On 32 bit platform: 36 bytes, no change. (msvc2022)
- On 64 bit platform: 72 bytes -> 56 bytes. (msvc2022/gcc9.4)
which leads to increasing the depth of backtracking.
Serhiy Storchaka [Mon, 18 Apr 2022 09:26:30 +0000 (12:26 +0300)]
gh-91575: Update case-insensitive matching in re to the latest Unicode version (GH-91580)
Thomas Klausner [Mon, 18 Apr 2022 09:12:39 +0000 (11:12 +0200)]
bpo-46053: Fix OSS audio support on NetBSD (GH-30065)
Oleg Iarygin [Mon, 18 Apr 2022 07:27:09 +0000 (10:27 +0300)]
gh-91265: Make old ctypes.macholib tests runned by `python -m test` (gh-32094)
* Move tests from ctypes.macholib.dy* to ctypes.test
Raymond Hettinger [Mon, 18 Apr 2022 05:27:41 +0000 (00:27 -0500)]
Remove ill-formed an unneeded news entry (GH-91657)
Susan Su [Mon, 18 Apr 2022 04:46:18 +0000 (21:46 -0700)]
bpo-21150: Add quick link/summary table to the top of argparse documentation (GH-12005)
No work has been done to move this forward. On the theory that perfect is the enemy of good, I'm going to push it and we can make minor edits as needed afterwards.
Gouvernathor [Mon, 18 Apr 2022 04:26:40 +0000 (06:26 +0200)]
Remove duplicate explanation (GH-91534)
Aditya Aggarwal [Mon, 18 Apr 2022 04:12:33 +0000 (23:12 -0500)]
Update: usage doc for heappushpop (GH-91451)
Oleg Iarygin [Mon, 18 Apr 2022 03:39:32 +0000 (06:39 +0300)]
gh-91118: Fix docstrings that do not honor --without-doc-strings (#31769)
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
achhina [Mon, 18 Apr 2022 01:53:37 +0000 (21:53 -0400)]
gh-85567: Register a cleanup function to close files for FileType objects in argparse (#32257)
* bpo-41395: Register a cleanup function to close files for FileType objects in argparse
* Added import as top level import, and renamed file as fh.