MojoVampire
eafec26ae5
bpo-14156: Make argparse.FileType work correctly for binary file modes when argument is '-' (GH-13165)
...
Also made modes containing 'a' or 'x' act the same as a mode containing 'w' when argument is '-'
(so 'a'/'x' return sys.stdout like 'w', and 'ab'/'xb' return sys.stdout.buffer like 'wb').
2022-03-06 13:49:42 +02:00
Ken Jin
602024e6e1
bpo-46921: Vectorcall support for `super()` (GH-31687)
...
Co-Authored-By: Dong-hee Na <donghee.na@python.org>
2022-03-06 14:21:28 +08:00
Inada Naoki
2d8b764210
bpo-46864: Deprecate PyBytesObject.ob_shash. (GH-31598)
2022-03-06 11:39:10 +09:00
Serhiy Storchaka
6927632492
Remove trailing spaces (GH-31695)
2022-03-05 17:47:00 +02:00
Serhiy Storchaka
ab9301a28f
bpo-46927: Include the type's name in the error message for subscripting non-generic types (GH-31694)
2022-03-05 15:59:24 +02:00
Matt Bogosian
2031149b9a
Lib/typing.py copy edits originating from GH-31061 ( #31684 )
2022-03-05 10:51:55 +08:00
Géry Ogam
46a116c1c9
bpo-38738: Fix formatting of True and False in the threading documentation (GH-31678)
...
* Fix formatting of True and False in the threading documentation
* Update threading.rst
2022-03-04 12:13:09 -08:00
Brandt Bucher
c4d2d57eef
bpo-46841: Fix BINARY_OP's handling of inline caches (GH-31671)
2022-03-04 10:51:27 -08:00
slateny
cedd2473a9
bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631)
2022-03-04 12:35:52 -05:00
Dong-hee Na
d168c728f7
bpo-46541: Remove usage of _Py_IDENTIFIER from lzma module (GH-31683)
2022-03-05 01:38:56 +09:00
Brandt Bucher
586b24d3be
bpo-46841: Fix error message hacks in `GET_AWAITABLE` (GH-31664)
2022-03-04 12:41:17 +00:00
Mark Shannon
03c2a36b2b
bpo-46903: Handle str-subclasses in virtual instance dictionaries. (GH-31658)
2022-03-04 11:31:29 +00:00
Steve Dower
8f31bf4698
bpo-46744: Move Windows ARM64 installation directory to correct ProgramFiles (GH-31677)
2022-03-04 00:50:42 +00:00
Victor Stinner
ec4a580f7c
bpo-46355: Update pythoncapi_compat project URL (GH-31670)
2022-03-04 00:46:56 +01:00
Victor Stinner
ad1b04451d
bpo-46913: Skip test_ctypes.test_shorts() on UBSan (GH-31674)
...
If Python is built with UBSan, test_ctypes now skips test_shorts().
This change allows to run test_ctypes to check for new UBSan regression,
but the known test_shorts() undefined behavior must be fixed.
2022-03-04 00:41:57 +01:00
Victor Stinner
6d0d7d2b8c
bpo-46913: test_hashlib skips _sha3 tests on UBSan (GH-31673)
...
If Python is built with UBSan, test_hashlib skips tests on the _sha3
extension which currently has undefined behaviors.
This change allows to run test_hashlib to check for new UBSan regression,
but the known _sha3 undefined behavior must be fixed.
2022-03-04 00:41:34 +01:00
Brandt Bucher
05a8bc1c94
bpo-46841: Use inline caching for attribute accesses (GH-31640)
2022-03-03 15:31:00 -08:00
Victor Stinner
65b92ccdec
bpo-46913: Fix test_faulthandler.test_read_null() on UBSan (GH31672)
...
Disable undefined behavior sanitizer (UBSan) on
faulthandler._read_null().
2022-03-04 00:25:03 +01:00
Victor Stinner
32f0c82717
bpo-45459: Use type names in the internal C API (GH-31669)
...
Replace "struct xxx" with "xxx" types in the internal C API.
2022-03-03 23:08:07 +01:00
Victor Stinner
0b63215bb1
bpo-45459: Fix PyModuleDef_Slot type in the limited C API (GH-31668)
...
Move the type definition to pytypedefs.h.
2022-03-03 23:06:55 +01:00
Victor Stinner
4173d677a1
bpo-46913: Fix test_faulthandler.test_sigfpe() on UBSAN (GH-31662)
...
Disable undefined behavior sanitizer (UBSAN) on
faulthandler_sigfpe().
2022-03-03 21:45:01 +01:00
Brandt Bucher
127797f572
bpo-46841: Improve the failure stats for COMPARE_OP (GH-31663)
2022-03-03 11:28:47 -08:00
Kumar Aditya
cc400585fa
bpo-46877: export unittest.doModuleCleanups in unittest package ( #31613 )
2022-03-03 10:41:28 -08:00
Mark Shannon
b35603532b
Move check for str-only keys in LOAD_GLOBAL specializations to specialization time. (GH-31659)
2022-03-03 15:17:18 +00:00
vidhya
10117f1d8c
bpo-6634: [doc] clarify that sys.exit() does not always exit the interpreter (GH-31639)
2022-03-03 14:23:47 +00:00
Erlend Egeberg Aasland
88567a9970
bpo-46874: Speed up sqlite3 user-defined aggregate 'step' method (GH-31604)
2022-03-03 22:54:36 +09:00
Mark Shannon
751c9ed801
bpo-46891: Fix creating a new instance of a module subclass with slots (GH-31643)
2022-03-03 10:38:27 +00:00
Inada Naoki
3c4abfab0d
Fix EncodingWarning in libregrtest (GH-31654)
2022-03-03 16:19:56 +09:00
Shantanu
81d968b7c3
bpo-46831: Update __build_class__ comment ( #31522 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-03-02 21:32:57 -08:00
Inada Naoki
3241cba4ec
dict: Fix refleak (GH-31650)
2022-03-03 14:30:58 +09:00
Jelle Zijlstra
59e1ce95f1
bpo-46643: fix NEWS entry (GH-31651)
2022-03-02 21:27:11 -08:00
Inada Naoki
4f74052b45
bpo-40116: dict: Add regression test for iteration order. (GH-31550)
2022-03-03 13:06:29 +09:00
slateny
a8c87a239e
bpo-21910: Clarify docs for codecs writelines method (GH-31245)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-03-02 17:21:41 -08:00
Gregory Beauregard
75d2d945b4
bpo-46643: Fix stringized P.args/P.kwargs with get_type_hints (GH-31238)
2022-03-02 17:14:52 -08:00
Brett Cannon
50ec3453c5
bpo-46860: Respect `--with-suffix` on case-insensitive file systems (GH-31593)
...
Previously, case-insensitive file systems were forced to use `.exe` as the file suffix no matter what `--with-suffix` was set to.
2022-03-02 14:23:59 -08:00
slateny
3257d49d23
bpo-45492: Corrected documentation for co_names in inspect library doc (GH-31456)
2022-03-02 19:03:38 +00:00
Victor Stinner
b6b711a1aa
bpo-46848: Move _PyBytes_Find() to internal C API (GH-31642)
...
Move _PyBytes_Find() and _PyBytes_ReverseFind() functions to the
internal C API.
bytesobject.c now includes pycore_bytesobject.h.
2022-03-02 14:15:26 +01:00
Inada Naoki
03642df1a1
dict: Internal cleanup (GH-31641)
...
* Make empty_key from split table to combined table.
* Use unicode_get_hash() when possible.
2022-03-02 19:05:12 +09:00
Nikita Sobolev
20a1c8ee4b
bpo-46195: Do not add `Optional` in `get_type_hints` (GH-30304)
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-03-01 21:29:46 -08:00
Dennis Sweeney
6ddb09f35b
bpo-46848: Use stringlib/fastsearch in mmap (GH-31625)
...
Speed up mmap.find(). Add _PyBytes_Find() and _PyBytes_ReverseFind().
2022-03-01 23:46:30 -05:00
Inada Naoki
9833bb91e4
bpo-46845: Reduce dict size when all keys are Unicode (GH-31564)
2022-03-02 08:09:28 +09:00
Eric Snow
21099fc064
bpo-46712: Let generate_global_objects.py Run on Earlier Python Versions (gh-31637)
...
https://bugs.python.org/issue46712
2022-03-01 14:29:54 -07:00
Mark Shannon
3b0f1c5a71
bpo-46841: Use inline cache for `BINARY_SUBSCR`. (GH-31618)
2022-03-01 16:00:34 +00:00
Kumar Aditya
e91b0a7139
bpo-46541: remove usage of _Py_IDENTIFIER from _ssl module (GH-31599)
2022-03-02 00:38:21 +09:00
Victor Stinner
9204bb72a2
bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632)
...
Skip tests on ASAN and/or MSAN builds:
* multiprocessing tests
* test___all__
* test_concurrent_futures
* test_decimal
* test_peg_generator
* test_tools
The ASAN job of GitHub Actions no longer excludes these tests.
2022-03-01 15:44:08 +01:00
Dong-hee Na
0cc6364185
bpo-46541: Remove usage of _Py_IDENTIFIER from multibytecodec (GH-31475)
2022-03-01 23:35:43 +09:00
Mark Dickinson
c60e6b6ad7
bpo-46311: Clean up PyLong_FromLong and PyLong_FromLongLong (GH-30496)
2022-03-01 14:20:52 +00:00
Brandt Bucher
7820a5897e
bpo-46841: Use inline caching for `COMPARE_OP` (GH-31622)
2022-03-01 13:53:13 +00:00
Inada Naoki
df9f759755
compiler: Merge except_table and cnotab (GH-31614)
2022-03-01 10:27:20 +09:00
Brandt Bucher
422fdb3717
Add missing "to" to two tp_flags notes (GH-31624)
2022-02-28 17:20:14 -08:00