repo
stringclasses
1 value
instance_id
stringlengths
20
22
problem_statement
stringlengths
126
60.8k
merge_commit
stringlengths
40
40
base_commit
stringlengths
40
40
python/cpython
python__cpython-109026
# `frame.f_locals` for list/dict/set comprehension in module/class scope doesn't contain iteration variables # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Ai...
f2584eade378910b9ea18072bb1dab3dd58e23bb
b72251de930c8ec6893f1b3f6fdf1640cc17dfed
python/cpython
python__cpython-108745
# types.MemberDescriptorType docs should mention it is used for __slots__ The documentation for types.MemberDescriptorType in the types module indicate that it is used in extension modules. This is true, but fails to mention the other common use of the class, as the type of a slot. For those who aren't aware, if we d...
6888cccac0776d965cc38a7240e1bdbacb952b91
191531f352ce387a2d3a61544fb6feefab754d4a
python/cpython
python__cpython-108734
# _testinternalcapi.get_counter_optimizer() segfaults # Crash report ### CPython versions tested on: CPython main branch ### Operating systems tested on: macOS ### Output from running 'python -VV' on the command line: Python 3.13.0a0 (heads/main:13a00078b8, Aug 31 2023, 18:44:11) [Clang 14.0.3 (clang-1403.0.22.1...
844f4c2e12a7c637d1de93dbbb0718be06553510
044b8b3b6a65e6651b161e3badfa5d57c666db19
python/cpython
python__cpython-109344
# Add lightweight locking C API # Feature or enhancement Implementing [PEP 703](https://peps.python.org/pep-0703/) will require adding additional fine grained locks and other synchronization mechanisms. For good performance, it's important that these locks be "lightweight" in the sense that they don't take up much ...
0c89056fe59ac42f09978582479d40e58a236856
0a31ff0050eec5079fd4c9cafd33b4e3e9afd9ab
python/cpython
python__cpython-108718
# `os.DirEntry.is_junction` can be ~twice as fast Right now it is implemented as: https://github.com/python/cpython/blob/79823c103b66030f10e07e04a5462f101674a4fc/Modules/posixmodule.c#L14566-L14583 Removing unused `defining_class: defining_class` from clinic has one big adavantage (aside from the fact that it is...
65a2bce70421197605feeed3351a4577462aae06
6f8411cfd68134ccae01b0b4cb332578008a69e3
python/cpython
python__cpython-108722
# Remove deep-freezing of code objects and modules. Deep-freezing, as implemented has a number of problems: * It is slow to build * It does not fit into the normal build system, `make` will not recreate deep-frozen modules * Deep-freezing only makes sense if the objects are immutable, but code objects are not (at t...
15d4c9fabce67b8a1b5bd9dec9612014ec18291a
00cf626cd41f806062c22a913b647b4efa84c476
python/cpython
python__cpython-108698
# test_import leaks references # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am confident this bug has not been reported bef...
157b89e55ed1ec12418a4853a0ba10eabc11ce60
d52c4482a82f3f98f1a78efa948144a1fe3c52b2
python/cpython
python__cpython-108704
# 3.11.5 Regression: Flags with custom __new__ can't be iterated # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am confident ...
d48760b2f1e28dd3c1a35721939f400a8ab619b8
13a00078b81776b23b0b6add69b848382240d1f2
python/cpython
python__cpython-108670
# Documentation for `TestResult.collectedDurations` is outdated # Documentation Following #106888, the documentation for `TestResult.collectedDurations` is outdated as it's now a 2-tuple of `str` and `float` instances. Noticed in python/typeshed#10636. I will prepare a PR. Cc @bityob. <!-- gh-linked-prs --> ### ...
6c484c39beeb66d40ef0a73cc4f1e900ea498cfa
400a1cebc743515e40157ed7af86e48d654290ce
python/cpython
python__cpython-108659
# Comprehension iteration variable overwrite a variable of the same name in the outer scope inside a function with try..except # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/...
d52c4482a82f3f98f1a78efa948144a1fe3c52b2
f59c66e8c8a6715c585cf2cdf1f99715480b4da1
python/cpython
python__cpython-108639
# Test suite expects _stat extension to be available # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am confident this b...
b62a76043e543fbb15cab7e9e8874a798bc600d2
7659128b9d7a30ddbcb063bc12e2ddb0f1f119e0
python/cpython
python__cpython-108636
# Use positional-only parameters for some special methods # Feature or enhancement ### Has this already been discussed elsewhere? No response given ### Links to previous discussion of this feature: _No response_ ### Proposal: Most special methods (double underscored from both sizes) are only called with position...
9205dfeca54cb24aa9a984c12a6419d71635be9f
f8be2e262c5c2fdbc9721210ae1cb46edc16db82
python/cpython
python__cpython-108663
# Py_TRACE_REFS is not compatible with Py_LIMITED_API # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am confident this bug ha...
f42edf1e7be5018a8988a219a168e231cbaa25e5
3bfa24e29f286cbc1f42bdb4d2b1c0c9d643c8d6
python/cpython
python__cpython-108624
# New warnings related to `_PyOS_IsMainThread` in `Modules/_multiprocessing/semaphore.c` # Bug report This commit introduced new compile warnings in `Modules/_multiprocessing/semaphore.c`: https://github.com/python/cpython/commit/fadc2dc7df99501a40171f39b7cd23be732860cc <img width="926" alt="Снимок экрана 2023-08-29...
30305d6d01e3952f409d352a794e7a367b8c4b8b
bf08131e0ae3a2e59a1428c648f433da6921c561
python/cpython
python__cpython-108556
# Extend sqlite3 CLI tests # Bug report ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: _No response_ ### Proposal: The interactive sqlite3 CLI tests are suboptimal; Serhiy easily proved th...
ecb2bf02a4a564b638f756ce6e644ec17b6edf16
c8847841cc5629cbceead0c09dc6f537d7b92612
python/cpython
python__cpython-108630
# Remove `TIER_ONE` and `TIER_TWO` from bytecodes.c The `TIER_ONE` and `TIER_TWO` macros cause a few problems: Their presence in the bytecode definitions means that anyone maintaining the interpreter or adding new instructions needs to understand the internals of the multiple execution layers and how they differ. ...
0858328ca2457ae95715eb93e347d5c0547bec6f
d485551c9d1792ff3539eef1d6374bd4c01dcd5d
python/cpython
python__cpython-108657
# sqlite3.iterdump() incompatible with binary data # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am confident this bug has n...
2a3926fa51b7264787d5988abf083d8c4328f4ad
2928e5dc6512e4206c616cd33e0bcc3288abf6ed
python/cpython
python__cpython-108578
# Add explicit test for sqlite3.Row.keys() ### Has this already been discussed elsewhere? No response given ### Links to previous discussion of this feature: _No response_ ### Proposal: Seems, there are no tests for `sqlite3.Row.keys()`. <!-- gh-linked-prs --> ### Linked PRs * gh-108578 * gh-108615 * gh-108616 *...
6eaddc10e972273c1aed8b88c538e65e4773496e
5f85b443f7119e1c68a15fc9a342655e544d2852
python/cpython
python__cpython-108551
# Speed up sqlite3 tests # Feature or enhancement ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: _No response_ ### Proposal: On my MacBook Pro M1, the sqlite3 test suite takes between 1.7 ...
c8847841cc5629cbceead0c09dc6f537d7b92612
6eaddc10e972273c1aed8b88c538e65e4773496e
python/cpython
python__cpython-108543
# Duplicate entry in 3.11.5 changelog - pickle module # Documentation The [3.11.5 changelog](https://docs.python.org/3/whatsnew/changelog.html#python-3-11-5-final) has an entry that appears twice: > [gh-105375](https://github.com/python/cpython/issues/105375): Fix bugs in [pickle](https://docs.python.org/3/library...
a429eafef2d86eafc007ac19682e7d372c32da31
042aa88bcc6541cb8b312f1119452f7a58a5b4df
python/cpython
python__cpython-108568
# Nested multiprocessing leads to `AttributeError: is_fork_ctx` with `forkserver` or `spawn` methods # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sor...
add8d45cbe46581b9748909fbbf60fdc8ee8f71e
2a3926fa51b7264787d5988abf083d8c4328f4ad
python/cpython
python__cpython-111035
# C API: Add a replacement for PySys_GetObject # Feature or enhancement ### Proposal: The `PySys_GetObject()` function has two flaws: * It clears any error raised inside the function, including important and critical errors. * It returns a borrowed reference. We need to add a replacement free from these f...
bac3fcba5b2d83aa294267a456ccc36d86151dd4
b265a7ddeb12b2040d80b471d447ce4c3ff4bb95
python/cpython
python__cpython-109025
# C API: Add replacements for PyObject_HasAttr() etc # Feature or enhancement ### Has this already been discussed elsewhere? No response given ### Links to previous discussion of this feature: https://github.com/python/cpython/issues/75753 https://github.com/python/cpython/issues/106672 ### Proposal: Functions `...
add16f1a5e4013f97d33cc677dc008e8199f5b11
e57ecf6bbc59f999d27b125ea51b042c24a07bd9
python/cpython
python__cpython-108495
# Add support for the limited C API to Argument Clinic # Feature or enhancement ### Has this already been discussed elsewhere? I have already discussed this feature proposal on Discourse ### Links to previous discussion of this feature: * https://github.com/python/cpython/issues/85283 * https://github.com/python/c...
1dd951097728d735d46a602fc43285d35b7b32cb
4eae1e53425d3a816a26760f28d128a4f05c1da4
python/cpython
python__cpython-108591
# Counter for JUMP_BACKWARD is initialized to 17 instead of 0 # Bug report ### CPython versions tested on: CPython main branch ### Operating systems tested on: macOS ### Output from running 'python -VV' on the command line: Python 3.13.0a0 (heads/main-dirty:5a25daa512, Aug 25 2023, 21:20:04) [Clang 1...
59e46932c8d2dc6fe84a8cf144dde962838c0204
4f22152713d008cdd7c1d373a0f0c8dcf30e217e
python/cpython
python__cpython-108553
# ast.unparse doesn't observe the new PEP701 string delimiter rules # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am confide...
3d5df54cdc1e946bd953bc9906da5abf78a48357
74208ed0c440244fb809d8acc97cb9ef51e888e3
python/cpython
python__cpython-108392
# Python build fails if the path to the compiler includes strings common with the compiler names (icc, gcc, etc) # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues...
fecb9faf0b2df6a219696502a34b918c5d2bfe9d
38afa4af9bfc8297a5ee270c37f3f120a04297ea
python/cpython
python__cpython-108464
# Make expressions in pdb work as people would expect # Feature or enhancement ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: _No response_ ### Proposal: When people are using pdb, they of...
6304d983a0656c1841769bf36e5b42819508d21c
7855d325e638a4b7f7b40f2c35dc80de82d8fe70
python/cpython
python__cpython-108456
# Run `mypy` on `Tools/peg_generator` # Feature or enhancement Now that we have `mypy` infrastructure ready https://github.com/python/cpython/blob/main/.github/workflows/mypy.yml we can add more things to the test. https://github.com/python/cpython/tree/main/Tools/peg_generator has `mypy.ini` and annotations. So...
cf7ba83eb274df8389cb9ebdf8601132c47de48a
f75cefd402c4c830228d85ca3442377ebaf09454
python/cpython
python__cpython-108045
# Add platform triplets for x86_64 GNU/Hurd # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am confident this bug has not been...
edb569e8e1f469ac5ce629cc647ab169d895de41
a071ecb4d13595f3580cf82061dcd7b39cd475c5
python/cpython
python__cpython-108445
# [C API] Add PyLong_AsInt() public function # Feature or enhancement ### Has this already been discussed elsewhere? No response given ### Links to previous discussion of this feature: _No response_ ### Proposal: The _PyLong_AsInt() function was added in 2013 by commit 74f49ab28b91d3c23524356230feb2724ee9b23f. I...
be436e08b8bd9fcd2202d6ce4d924bba7551e96f
feb9a49c9c09d08cb8c24cb74d90a218de6af244
python/cpython
python__cpython-108419
# Speed up bigmem compression tests in dry mode ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: _No response_ ### Proposal: Three bigmem tests test compression of large (slightly more than 4...
4ae3edf3008b70e20663143553a736d80ff3a501
e59a95238b76f518e936b6e70da9207d923964db
python/cpython
python__cpython-108421
# Mark slow test methods with @requires_resource('cpu') ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: _No response_ ### Proposal: The proposed PR marks all test methods which have duration...
f3ba0a74cd50274acdcd592d4ce8395b92492b7c
aa52888e6a0269f0c31a24bd0d1adb3238147261
python/cpython
python__cpython-108420
# Crash when tracing specialized normal class call at deep Python recursion # Crash report ### CPython versions tested on: CPython main branch ### Operating systems tested on: Linux ### Output from running 'python -VV' on the command line: Python 3.13.0a0 (heads/main:29bc6165ab, Aug 23 2023, 18:18:02) [GCC 10.2....
5a2a04615171899885b977d77dc379bd78bac87f
04a0830b00879efe057e3dfe75e9aa9c0caf1a26
python/cpython
python__cpython-108729
# Add `--disable-gil` option for Windows builds # Feature or enhancement Like https://github.com/python/cpython/issues/108223 but for Windows builds instead of the configure script. The immediate motivation is for supporting additional Windows buildbots. cc @terryjreedy @itamaro <!-- gh-linked-prs --> ### Linked ...
6fafa6b919227cab06d0e3d7b20120e72d9b2bfd
ecc61a6d76ea329e56f98c4af0f24a17ed3b2d6c
python/cpython
python__cpython-108353
# Benchmark test fails for large numbers in `decimal` module # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am confiden...
b39f65a495b3300caa4144089ef7cb20a0bb5bd0
388d91cd474de80355f5a8f6a26e8962813a3128
python/cpython
python__cpython-108344
# test_ssl fails with "env changed" on ARM64 Windows buildbot: thread doesn't catch TimeoutError # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3A...
64f99350351bc46e016b2286f36ba7cd669b79e3
9173b2bbe13aeccc075b571da05c653a2a91de1b
python/cpython
python__cpython-108324
# Speed-up statistics.NormalDist.samples() Currently, `samples()` calls `random.gauss()`. It would be several times faster to use the inverse CDF method instead. <!-- gh-linked-prs --> ### Linked PRs * gh-108324 * gh-108658 <!-- /gh-linked-prs -->
042aa88bcc6541cb8b312f1119452f7a58a5b4df
09343dba44cdb5c279ec51df34552ef451434958
python/cpython
python__cpython-108323
# [C API] Add PyDict_ContainsString() function # Feature or enhancement ### Has this already been discussed elsewhere? No response given ### Links to previous discussion of this feature: _No response_ ### Proposal: Most, if not all, PyDict C APIs have a "String" flavor where the key argument is expressed as a UT...
67266266469fe0e817736227f39537182534c1a5
c163d7f0b67a568e9b64eeb9c1cbbaa127818596
python/cpython
python__cpython-108312
# test_opcache fails when run with -Xuops ### CPython versions tested on: CPython main branch ### Operating systems tested on: macOS ### Output from running 'python -VV' on the command line: Python 3.13.0a0 (heads/fix-func-cache-dirty:531930f47f, Aug 22 2023, 07:17:15) [Clang 14.0.3 (clang-1403.0.22.14....
53470184091f6fe1c7a1cf4de8fd90dc2ced7654
66b4d9c9f0b8a935b5d464abd2f6ee0253832fd9
python/cpython
python__cpython-108315
# CVE-2023-40217: Bypass TLS handshake on closed sockets # Bug report Originally reported by @AapoOksman via the [Python Security Response Team](https://www.python.org/dev/security/) mailing list on 2023-08-08. Thanks for the responsible disclosure! ### Checklist - [X] I am confident this is a bug in CPython,...
0cb0c238d520a8718e313b52cffc356a5a7561bf
d2879f2095abd5c8186c7f69c964a341c2053572
python/cpython
python__cpython-108309
# [C API] Use new PyDict_GetItemRef() C API # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am confident this bug has not been...
f5559f38d9831e7e55a518e516bcd620ec13af14
154477be722ae5c4e18d22d0860e284006b09c4f
python/cpython
python__cpython-108305
# Move test files into test subdirectories # Feature or enhancement ### Proposal: The Python test suite has around 166 files and sub-directories where the name is not clearly associated to a test. For example, it's not obvious to me which test uses ``talos-2019-0758.pem`` or ``coding20731.py``. When possible,...
d2879f2095abd5c8186c7f69c964a341c2053572
b8f96b5eda5b376b05a9dbf046208388249e30a6
python/cpython
python__cpython-108517
# Crash in clear_weakref() in pydantic test suite, in 3.12.0rc1 and newer # Crash report ### CPython versions tested on: 3.12, CPython main branch ### Operating systems tested on: Linux ### Output from running 'python -VV' on the command line: Python 3.12.0rc1+ (heads/3.12:149d70c254, Aug 22 2023, 16:11:47) [GCC...
732ad44cec971be5255b1accbac6555d3615c2bf
8d92b6eff3bac45e7d4871c46c4511218b9b685a
python/cpython
python__cpython-108298
# Add audit event for time.sleep # Feature or enhancement ### Has this already been discussed elsewhere? I have already discussed this feature proposal on Discourse ### Links to previous discussion of this feature: https://discuss.python.org/t/27214/8 ### Proposal: Add an audit event that async frameworks can us...
31b61d19abcc63aa28625a31ed75411948fc1e7e
2dfbd4f36dd83f88f5df64c33612dd34eff256bb
python/cpython
python__cpython-108281
# Clean up sqlite3.Connection APIs # Feature or enhancement ### Has this already been discussed elsewhere? https://discuss.python.org/t/clean-up-some-sqlite3-apis/32093 ### Links to previous discussion of this feature: https://github.com/python/cpython/issues/87260#issuecomment-1156275354 ### Proposal: ...
4116592b6f014a2720e9b09e2c8dec4bf4b4cd8f
bc5356bb5d7e3eda44128e89a695c05066e0840b
python/cpython
python__cpython-108382
# Add wrapper for timerfd_create, timerfd_settime, and timerfd_gettime to `os` module # Feature or enhancement ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: ### Proposal: event...
de2a4036cbfd5e41a5bdd2b81122b7765729af83
64f158e7b09e67d0bf5c8603ff88c86ed4e8f8fd
python/cpython
python__cpython-113213
# Enable `CFBundleAllowMixedLocalizations` property list key inside Info.plist in macOS # Feature or enhancement ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: _No response_ ### Proposal: ...
4cfce3a4da7ca9513e7f2c8ec94d50f8bddfa41b
41336a72b90634d5ac74a57b6826e4dd6fe78eac
python/cpython
python__cpython-108355
# Minor mistake in dataclasses documentation update An [update](https://github.com/python/cpython/commit/0f23eda4b996dacd19dbe91bd47a30433bf236d2) to the dataclasses docs, intended to make magic method names link to the relevant data model documentation, accidentally changed a line that shouldn't have been changed. ...
79fdacc0059a3959074d2d9d054653eae1dcfe06
64f99350351bc46e016b2286f36ba7cd669b79e3
python/cpython
python__cpython-108296
# heap-use-after-free in _PyFunction_LookupByVersion # Crash report ### CPython versions tested on: CPython main branch ### Operating systems tested on: macOS ### Output from running 'python -VV' on the command line: Python 3.13.0a0 (heads/main:531930f47f, Aug 21 2023, 17:14:02) [Clang 14.0.3 (clang-1403.0.22.14...
b8f96b5eda5b376b05a9dbf046208388249e30a6
adfc118fdab66882599e01a84c22bd897055f3f1
python/cpython
python__cpython-108230
# Inconsistent documentation about calling subprocess inside async function in a child thread # Documentation This page states: https://docs.python.org/3/library/asyncio-dev.html#concurrency-and-multithreading ``` To handle signals and to execute subprocesses, the event loop must be run in the main thread. ```...
1cc391d9e2ea24ca750005335507b52933fc0b52
0dd3fc2a640b273979f94299b545e1e40ac0633c
python/cpython
python__cpython-108227
# Add --disable-gil option to configure # Feature or enhancement @itamaro is working on setting up additional buildbots for PEP 703 builds. To support this, we'll add an optional `--disable-gil` flag to the configure. For now, this flag won't do anything other than define the `Py_NOGIL` macro, but once the buildbots ...
b16ecb88e70d696a93ce993661973330baeafee1
21c0844742cf15db8e56e8848ecbb2e25f314aed
python/cpython
python__cpython-108221
# [C API] Cleanup internal C header files # Feature or enhancement ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: _No response_ ### Proposal: Cleanup internal C header files: see related P...
21c0844742cf15db8e56e8848ecbb2e25f314aed
db55383829ccd5ce80c551d60f26851346741fdf
python/cpython
python__cpython-123802
# PEP 703 -- Making the Global Interpreter Lock Optional in CPython # Feature or enhancement The steering council has [accepted](https://discuss.python.org/t/pep-703-making-the-global-interpreter-lock-optional-in-cpython-acceptance/37075) [PEP 703](https://peps.python.org/pep-0703/). This is intended as a top-level i...
aa3f11f80a644dac7184e8546ddfcc9b68be364c
8ef8354ef15e00d484ac2ded9442b789c24b11e0
python/cpython
python__cpython-108195
# Allow specifying SimpleNamespace attributes as a mapping/iterable in a positional argument # Feature or enhancement ### Has this already been discussed elsewhere? I have already discussed this feature proposal on Discourse ### Links to previous discussion of this feature: https://github.com/python/cpytho...
93b7ed7c6b1494f41818fa571b1843ca3dfe1bd1
85ec1c2dc67c2a506e847dbe2c3c740e81c3ab9b
python/cpython
python__cpython-108256
# Improve error message for parser stack overflow # Crash report ### CPython versions tested on: 3.10 ### Operating systems tested on: Linux ### Output from running 'python -VV' on the command line: Python 3.12.0rc1 (main, Aug 6 2023, 17:56:34) [GCC 9.4.0] ### What happened? I'm working on a project where I e...
86617518c4ac824e2b6dc20691ba5a08df04f285
7f87ebbc3f52680c939791f397b9a478edf0c8d4
python/cpython
python__cpython-113011
# webbrowser.register incorrectly prefers wrong browser if its name is a substring of `xdg-settings get default-web-browser` result # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/py...
10bf615bab9f832971a098f0a42b0d617aea6993
74bfb53e3afb6f5dd90dff3ef0e2dc3b2fba823e
python/cpython
python__cpython-108154
# compile() with PyCF_ONLY_AST flag ignores the optimize arg ``compile()`` (or ``ast.parse()``, which calls it) can return the ast for some source code, converted to a Python object version of the AST. But this AST is not optimized (with ``_PyAST_Optimize``). Static Python re-implemented ``_PyAST_Optimize`` for ...
10a91d7e98d847b05292eab828ff9ae51308d3ee
47022a079eb9d2a2af781abae3de4a71f80247c2
python/cpython
python__cpython-108341
# GzipFile.seek makes invalid write if buffer is not flushed in Python 3.12rc1 # Bug report ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc)...
2eb60c1934f47671e6b3c9b90b6d9f1912d829a0
aa9a359ca2663195b0f04eef46109c28c4ff74d3
python/cpython
python__cpython-108084
# sqlite3: some code paths ignore exceptions _Originally posted by @vstinner in https://github.com/python/cpython/pull/108015#discussion_r1297029863_: > Ignoring the exception here is a bug. > > connection_finalize() clears any exception with PyErr_SetRaisedException(), but pysqlite_connection_close_impl() must n...
fd195092204aa7fc9f13c5c6d423bc723d0b3520
3ff5ef2ad3d89c3ccf4e07ac8fdd798267ae6c61
python/cpython
python__cpython-111086
# [C API] Enhance PyErr_WriteUnraisable() API to pass an error message ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: _No response_ ### Proposal: I added a private ``_PyErr_WriteUnraisableM...
f6a02327b5fcdc10df855985ca9d2d9dc2a0a46f
453e96e3020d38cfcaebf82b24cb681c6384fa82
python/cpython
python__cpython-116118
# Windows build favours NuGet over local install of branch version ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am confident this bug has...
83c5ecdeec80fbd1f667f234f626c4154d40ebb5
91c3c64237f56bde9d1c1b8127fdcb02a112b5a4
python/cpython
python__cpython-108036
# Remove the "CFrame" struct as it is no longer needed for performance. In 3.11 we added a "CFrame" struct that sits on the C stack. This struct held a pointer to the current frame, and a "use_tracing" field. Since we needed to check this field on every bytecode dispatch, it was very hot and needed to be on the C sta...
006e44f9502308ec3d14424ad8bd774046f2be8e
33e6e3fec02ff3035dec52692542d3dd10124bef
python/cpython
python__cpython-108032
# _Py_IsFinalizing has been removed, meaning C/C++ threads cannot avoid termination during shutdown ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-...
3ff5ef2ad3d89c3ccf4e07ac8fdd798267ae6c61
cc58ec9724772a8d5c4a5c9a6525f9f96e994227
python/cpython
python__cpython-108002
# `lambda` is not tested to have `__type_params__` attribute We need to add a test that `lambda` has `__type_params__`. Probably, this test should go to `test_funcattrs`. <!-- gh-linked-prs --> ### Linked PRs * gh-108002 * gh-108019 <!-- /gh-linked-prs -->
a8d440b3837273926af5ce996162b019290ddad5
e35c722d22cae605b485e75a69238dc44aab4c96
python/cpython
python__cpython-107996
# @cached_property is not checked for doctests ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am confident this bug has not been reported b...
9bb576cb07b42f34fd882b8502642b024f771c62
28cab71f954f3a14de9f474ce9c4abbd23c97862
python/cpython
python__cpython-108016
# Drop the "Distributing Python Modules" section of the docs # Documentation https://docs.python.org/3/distributing/index.html is woefully outdated and the packaging ecosystem is managed externally to the core dev team. It would probably be better to have a link pointing at packaging.python.org than it is to try an...
33e6e3fec02ff3035dec52692542d3dd10124bef
f51f0466c07eabc6177c2f64f70c952dada050e8
python/cpython
python__cpython-108126
# ``asyncio.{timeout_at,timeout}`` are incorrectly documented as ``coroutine`` # Documentation [``asyncio.timeout_at``](https://docs.python.org/3/library/asyncio-task.html#asyncio.timeout_at) and [``asyncio.timeout``](https://docs.python.org/3/library/asyncio-task.html#asyncio.timeout) are documented as ``coroutine...
a47c13cae5b32e6f3d7532cc6dbb4e1ac31219de
c31c61c04e55ef431615ffec959d84ac73a3db81
python/cpython
python__cpython-107973
# Argument Clinic silently allow empty custom C basenames See https://github.com/python/cpython/pull/107964#discussion_r1294498693: > Here's a very contrived example that silently passes on this PR, current main and on 3.12: > > ```c > /*[clinic input] > output everything block > class C "void *" "" > # Trail...
607f18c89456cdc9064e27f86a7505e011209757
e90036c9bdf25621c15207a9cabd119fb5366c27
python/cpython
python__cpython-107968
# Infinite recursion in the tokenizer when emitting invalid escape sequence warnings ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am conf...
d66bc9e8a7a8d6774d912a4b9d151885c4d8de1d
13c36dc9ae5240124932137de4a94d81292c6c5f
python/cpython
python__cpython-107965
# set_forkserver_preload should check type of elements in passed list ### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc), and am confident this bug ...
6515ec3d3d5acd3d0b99c88794bdec09f0831e5b
d66bc9e8a7a8d6774d912a4b9d151885c4d8de1d
python/cpython
python__cpython-107960
# clarify documentation on when `os.lchmod()` is missing # Documentation `lchmod()` is not part of POSIX, see https://pubs.opengroup.org/onlinepubs/9699919799/functions/chmod.html but only mentioned there for systems which support changing the file permission bits of symbolic links: > Some implementations might ...
f14e3d59c955fb3cf89e5241727ec566164dcf42
85923cb377c4a13720c135da9ae3ed93465a81e7
python/cpython
python__cpython-107993
# Unnecessary comment about increasing the reference count in usage of ``Py_None`` After merging of #19474 this comment looks unnecessary: https://github.com/python/cpython/blob/8d3cb1bc4b5de091d7b5fcc5ce7378151a8f4f45/Include/object.h#L849 <!-- gh-linked-prs --> ### Linked PRs * gh-107993 <!-- /gh-linked-prs -->
f6099871fac0581ed4d9bcd9b15ce136fb0de8d6
abd9cc52d94b8e2835322b62c29f09bb0e6fcfe9
python/cpython
python__cpython-107969
# Improve error message for function calls with bad keyword arguments Current traceback message: ``` >>> pow(bass=5, exp=2) Traceback (most recent call last): ... TypeError: pow() missing required argument 'base' (pos 1) ``` Proposed: ``` >>> pow(bass=5, exp=2) Traceback (most recent call last): ....
75b3db8445188c2ad38cabc0021af694df0829b8
61c7249759ce88465ea655d5c19d17d03ff3f74b
python/cpython
python__cpython-107939
# Synchronise the signature of `sqlite3.connect? and `sqlite3.Connection.__init__` See https://github.com/python/cpython/issues/93057#issuecomment-1675380260: > [...] we have some technical dept when it comes to `sqlite3.connect` and `sqlite3.Connection.__init__`. Currently, the latter uses clinic, and the former ...
6fbaba552a52f93ecbe8be000888afa0b65b967e
608927b01447b110de5094271fbc4d49c60130b0
python/cpython
python__cpython-107988
# `dis.dis()` reports line numbers where there are none. Take this example function from https://github.com/python/cpython/issues/107901: ``` def f(): for i in range(30000000): if not i%1000000: pass ``` `dis.dis` produces the following output: ``` 1 0 RESUME 0...
24aa249a6633249570978d6aae6f7b21581ee085
8d4052075ec43ac1ded7d2fa55c474295410bbdc
python/cpython
python__cpython-107926
# os.sendfile() flags improperly ordered in documentation # Bug report There are some minor issues in the documentation for which I'm about to submit MRs: 1. There's some bad ordering around ``os.sendfile()``, it seems to make no sense that the `os.set_blocking()` function comes in-between the `os.sendfile()` fu...
403ab1306a6e9860197bce57eadcb83418966f21
f2584eade378910b9ea18072bb1dab3dd58e23bb
python/cpython
python__cpython-107929
# C API functions like `PyErr_SetFromErrnoWithFilename()` can use incorrect error code Calling `PyUnicode_DecodeFSDefault()` in C API functions `PyErr_SetFromErrnoWithFilename()`, `PyErr_SetExcFromWindowsErrWithFilename()` and `PyErr_SetFromWindowsErrWithFilename()` can modify the value of `errno` or the result of `Ge...
80bdebdd8593f007a2232ec04a7729bba6ebf12c
acbd3f9c5c5f23e95267714e41236140d84fe962
python/cpython
python__cpython-107918
# Correctly handle errors in `PyErr_Set*()` functions C API functions `PyErr_SetFromErrnoWithFilename()`, `PyErr_SetExcFromWindowsErrWithFilename()`, `PyErr_SetFromWindowsErrWithFilename()` , `_PyErr_SetString()` and `_PyErr_FormatV()` convert some of their arguments from C string to Python string, but do not check fo...
633ea217a85f6b6ba5bdbc73094254d5811b3485
79db9d9a0e8f51ad4ea5caae31d7ae4b29985271
python/cpython
python__cpython-107930
# PyErr_SetFromErrno() etc should be called immediately after setting the error code Functions like `PyErr_SetFromErrno()` rely on global variable `errno` (actually it is thread local, but it does not matter here). They should be called immediately after using a functions which set `errno`. Calling other function (lik...
2b15536fa94d07e9e286826c23507402313ec7f4
e407cea1938b80b1d469f148a4ea65587820e3eb
python/cpython
python__cpython-107928
# `TypeError: Cannot create a consistent method resolution order`, why the newline? Repro: ``` >>> class My[X](object): ... ... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 1, in <generic parameters of My> TypeError: Cannot create a consistent method resolut...
c3887b57a75a105615dd555aaf74e6c9a243ebdd
cc2cf85d03cf29994a707aae5cc9a349a4165b84
python/cpython
python__cpython-108001
# `class My[X](object):` raises `TypeError: Cannot create a consistent method resolution order` ```python >>> class My[X](object): ... ... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 1, in <generic parameters of My> TypeError: Cannot create a consistent method...
b61f5995aebb93496e968ca8d307375fa86d9329
a8d440b3837273926af5ce996162b019290ddad5
python/cpython
python__cpython-107997
# `TypeAliasType.__value__` might raise `NameError`, should we test it? ```python >>> type Invalid = dict[X, Y] >>> Invalid[str, int] Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Only generic type aliases are subscriptable >>> Invalid.__value__ Traceback (most recent c...
13104f3b7412dce9bf7cfd09bf2d6dad1f3cc2ed
71962e5237bb7e12d8fc1447b8ed8ba082e23f77
python/cpython
python__cpython-108368
# test_tarfile fails on file modes ## Checklist <!-- Bugs in third-party projects (e.g. `requests`) do not belong in the CPython issue tracker --> - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the CPython issue tracker, and am confident this bug has not ...
40e52c94a27e4cd94b48e8a705914823cbb6afed
f3b6608ba2b1db6ac449f656bf439bda8d66eb9f
python/cpython
python__cpython-108242
# Traceback says line -1 when KeyboardInterrupt during minimal for-if-loop More generally, the issue happens with all exceptions raised by other threads. Run the code below and interrupt with ctrl+c. ```py # If part of a file, potentially more code before the loop. Traceback says -1 regardless. for i in ...
a1cc74c4eebc55795877eb3be019a1bec34402f8
e6db23f66d8741db0ffc526d8fd75373a5543e3e
python/cpython
python__cpython-108168
# test.test_asyncio.test_runners fails in "development mode" ```pytb $ ./python -Xdev -m test test.test_asyncio.test_runners -m test_asyncio_run_debug 0:00:00 load avg: 2.08 Run tests sequentially 0:00:00 load avg: 2.08 [1/1] test.test_asyncio.test_runners test test.test_asyncio.test_runners failed -- Traceback (m...
014a5b71e7538926ae1c03c8c5ea13c96e741be3
8f3d09bf5d16b508fece5420a22abe6f0c1f00b7
python/cpython
python__cpython-107892
# Typo "consecuence" in 3.12 whatsnew Typo is here, "consecuence" should be "consequence": https://github.com/python/cpython/blob/2e27da18952c6561f48dab706b5911135cedd7cf/Doc/whatsnew/3.12.rst?plain=1#L1579 I'll open a PR. ## Checklist <!-- Bugs in third-party projects (e.g. `requests`) do not belong in the ...
2e1f688fe0f0a612e54c09f5a7027a834dd8b8d5
2e27da18952c6561f48dab706b5911135cedd7cf
python/cpython
python__cpython-109928
# test_mmap.test_access_parameter failing on macOS Sonoma 14.0 beta on Apple Silicon # Bug report The other day I decided to give the MacOS Sonoma beta a go on my M1 MBP. ```test_mmap``` is now consistently failing with a ```PermissionError``` on ```main``` and ```3.12``` branches. ## A clear and concise descrip...
9dbfe2dc8e7bba25e52f9470ae6969821a365297
9abba715e3225b8e4c4b7dd0ed528ef3a3057bea
python/cpython
python__cpython-107884
# Argument Clinic: Function.fulldisplayname does not handle full module/class hierarchy `Function.fulldisplayname` fails to return the correct string for class methods; per now, it wrongly assumes any Function only has a `Module` parent. <!-- gh-linked-prs --> ### Linked PRs * gh-107884 <!-- /gh-linked-prs -->
ee40b3e20d9b8d62a9b36b777dff42db1e9049d5
bf707749e87f47b2fee2a208a654511ac318d4b9
python/cpython
python__cpython-107885
# Argument Clinic: make it possible to clone __init__ functions See https://github.com/python/cpython/issues/93057#issuecomment-1675380260 In sqlite3, both `sqlite3.connect` and `sqlite3.Connection.__init__` have the same param spec. This has led to the far-from-optimal status quo: https://github.com/python/cpyt...
e90036c9bdf25621c15207a9cabd119fb5366c27
6515ec3d3d5acd3d0b99c88794bdec09f0831e5b
python/cpython
python__cpython-107894
# The table on ``logging`` debug levels is unclear ## Existing Table Many readers need a quick discussion to interpert [the current table](https://docs.python.org/3.12/library/logging.html#logging-levels): Level | Numeric value -- | -- logging.CRITICAL | 50 logging.ERROR | 40 logging.WARNING | 30 logging.I...
cc2cf85d03cf29994a707aae5cc9a349a4165b84
2b6dc2accc315ce279d259ed39e058a225068531
python/cpython
python__cpython-107846
# tarfile.data_filter wrongly rejects some tarballs with symlinks My implementation of PEP-706 has a bug: it wrongly determines the target of symlinks, and thus wrongly raises `LinkOutsideDestinationError` on some valid tarballs. I didn't pay enough attention to this quirk of the format (which I'd like to add to [...
acbd3f9c5c5f23e95267714e41236140d84fe962
622ddc41674c2566062af82f7b079aa01d2aae8c
python/cpython
python__cpython-107815
# find_python.bat is not properly silenced # Bug report When `find_python.bat` is run without a Python interpreter present on the system it installs an interpreter via nuget. However in this case it does not properly silence output to stdout when `-q` is passed. This leads to issues when the user relies on only the...
1e229e2c3d212accbd5fbe3a46cd42f8252b2868
326f0ba1c5dda1d9613dbba11ea2470654b0d9c8
python/cpython
python__cpython-107813
# Extend netlink support to FreeBSD # Feature or enhancement Extend [`socket`](https://docs.python.org/3/library/socket.html)'s `AF_NETLINK` support to FreeBSD. # Pitch FreeBSD 13.2-RELEASE was the first FreeBSD release with a solid support of netlink. Previously this was Linux only technology, but has estab...
f50c17243a87b02086000185f6ed1cad4b8c2376
2ec16fed14aae896e38dd5bd9e73e2eddc974439
python/cpython
python__cpython-108369
# test_tarfile fails on 32 bit systems in NoneInfoExtractTests_Data These tests are newly added, and they produce the following fails on 32 bit x86 systems (running python 3.11.4): ```python ====================================================================== ERROR: test_extractall_none_gid (test.test_tarfile.Non...
5d1871576500adc4ebaa7f59b8559605a57ad36b
72119d16a5f658939809febef29dadeca02cf34d
python/cpython
python__cpython-107834
# Improve message of PyType_Spec deprecation warning with location <!-- New to Python? The issue tracker isn't the right place to get help. Consider instead: - reading the Python tutorial: https://docs.python.org/3/tutorial/ - posting at https://discuss.python.org/c/users/7 - emailing https://mail.pyt...
16dcce21768ba381996a88ac8c255bf1490b3680
e4275f4df36a7cdd58cd4daa7d65b1947a2593d3
python/cpython
python__cpython-107807
# `turtle.teleport` has incorrect-ish signature # Bug report `turtle.teleport` added in https://github.com/python/cpython/pull/103974 seems not quite correct. Why? 1. It is produced automagically from `Turtle.teleport` instance method. It has this signature: `def teleport(self, x=None, y=None, *, fill_gap: bo...
044b8b3b6a65e6651b161e3badfa5d57c666db19
3edcf743e88b4ac4431d4b0f3a66048628cf5c70
python/cpython
python__cpython-107804
# Double linked list implementation for asyncio tasks Currently `asyncio` tasks are stored in a `Weakset`, this is inefficient and in some cases causes bugs because of thread safety (https://github.com/python/cpython/issues/80788). In terms of memory usage it requires maintaining a full set and their corresponding wea...
4717aaa1a72d1964f1531a7c613f37ce3d9056d9
e21347549535b16f51a39986b78a2c2cd4ed09f4
python/cpython
python__cpython-107786
# Pydoc: fall back to __text_signature__ if inspect.signature() fails Pydoc uses `inspect.signature()` to get a function signature. `inspect.signature()` supports Python functions, and also extension functions defined with Argument Clinic (by parsing the `__text_signature__` attribute). Unfortunately Argument Clinic i...
a39f0a350662f1978104ee1136472d784aa6f29c
5f7d4ecf301ef12eb1d1d347add054f4fcd8fc5c
python/cpython
python__cpython-107775
# Missing audit event when registering a callback function in `sys.monitoring`. PEP 669 states that "Registering or unregistering a callback function will generate a `sys.audit` event.", but it isn't implemented yet. <!-- gh-linked-prs --> ### Linked PRs * gh-107775 * gh-107839 <!-- /gh-linked-prs -->
494e3d4436774a5ac1a569a635b8c5c881ef1c0c
39ef93edb9802dccdb6555d4209ac2e60875a011