Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Revert 30935 defer bpo45162 to 312#94285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
431 commits
Select commitHold shift + click to select a range
1713ff0
GH-93444: remove redundant fields from basicblock: b_nofallthrough, b…
iritkatrielJun 3, 2022
3284f86
netrc: Remove unused "import shlex" (#93311)
ulisesojedaJun 4, 2022
8150b8c
gh-92886: Fix test that fails when running with `-O` in `test_imaplib…
jackh-nclJun 4, 2022
e12f34b
Fix missing word in sys.float_info docstring (GH-93489)
mdickinsonJun 4, 2022
3d647e7
[doc] Correct a grammatical error in a docstring. (GH-93441)
colin99dJun 4, 2022
8bcc3fa
gh-93442: Make C++ version of _Py_CAST work with 0/NULL. (#93500)
naschemeJun 5, 2022
713eb18
gh-93442: Add test for _Py_CAST(nullptr). (gh-93505)
naschemeJun 5, 2022
6f8367d
gh-90473: wasmtime does not support absolute symlinks (GH-93490)
tiranJun 5, 2022
0902c3d
gh-89973: Fix re.error in the fnmatch module. (GH-93072)
serhiy-storchakaJun 5, 2022
4082c8e
Document LOAD_FAST_CHECK opcode (#93498)
sweeneydeJun 5, 2022
9081bbd
gh-93247: Fix assert function in asyncio locks test (#93248)
cykerwayJun 6, 2022
4c71d22
gh-90473: WASI requires proper open(2) flags (GH-93529)
tiranJun 6, 2022
86a5e22
GH-92308 What's New: list pending removals in 3.13 and future version…
hugovkJun 6, 2022
80a39da
gh-90473: Skip POSIX tests that don't apply to WASI (GH-93536)
tiranJun 6, 2022
8584981
asyncio.Barrier docs: Fix typo (#93371)
thedrowJun 6, 2022
56b5daf
gh-83728: Add hmac.new default parameter deprecation (GH-91939)
slatenyJun 6, 2022
22fed60
gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)
tiranJun 6, 2022
71c8f96
Remove action=None kwarg from Barrier docs (GH-93538)
graingertJun 6, 2022
46fde1f
[docs] fix some asyncio.Barrier.wait docs grammar (GH-93552)
graingertJun 6, 2022
d1e2e0e
gh-93475: Expose FICLONE and FICLONERANGE constants in fcntl (#93478)
illia-vJun 6, 2022
bb0b768
gh-89018: Improve documentation of `sqlite3` exceptions (#27645)
erlend-aaslandJun 6, 2022
3256b17
bpo-42658: Use LCMapStringEx in ntpath.normcase to match OS behaviour…
aiskJun 6, 2022
7403933
Fix contributor name in WhatsNew 3.11 (GH-93556)
sransaraJun 7, 2022
890c3be
Grammar fix to socket error string (GH-93523)
Jun 7, 2022
57e8ee7
gh-86986: bump min sphinx version to 3.2 (GH-93337)
sorcioJun 7, 2022
c6f6ede
gh-79096: Protect cookie file created by {LWP,Mozilla}CookieJar.save(…
pSubJun 7, 2022
1b74803
gh-93162: Add ability to configure QueueHandler/QueueListener togethe…
vsajipJun 7, 2022
f0d0be3
gh-57539: Increase calendar test coverage (GH-93468)
hugovkJun 7, 2022
75ceae0
gh-88831: In docs for asyncio.create_task, explain why strong referen…
agrommekJun 7, 2022
f012df7
Shrink the LOAD_METHOD cache by one codeunit. (#93537)
markshannonJun 7, 2022
7526092
Fix MSVC compiler warnings in ceval.c (#93569)
Fidget-SpinnerJun 7, 2022
cdb73ae
gh-93162: test_config_queue_handler requires threading (GH-93572)
tiranJun 7, 2022
70690c7
gh-84461: Emscripten's faccessat() does not accept flags (GHß92353)
tiranJun 7, 2022
296081a
gh-92592: Allow logging filters to return a LogRecord. (GH-92591)
adriangbJun 7, 2022
8ef7929
Fix `PurePath.relative_to` links in the pathlib documentation. (GH-93…
jacksonrileyJun 7, 2022
f8eae6f
GH-93481: Suppress expected deprecation warning in test_pyclbr (GH-93…
iritkatrielJun 7, 2022
ffc58a9
gh-93370: Deprecate sqlite3.version and sqlite3.version_info (#93482)
rawwarJun 7, 2022
5849af7
GH-93521: For dataclasses, filter out `__weakref__` slot if present i…
Bluenix2Jun 8, 2022
875de61
gh-93421: Update sqlite3 cursor.rowcount only after SQLITE_DONE (#93526)
erlend-aaslandJun 8, 2022
243ed54
gh-93584: Make all install+tests targets depends on all (GH-93589)
tiranJun 8, 2022
2c3fe5e
gh-87961: Remove outdated notes from functions that aren't in the Lim…
encukouJun 8, 2022
2dece90
gh-93180: Update os.copy_file_range() documentation (#93182)
illia-vJun 8, 2022
5442561
gh-93575: Use correct way to calculate PyUnicode struct sizes (GH-93602)
tiranJun 8, 2022
22df2e0
gh-90473: Define HOSTRUNNER for WASI (GH-93606)
tiranJun 8, 2022
68f6a5d
gh-79096: Fix/improve http cookiejar tests (GH-93614)
tiranJun 8, 2022
cffa4f7
gh-93616: Fix env changed issue in test_modulefinder (GH-93617)
tiranJun 9, 2022
a365dd6
gh-90494: Reject 6th element of the __reduce__() tuple (GH-93609)
serhiy-storchakaJun 9, 2022
a5ba0f4
Doc: Update references and examples of old, unsupported OSes and uarc…
CAM-GerlachJun 9, 2022
7fef847
bpo-45383: Get metaclass from bases in PyType_From* (GH-28748)
sebergJun 9, 2022
e974b3e
Improve logging documentation with example and additional cookbook re…
vsajipJun 9, 2022
5a4af3a
gh-90473: disable user site packages on WASI/Emscripten (GH-93633)
tiranJun 9, 2022
6099611
gh-90473: Skip get_config_h() tests on WASI (GH-93645)
tiranJun 9, 2022
30610d2
gh-90549: Fix leak of global named resources using multiprocessing sp…
jxdabcJun 9, 2022
d8395eb
gh-92434: Silence compiler warning in Modules/_sqlite/connection.c on…
neoneneJun 10, 2022
a87c9b5
gh-90763: Modernise xx template module initialisation (#93078)
erlend-aaslandJun 10, 2022
3124d9a
gh-93491: Add support tier detection to configure (GH-93492)
tiranJun 10, 2022
21a9a85
gh-93466: Document PyType_Spec doesn't accept repeated slot IDs; rais…
encukouJun 10, 2022
53a8b17
gh-93671: Avoid exponential backtracking in deeply nested sequence pa…
pablogsalJun 10, 2022
2ba0fd5
gh-81790: support "UNC" device paths in `ntpath.splitdrive()` (GH-91882)
barneygaleJun 10, 2022
cf730b5
GH-93621: reorder code in with/async-with exception exit path to redu…
iritkatrielJun 10, 2022
09243b8
gh-93461: Invalidate sys.path_importer_cache entries with relative pa…
tiranJun 10, 2022
78f1a43
gh-91317: Document that Path does not collapse initial `//` (GH-32193)
arhadthedevJun 10, 2022
484a235
gh-92886: Fix tests that fail when running with optimizations (`-O`) …
jackh-nclJun 10, 2022
4c496f1
gh-92930: _pickle.c: Acquire strong references before calling save() …
sweeneydeJun 11, 2022
dc5e02b
gh-84461: Use HOSTRUNNER to run regression tests (GH-93694)
tiranJun 11, 2022
f0b7aa7
gh-90473: Skip test_queue when threading is not available (GH-93712)
tiranJun 11, 2022
010284b
gh-90153: whatsnew: "z" option in format spec (GH-93624)
belm0Jun 11, 2022
bc3b31e
gh-86404: [doc] A make sucpicious false positive. (GH-93710)
JulienPalardJun 11, 2022
5d8e7a1
Change list to view object (#93661)
pamelafoxJun 11, 2022
733e15f
gh-84508: tool to generate cjk traditional chinese mappings (gh-93272)
sorcioJun 11, 2022
23c9feb
Remove usage of _Py_IDENTIFIER from math module (#93739)
corona10Jun 12, 2022
3473817
gh-91162: Support splitting of unpacked arbitrary-length tuple over T…
serhiy-storchakaJun 12, 2022
8f728e5
gh-93728: fix memory leak in deepfrozen code objects (GH-93729)
kumaraditya303Jun 12, 2022
ae1ca74
gh-93747: Fix Refleak when handling multiple Py_tp_doc slots (gh-93749)
corona10Jun 12, 2022
9331087
GH-90699: use statically allocated strings in typeobject.c (gh-93751)
kumaraditya303Jun 12, 2022
c5d0517
Add more FOR_ITER specialization stats (GH-32151)
sweeneydeJun 13, 2022
272bec4
gh-89653: PEP 670: Convert PyFunction macros (#93765)
vstinnerJun 13, 2022
65ac273
Remove ANY_VARARGS() macro from the C API (#93764)
vstinnerJun 13, 2022
259dd71
gh-84623: Remove unused imports in stdlib (#93773)
vstinnerJun 13, 2022
65ff27c
gh-91731: Don't define 'static_assert' in C++11 where is a keyword to…
pablogsalJun 13, 2022
3ceb4b8
gh-84623: Remove unused imports in tests (#93772)
vstinnerJun 13, 2022
443ca73
gh-93353: Fix importlib.resources._tempfile() finalizer (#93377)
vstinnerJun 13, 2022
c200757
gh-84461: Fix parallel testing on WebAssembly (GH-93768)
tiranJun 13, 2022
df22eec
gh-89653: PEP 670: Macros always cast arguments in cpython/ (#93766)
vstinnerJun 13, 2022
7b2064b
gh-93353: Add test.support.late_deletion() (#93774)
vstinnerJun 13, 2022
6fd4c8e
gh-93741: Add private C API _PyImport_GetModuleAttrString() (GH-93742)
serhiy-storchakaJun 14, 2022
8352e32
gh-79512: Fixed names and __module__ value of weakref classes (GH-93719)
serhiy-storchakaJun 14, 2022
d7db9dc
gh-91810: Fix regression with writing an XML declaration with encodin…
serhiy-storchakaJun 14, 2022
5bcf33d
gh-93761: Fix test to avoid simple delay when synchronizing. (GH-93779)
vsajipJun 14, 2022
3597c12
gh-89546: Clean up PyType_FromMetaclass (GH-93686)
encukouJun 14, 2022
4caf5c2
gh-91321: Fix compatibility with C++ older than C++11 (#93784)
vstinnerJun 14, 2022
2bf7475
GH-93662: Make sure that column offsets are correct in multi-line met…
markshannonJun 14, 2022
3cd1a5d
GH-93516: Store offset of first traceable instruction in code object …
markshannonJun 14, 2022
cd543d0
gh-90473: Include stdlib dir in wasmtime PYTHONPATH (GH-93797)
tiranJun 14, 2022
b083450
GH-93429: Merge `LOAD_METHOD` back into `LOAD_ATTR` (GH-93430)
Fidget-SpinnerJun 14, 2022
e566ce5
gh-93353: regrtest checks for leaked temporary files (#93776)
vstinnerJun 14, 2022
4674007
gh-79579: Improve DML query detection in sqlite3 (#93623)
erlend-aaslandJun 14, 2022
af15cc5
GH-93678: reduce boilerplate and code repetition in the compiler (GH-…
iritkatrielJun 14, 2022
a338e10
gh-91877: Fix WriteTransport.get_write_buffer_{limits,size} docs (#92…
TechieBoyJun 14, 2022
38a7f78
GH-93429: Document `LOAD_METHOD` removal (GH-93803)
Fidget-SpinnerJun 14, 2022
cdf7097
Include freelists in allocation total. (GH-93799)
markshannonJun 14, 2022
d773c6e
gh-93795: Use test.support TESTFN/unlink in sqlite3 tests (#93796)
erlend-aaslandJun 14, 2022
ef6e44d
Remove LOAD_METHOD stats. (GH-93807)
markshannonJun 14, 2022
6b33000
Rename 'LOAD_METHOD' specialization stat consts to 'ATTR'. (GH-93812)
markshannonJun 14, 2022
36934a1
gh-93353: Fix regrtest for -jN with N >= 2 (GH-93813)
vstinnerJun 14, 2022
ad90d49
[docs] Fix LOAD_ATTR version changed (GH-93816)
Fidget-SpinnerJun 14, 2022
274769c
gh-93814: Add infinite test for itertools.chain.from_iterable (GH-93815)
youknowoneJun 14, 2022
4f26963
gh-93735: Split Docs CI to speed-up the build (GH-93736)
AA-TurnerJun 15, 2022
cdd3984
gh-93183: Adjust wording in socket docs (#93832)
erlend-aaslandJun 15, 2022
4e9fa71
gh-93829: In sqlite3, replace Py_BuildValue with faster APIs (#93830)
erlend-aaslandJun 15, 2022
7e9eaad
Add test.support.busy_retry() (#93770)
vstinnerJun 15, 2022
d318346
gh-87260: Update sqlite3 signature docs to reflect actual implementat…
erlend-aaslandJun 15, 2022
bddbd80
test_thread uses support.sleeping_retry() (#93849)
vstinnerJun 15, 2022
0ba8027
Use support.sleeping_retry() and support.busy_retry() (#93848)
vstinnerJun 15, 2022
ff095e1
Update includes in call.c (GH-93786)
pamelafoxJun 15, 2022
ce4d11f
gh-93857: Fix broken audit-event targets in sqlite3 docs (#93859)
erlend-aaslandJun 15, 2022
b415c5f
GH-93850: Fix test_asyncio exception ignored tracebacks (#93854)
kumaraditya303Jun 15, 2022
99be1cb
gh-93824: Reenable installation of shell extension on Windows ARM64 (…
zoobaJun 15, 2022
41fccd2
test_asyncio: run_until() implements exponential sleep (#93866)
vstinnerJun 15, 2022
46e455f
test_asyncore: Optimize capture_server() (#93867)
vstinnerJun 15, 2022
50e0866
Tests call sleeping_retry() with SHORT_TIMEOUT (#93870)
vstinnerJun 15, 2022
8ba1c7f
gh-84461: Document how to install SDKs manually (GH-93844)
tiranJun 15, 2022
05b32c1
gh-93820: Fix copy() regression in enum.Flag (GH-93876)
tiranJun 16, 2022
484b40b
Call busy_retry() and sleeping_retry() with error=True (#93871)
vstinnerJun 16, 2022
7546914
gh-87347: Add parenthesis around PyXXX_Check() arguments (#92815)
vstinnerJun 16, 2022
a38c2a6
gh-91321: Fix test_cppext for C++03 (#93902)
vstinnerJun 16, 2022
9a458be
gh-91577: SharedMemory move imports out of methods (#91579)
samtygierJun 16, 2022
d5be9a5
gh-92547: Amend What's New (#93872)
erlend-aaslandJun 16, 2022
ab45c1d
Fix BINARY_SUBSCR_GETITEM stats (GH-93903)
Fidget-SpinnerJun 16, 2022
138db8e
gh-93847: Fix repr of enum of generic aliases (GH-93885)
serhiy-storchakaJun 16, 2022
4f85cec
gh-93353: regrtest supports checking tmp files with -j2 (#93909)
vstinnerJun 16, 2022
f8e576b
GH-91389: Fix dis position information for CACHEs (GH-93663)
brandtbucherJun 16, 2022
38af903
gh-91985: Ensure in-tree builds override platstdlib_dir in every path…
neoneneJun 16, 2022
e37a158
GH-83658: make multiprocessing.Pool raise an exception if maxtasksper…
iritkatrielJun 17, 2022
538f289
test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920)
vstinnerJun 17, 2022
4beee0c
gh-91404: Revert "bpo-23689: re module, fix memory leak when a match …
gpsheadJun 17, 2022
ffc228d
gh-89745: Avoid exact match when comparing program_name in test_embed…
neoneneJun 17, 2022
c5b750d
gh-93852: Add test.support.create_unix_domain_name() (#93914)
vstinnerJun 17, 2022
1735710
gh-77782: Py_FdIsInteractive() now uses PyConfig.interactive (#93916)
vstinnerJun 17, 2022
e444752
gh-74953: Add _PyTime_FromMicrosecondsClamp() function (#93942)
vstinnerJun 17, 2022
f64557f
gh-74953: Fix PyThread_acquire_lock_timed() code recomputing the time…
vstinnerJun 17, 2022
0ff626f
gh-77782: Deprecate global configuration variable (#93943)
vstinnerJun 17, 2022
a51742a
gh-93911: Specialize `LOAD_ATTR_PROPERTY` (GH-93912)
Fidget-SpinnerJun 17, 2022
11190c4
gh-92888: Fix memoryview bad `__index__` use after free (GH-92946)
Fidget-SpinnerJun 17, 2022
96464e5
GH-89858: Fix test_embed for out-of-tree builds (GH-93465)
kumaraditya303Jun 17, 2022
71354ad
gh-92611: Add details on replacements for cgi utility funcs (GH-92792)
CAM-GerlachJun 17, 2022
b1ae4af
GH-77403: Fix tests which fail when PYTHONUSERBASE is not normalized …
iritkatrielJun 17, 2022
c1e1942
gh-91387: Strip trailing slash from tarfile longname directories (GH-…
cfernaldJun 17, 2022
b96d56d
Add jaraco as primary owner of importlib.metadata and importlib.resou…
jaracoJun 18, 2022
084023c
gh-84461: Fix circulare dependency on BUILDPYTHON (GH-93977)
tiranJun 18, 2022
f9433ff
gh-89828: Do not relay the __class__ attribute in GenericAlias (#93754)
serhiy-storchakaJun 18, 2022
7a2cc35
gh-84461: Fix pydebug Emscripten browser builds (GH-93982)
tiranJun 18, 2022
fea1e9b
gh-93955: Use unbound methods for slot `__getattr__` and `__getattrib…
Fidget-SpinnerJun 18, 2022
dd78aae
gh-91387: Fix tarfile test on WASI (GH-93984)
tiranJun 18, 2022
6066f45
gh-93975: Nicer error reporting in test_venv (GH-93959)
jaracoJun 18, 2022
726448e
GH-93990: fix refcounting bug in `add_subclass` in `typeobject.c` (GH…
kumaraditya303Jun 19, 2022
59c1b33
What's new in 3.10: fix link to issue (#93968)
hugovkJun 19, 2022
dba3fa5
gh-93761: Fix test_logging test_config_queue_handler() race condition…
vstinnerJun 19, 2022
2664d9a
gh-74953: Reformat PyThread_acquire_lock_timed() (#93947)
vstinnerJun 19, 2022
27b9894
gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938)
vstinnerJun 19, 2022
476d302
gh-93991: Use boolean instead of 0/1 for condition check (GH-93992)
leikdgaJun 19, 2022
2702e40
gh-84461: Fix Emscripten umask and permission issues (GH-94002)
tiranJun 19, 2022
62363bf
gh-84461: Skip test_unwritable_directory again on Emscripten (GH-94007)
tiranJun 19, 2022
6446592
gh-93925: Improve clarity of sqlite3 commit/rollback, and close docs …
Jun 19, 2022
8e08978
gh-61162: Clarify sqlite3 connection context manager docs (GH-93890)
erlend-aaslandJun 19, 2022
affa9f2
gh-79009: sqlite3.iterdump now correctly handles tables with autoincr…
itssmeJun 19, 2022
774ef28
gh-84461: Silence some compiler warnings on WASM (GH-93978)
tiranJun 20, 2022
45e62a2
GH-93897: Store frame size in code object and de-opt if insufficient …
markshannonJun 20, 2022
ab0e601
GH-93516: Speedup line number checks when tracing. (GH-93763)
markshannonJun 20, 2022
61f24e7
gh-90539: doc: Expand on what should not go into CFLAGS, LDFLAGS (#92…
mkoeppeJun 20, 2022
7ad6f74
gh-87347: Add parenthesis around macro arguments (#93915)
vstinnerJun 20, 2022
cfb986a
gh-93937: PyOS_StdioReadline() uses PyConfig.legacy_windows_stdio (#9…
vstinnerJun 20, 2022
1603a10
GH-93249: relax overly strict assertion on bounds->ar_start (GH-93961)
iritkatrielJun 20, 2022
77c839c
gh-94021: Address unreachable code warning in specialize code (GH-94022)
tiranJun 21, 2022
889772f
GH-93678: refactor compiler so that optimizer does not need the assem…
iritkatrielJun 21, 2022
d82e0bf
gh-93839: Move Lib/ctypes/test/ to Lib/test/test_ctypes/ (#94041)
vstinnerJun 21, 2022
c735d54
gh-93839: Move Lib/unttest/test/ to Lib/test/test_unittest/ (#94043)
vstinnerJun 21, 2022
5fcfdd8
GH-91432: Specialize FOR_ITER (GH-91713)
sweeneydeJun 21, 2022
94eeac0
gh-94028: Clear and reset sqlite3 statements properly in cursor itern…
erlend-aaslandJun 21, 2022
0ff7b99
gh-94052: Don't re-run failed tests with --python option (#94054)
tiranJun 21, 2022
50ebd72
gh-93839: Use load_package_tests() for testmock (GH-94055)
tiranJun 21, 2022
616fa34
gh-54781: Move Lib/lib2to3/tests/ to Lib/test/test_lib2to3/ (#94049)
vstinnerJun 21, 2022
c7a79bb
gh-74953: _PyThread_cond_after() uses _PyTime_t (#94056)
vstinnerJun 21, 2022
6f8875e
GH-93841: Allow stats to be turned on and off, cleared and dumped at …
markshannonJun 21, 2022
0efe3a1
gh-86986: Drop compatibility support for Sphinx 2 (GH-93737)
AA-TurnerJun 21, 2022
5a08e0f
gh-94068: Remove HVSOCKET_CONTAINER_PASSTHRU constant because it has …
zoobaJun 21, 2022
7327d61
Closes gh-94038: Update Release Schedule in README.rst from PEP 664 t…
MilanJuhasJun 21, 2022
f62ff97
gh-93851: Fix all broken links in Doc/ (GH-93853)
arhadthedevJun 21, 2022
8305137
gh-93675: Fix typos in `Doc/` (GH-93676)
luzpazJun 21, 2022
420f0df
Minor optimization for Fractions.limit_denominator (GH-93730)
mdickinsonJun 21, 2022
51d6731
gh-93240: clarify wording in IO tutorial (GH-93276)
paulreeceJun 21, 2022
dd5cf84
Tutorial: specify match cases don't fall through (GH-93615)
pr2502Jun 21, 2022
4e08fbc
gh-93021: Fix __text_signature__ for __get__ (GH-93023)
JelleZijlstraJun 21, 2022
f28ec34
gh-82927: Update files related to HTML entities. (GH-92504)
ezio-melottiJun 21, 2022
0709586
DOC: correct bytesarray -> bytearray in comments (GH-92410)
tacaswellJun 21, 2022
4abab6b
gh-87389: Fix an open redirection vulnerability in http.server. (#93879)
gpsheadJun 21, 2022
296e4ef
gh-89336: Remove configparser APIs that were deprecated for 3.12 (#92…
gpsheadJun 21, 2022
6575841
bpo-30535: [doc] state that sys.meta_path is not empty by default (GH…
iritkatrielJun 21, 2022
9a479c3
gh-88123: Implement new Enum __contains__ (GH-93298)
carlbordumJun 22, 2022
f805d37
Stats: Add summary of top instructions for misses and deferred specia…
markshannonJun 22, 2022
fda4b2f
gh-74696: Do not change the current working directory in shutil.make_…
serhiy-storchakaJun 22, 2022
dc8e1d0
gh-94101 Disallow instantiation of SSLSession objects (GH-94102)
chgnrdvJun 22, 2022
ca308c1
Fix typo in _io.TextIOWrapper Clinic input (#94037)
fikottaJun 22, 2022
c029b55
gh-93951: In test_bdb.StateTestCase.test_skip, avoid including auxili…
jaracoJun 22, 2022
d36954b
gh-91172: Create a workflow for verifying bundled pip and setuptools …
illia-vJun 22, 2022
8661c50
gh-94114: Remove obsolete reference to python.org mirrors (GH-94115)
partevJun 22, 2022
47e3562
gh-84623: Remove unused imports (#94132)
vstinnerJun 22, 2022
c1fb12e
gh-54781: Move Lib/tkinter/test/test_ttk/ to Lib/test/test_ttk/ (#94070)
vstinnerJun 22, 2022
e52009d
gh-84623: Move imports in doctests (#94133)
vstinnerJun 22, 2022
dd39e29
Add ABI dump Makefile target (#94136)
pablogsalJun 22, 2022
576dd90
gh-84623: Remove unused imports in idlelib (#94143)
vstinnerJun 22, 2022
9877f4c
gh-85308: argparse: Use filesystem encoding for arguments file (GH-93…
methaneJun 23, 2022
7c439dc
Closes gh-94152: Update pyvideo.org URL (GH-94075)
partevJun 23, 2022
fb1e950
gh-91456: [Enum] Deprecate default auto() behavior with mixed value t…
oscar-LTJun 23, 2022
15bfabd
gh-84461: Fix test_sqlite for Emscripten/WASI (#94125)
tiranJun 23, 2022
11e865c
gh-86404: [doc] Fix missing backtick and double target name. (#94120)
JulienPalardJun 23, 2022
8928531
gh-89121: Keep the number of pending SQLite statements to a minimum (…
erlend-aaslandJun 23, 2022
5b6e576
GH-91742: Fix pdb crash after jump (GH-94171)
kumaraditya303Jun 23, 2022
b4e0d61
[Enum] fix typo (GH-94158)
ethanfurmanJun 23, 2022
2fc83ac
gh-92858: Improve error message for some suites with syntax error bef…
wookie184Jun 23, 2022
4e796f5
gh-93771: Clarify how deepfreeze.py is run (#94150)
gvanrossumJun 23, 2022
9a95fa9
gh-91219: Add an index_pages default list and parameter to SimpleHTTP…
myronwwJun 23, 2022
28a2ccf
[Enum] Remove automatic docstring generation (GH-94188)
dignissimusJun 23, 2022
8e6ecca
Add ABI dump script (#94135)
pablogsalJun 23, 2022
5075e81
Add more tests for throwing into yield from (GH-94097)
brandtbucherJun 23, 2022
6e33ba1
gh-94169: Remove deprecated io.OpenWrapper (#94170)
vstinnerJun 24, 2022
d435a18
gh-94199: Remove ssl.RAND_pseudo_bytes() function (#94202)
vstinnerJun 24, 2022
d3a27e4
gh-94196: Remove gzip.GzipFile.filename attribute (#94197)
vstinnerJun 24, 2022
ab077d1
gh-93692: remove "build finished successfully" message from setup.py …
erlend-aaslandJun 24, 2022
8625802
gh-84461: Fix ctypes and test_ctypes on Emscripten (#94142)
tiranJun 24, 2022
51fd4de
gh-94205: Ensures all required DLLs are copied on Windows for underpt…
zoobaJun 24, 2022
e69306f
gh-84461: Build Emscripten with WASM BigInt support (#94219)
tiranJun 24, 2022
f0b234e
gh-94172: urllib.request avoids deprecated check_hostname (#94193)
vstinnerJun 24, 2022
91f9947
IDLE: replace if statement with expression (#94228)
terryjreedyJun 24, 2022
a91ffcf
Docs: Remove `Provides [...]` from `multiprocessing.shared_memory` de…
arhadthedevJun 24, 2022
50a5ab2
gh-93382: Sync up `co_code` changes with 3.11 (GH-94227)
Fidget-SpinnerJun 24, 2022
0a40025
gh-94217: Skip import tests when _testcapi is a builtin (GH-94218)
tiranJun 24, 2022
605e9c6
gh-85308: Add argparse tests for reading non-ASCII arguments from fil…
serhiy-storchakaJun 24, 2022
81e91c9
bpo-46642: Explicitly disallow subclassing of instaces of TypeVar, Pa…
GBeauregardJun 25, 2022
50cd4b6
bpo-26253: Add compressionlevel to tarfile stream (GH-2962)
jarondlJun 25, 2022
b528499
gh-70441: Fix test_tarfile on systems w/o bz2 (gh-2962) (#94258)
tiranJun 25, 2022
944c7d8
gh-94199: Remove ssl.match_hostname() function (#94224)
vstinnerJun 25, 2022
6b86534
gh-94207: Fix struct module leak (GH-94239)
mdickinsonJun 25, 2022
75cb3ab
gh-94245: Test pickling and copying of typing.Tuple[()] (GH-94259)
serhiy-storchakaJun 25, 2022
bec802d
gh-77560: Report possible errors in restoring builtins at finalizatio…
serhiy-storchakaJun 25, 2022
bd3c1c1
gh-90016: Reword sqlite3 adapter/converter docs (#93095)
erlend-aaslandJun 25, 2022
c57a1c7
bpo-39971: Change examples to be runnable (GH-32172)
slatenyJun 25, 2022
9af6b75
gh-70474: [doc] fix wording of GET_ANEXT doc (GH-94048)
iritkatrielJun 25, 2022
38612a0
gh-93259: Validate arg to ``Distribution.from_name``. (GH-94270)
jaracoJun 26, 2022
47b63da
Merge branch 'main' into revert-30935-defer-bpo45162-to-312
serhiy-storchakaJun 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
gh-90763: Modernise xx template module initialisation (#93078)
Use C APIs such as PyModule_AddType instead of PyModule_AddObject.Also remove incorrect module decrefs if module fails to initialise.
  • Loading branch information
@erlend-aasland
erlend-aasland authoredJun 10, 2022
commita87c9b538fbfc42883417c4d5e69f1a5922690e3
58 changes: 34 additions & 24 deletionsModules/xxlimited_35.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -124,7 +124,7 @@ static PyType_Slot Xxo_Type_slots[] = {
};

static PyType_Spec Xxo_Type_spec = {
"xxlimited.Xxo",
"xxlimited_35.Xxo",
sizeof(XxoObject),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
Expand DownExpand Up@@ -189,7 +189,7 @@ static PyType_Slot Str_Type_slots[] = {
};

static PyType_Spec Str_Type_spec = {
"xxlimited.Str",
"xxlimited_35.Str",
0,
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
Expand All@@ -212,7 +212,7 @@ static PyType_Slot Null_Type_slots[] = {
};

static PyType_Spec Null_Type_spec = {
"xxlimited.Null",
"xxlimited_35.Null",
0, /* basicsize */
0, /* itemsize */
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
Expand DownExpand Up@@ -248,40 +248,50 @@ xx_modexec(PyObject *m)
Null_Type_slots[1].pfunc = PyType_GenericNew;
Str_Type_slots[0].pfunc = &PyUnicode_Type;

Xxo_Type = PyType_FromSpec(&Xxo_Type_spec);
if (Xxo_Type == NULL)
goto fail;

/* Add some symbolic constants to the module */
if (ErrorObject == NULL) {
ErrorObject = PyErr_NewException("xxlimited.error", NULL, NULL);
if (ErrorObject == NULL)
goto fail;
ErrorObject = PyErr_NewException("xxlimited_35.error", NULL, NULL);
if (ErrorObject == NULL) {
return -1;
}
}
Py_INCREF(ErrorObject);
PyModule_AddObject(m, "error", ErrorObject);
if (PyModule_AddObject(m, "error", ErrorObject) < 0) {
Py_DECREF(ErrorObject);
return -1;
}

/* Add Xxo */
o = PyType_FromSpec(&Xxo_Type_spec);
if (o == NULL)
goto fail;
PyModule_AddObject(m, "Xxo", o);
Xxo_Type = PyType_FromSpec(&Xxo_Type_spec);
if (Xxo_Type == NULL) {
return -1;
}
if (PyModule_AddObject(m, "Xxo", Xxo_Type) < 0) {
Py_DECREF(Xxo_Type);
return -1;
}

/* Add Str */
o = PyType_FromSpec(&Str_Type_spec);
if (o == NULL)
goto fail;
PyModule_AddObject(m, "Str", o);
if (o == NULL) {
return -1;
}
if (PyModule_AddObject(m, "Str", o) < 0) {
Py_DECREF(o);
return -1;
}

/* Add Null */
o = PyType_FromSpec(&Null_Type_spec);
if (o == NULL)
goto fail;
PyModule_AddObject(m, "Null", o);
if (o == NULL) {
return -1;
}
if (PyModule_AddObject(m, "Null", o) < 0) {
Py_DECREF(o);
return -1;
}

return 0;
fail:
Py_XDECREF(m);
return -1;
}


Expand Down
39 changes: 20 additions & 19 deletionsModules/xxmodule.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -358,31 +358,32 @@ xx_exec(PyObject *m)

/* Finalize the type object including setting type of the new type
* object; doing it here is required for portability, too. */
if (PyType_Ready(&Xxo_Type) < 0)
goto fail;
if (PyType_Ready(&Xxo_Type) < 0) {
return -1;
}

/* Add some symbolic constants to the module */
if (ErrorObject == NULL) {
ErrorObject = PyErr_NewException("xx.error", NULL, NULL);
if (ErrorObject == NULL)
goto fail;
if (ErrorObject == NULL) {
return -1;
}
}
int rc = PyModule_AddType(m, (PyTypeObject *)ErrorObject);
Py_DECREF(ErrorObject);
if (rc < 0) {
return -1;
}
Py_INCREF(ErrorObject);
PyModule_AddObject(m, "error", ErrorObject);

/* Add Str */
if (PyType_Ready(&Str_Type) < 0)
goto fail;
PyModule_AddObject(m, "Str", (PyObject *)&Str_Type);

/* Add Null */
if (PyType_Ready(&Null_Type) < 0)
goto fail;
PyModule_AddObject(m, "Null", (PyObject *)&Null_Type);

/* Add Str and Null types */
if (PyModule_AddType(m, &Str_Type) < 0) {
return -1;
}
if (PyModule_AddType(m, &Null_Type) < 0) {
return -1;
}

return 0;
fail:
Py_XDECREF(m);
return -1;
}

static struct PyModuleDef_Slot xx_slots[] = {
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp