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-116151
# Update installers to Tcl/Tk 8.6.14 Tcl/Tk 8.6.14 is out today: https://sourceforge.net/p/tcl/mailman/tcl-core/thread/SA1PR09MB887585E09B30AE57F0E7F2E3865F2%40SA1PR09MB8875.namprd09.prod.outlook.com/#msg58743251 I will open a few PRs for these shortly: one here for the macOS installer, and others at cpython-source...
4fa95c6ec392b9fc80ad720cc4a8bd2786fc2835
3cc5ae5c2c6e729ca2750ed490dad56faa7c342d
python/cpython
python__cpython-116144
# Race condition in pydoc._start_server # Bug report ### Bug description: There's a race condition in `pydoc._start_server` - when `_start_server()` returns, we should get an object with a valid `docserver` attribute (set [here](https://github.com/python/cpython/blob/0656509033948780e6703391daca773c779041f7/Lib/pydo...
02ee475ee3ce9468d44758df2cd79df9f0926303
e800265aa1f3451855a2fc14fbafc4d89392e35c
python/cpython
python__cpython-116130
# JIT support for `aarch64-pc-windows-msvc` # Feature or enhancement I don't have hardware to test on yet, but the linked PR at least gets things building for WoA. <!-- gh-linked-prs --> ### Linked PRs * gh-116130 <!-- /gh-linked-prs -->
ffed8d985b57a97def2ec40c61b71a22a2af1b48
981f27dcc4be8bc4824464c9d75f2ea6c868863f
python/cpython
python__cpython-116350
# Implement PEP 705 (TypedDict: Read-only items) # Feature or enhancement PEP-705 was just accepted. For the runtime implementation, we'll need: - [ ] Add the new `ReadOnly` special form - [ ] Adjust the implementation of `TypedDict` - [ ] Update docs The [typing-extensions implementation](https://github.com/python...
df4784b3b7519d137ca6a1aeb500ef59e24a7f9b
3265087c07c261d1b5f526953682def334a52d56
python/cpython
python__cpython-116129
# Implement PEP 696 (Type parameter defaults) # Feature or enhancement Implement PEP-696, which was just accepted. Off the top of my head, we'll need the following: - [ ] Grammar changes - [ ] Changes in typing.py to type parameter application logic - [ ] Documentation I'll work on the first one but contributions o...
ca269e58c290be8ca11bb728004ea842d9f85e3a
852263e1086748492602a90347ecc0a3925e1dda
python/cpython
python__cpython-116138
# Add SBOM regeneration to PCBuild/build.bat Allows for Windows contributors to regenerate the SBOM file, common with the `cpython-source-deps` SBOM. <!-- gh-linked-prs --> ### Linked PRs * gh-116138 * gh-118435 <!-- /gh-linked-prs -->
72dae53e09a5344bf4922d934a34a2fa48a11c86
9a75d56d5d9fdffb6ce9d83ede98486df238102d
python/cpython
python__cpython-116117
# Fix building CPython in windows-i686 with clang-cl # Bug report ### Bug description: ``` In file included from $(SOURCE_ROOT)/python3/src/Modules/_blake2/blake2b_impl.c:30: $(SOURCE_ROOT)/python3/src/Modules/_blake2/impl/blake2b.c(31,23): error: conflicting types for '_mm_set_epi64x' static inline __m128i _mm_set_...
9b9e819b5116302cb4e471763feb2764eb17dde8
0adfa8482d369899e9963206a3307f423309e10c
python/cpython
python__cpython-116371
# ``test_asyncio.test_streams`` raises a ``ResourceWarning`` # Bug report ### Bug description: ```python ./python.exe -m test test_asyncio.test_streams Using random seed: 4151462817 0:00:00 load avg: 28.75 Run 1 test sequentially 0:00:00 load avg: 28.75 [1/1] test_asyncio.test_streams /Users/admin/Projects/cpython/...
990a5f17d05214abe8aafedf8e6418a0fb5ffd50
e205c5cd8f1a49d0ef126123312ee8a40d1416b6
python/cpython
python__cpython-116234
# Revert __signature__ to being a cache, remove string and callable support # Feature or enhancement ### Proposal: #100039 modified the behavior of `__signature__` as used by the inspect.signature function : - if the fields contains a Signature object, it is returned by the function (that doesn't change) - if...
eafd14fbe0fd464b9d700f6d00137415193aa143
b2a7272408593355c4c8e1d2ce9018cf96691bea
python/cpython
python__cpython-116105
# WindowsLoadTracker.__del__ fails if __init__ failed In the `WindowsLoadTracker` test helper, when the user doesn't have access to performance data, `__init__` will raise an exception before setting an attribute that `__del__` currently relies on: ``` Warning -- Failed to create WindowsLoadTracker: [WinError 5]...
186fa9387669bcba6d3974a99c012c2b2c6fb4ce
fb2e17b642fc3089e4f98e4bf6b09dd362e6b27d
python/cpython
python__cpython-116230
# New warning: ``‘fmt’ may be used uninitialized in this function [-Wmaybe-uninitialized]`` # Bug report ### Bug description: Popped up in https://github.com/python/cpython/pull/116101/files and https://github.com/python/cpython/pull/116096/files ### CPython versions tested on: CPython main branch ### Operating s...
cad3745b87ae85285a08ad8abd60cf10a59985b5
fb5e0344e41788988171f31c6b8d4fd1a13b9041
python/cpython
python__cpython-116101
# ``test_compile`` raises a ``DeprecationWarning`` # Bug report ### Bug description: ```python ./python.exe -m test test_compile Using random seed: 123325304 0:00:00 load avg: 1.63 Run 1 test sequentially 0:00:00 load avg: 1.63 [1/1] test_compile /Users/admin/Projects/cpython/Lib/test/test_compile.py:530: Deprecatio...
6a86030bc2519b4a6b055e0b47b9870c86db8588
bea2795be2c08dde3830f987830414f3f12bc1eb
python/cpython
python__cpython-116164
# ``test_interpreters`` fails when running with ``-R 3:3`` argument # Bug report ### Bug description: ```python ./python.exe -m test -R 3:3 test_interpreters Using random seed: 922541786 0:00:00 load avg: 2.79 Run 1 test sequentially 0:00:00 load avg: 2.79 [1/1] test_interpreters beginning 6 repetitions. Showing num...
2e94a6687c1a9750e9d2408a8dff0a422aeaf0e4
d7ddd90308324340855ddb9cc8dda2c1ee3a5944
python/cpython
python__cpython-116178
# ``test_frame`` fails when running with `-R 3:3` argument # Bug report ### Bug description: ```python ./python.exe -m test -R 3:3 test_frame Using random seed: 617081239 0:00:00 load avg: 38.69 Run 1 test sequentially 0:00:00 load avg: 38.69 [1/1] test_frame beginning 6 repetitions. Showing number of leaks (. for 0...
7895a61168aad4565a1d953104c9ec620e7c588f
339c8e1c13adc299a0e2e49c93067e7817692380
python/cpython
python__cpython-116089
# (Auto-?) generate bottom checks in optimizer_cases.c.h If the abstract interpreter ever pushes `bottom` (i.e., a contradition) to the stack, it might as well stop -- this indicates we're looking at unreachable code (e.g., after a deopt that always deopts, or a branch that always branches). My original idea was to...
0656509033948780e6703391daca773c779041f7
3b6f4cadf19e6a4edd2cbbbc96a0a4024b395648
python/cpython
python__cpython-116076
# test_external_inspection.py fails on QEMU builds See https://github.com/python/cpython/pull/116062#issuecomment-1969922416 for details. Basically `get_stack_trace()` raises "OSError: Function not implemented" on some JIT builds (those with aarch64-unknown-linux in their name). On Discord, @erlend-aasland suggests...
4d1d35b906010c6db15f54443a9701c20af1db2d
f484a2a7486d0b4c7c11901f6c668eb23b74e81f
python/cpython
python__cpython-116058
# `test_walk_above_recursion_limit` uses absolute limits # Bug report ### Bug description: `os.walk` and `Path.walk` both have a test verifying that they're not implemented recursively. However, their recursion limits are absolute rather than relative to the current frame. Since the test framework itself already...
2339e7cff745271f0e4a919573a347ab2bc1c2e9
c5fa796619a8cae5a1a8a4a043d05a99adec713d
python/cpython
python__cpython-116049
# Span for invalid escape sequence in multiline strings is wrong # Bug report ### Bug description: ```python a = """ Invalid\ Escape """ ``` When running with `PYTHONWARNINGS=error python3.13 example.py`, i get the correct error that there is an invalid escape sequence, but the error span is located at th...
56eda256336310a08d4beb75b998488cb359444b
49b11033bd87fb26eb4b74ba2451ed30b1af9780
python/cpython
python__cpython-116072
# Enum creation from values fails for certain values. # Bug report ### Bug description: Hello, I tried to define an enum with custom initializer and tuple values, akin to the [Planet example](https://docs.python.org/3/howto/enum.html#planet). When instantiating this enum from values it works for some values (0, 1) b...
13ffd4bd9f529b6a5fe33741fbd57f14b4b80137
b2d74cdbcd0b47bc938200969bb31e5b37dc11e1
python/cpython
python__cpython-116031
# ``test_unparse`` raises a DeprecationWarning # Bug report ### Bug description: ```python ./python.exe -m test test_unparse Using random seed: 1839524422 0:00:00 load avg: 8.33 Run 1 test sequentially 0:00:00 load avg: 8.33 [1/1] test_unparse /Users/admin/Projects/cpython/Lib/test/test_unparse.py:721: DeprecationWa...
3b63d0769f49171f53e9cecc686fa01a383bd4b1
1752b51012269eaa35f7a28f162d18479a4f72aa
python/cpython
python__cpython-116340
# New warnings: ` warning: unused function 'ensure_shared_on_read' [-Wunused-function]` # Bug report ### Bug description: Popped up during the build (`./configure --with-pydebug && make -j`): ```bash Objects/dictobject.c:1233:1: warning: unused function 'ensure_shared_on_read' [-Wunused-function] ensure_share...
58c7919d05a360f3437a204960cddbeb78a71dce
88b5c665ee1624af1bc5097d3eb2af090b9cabed
python/cpython
python__cpython-116027
# macos-13 builds are failing # Bug report In both #105511 and #116025, the macos-13 builds fail with: ``` Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/2to3 Target /usr/local/bin/2to3 already exists. You may want to remove it:...
02beb9f0208d22fd8bd893e6e6ec813f7e51b235
ed4dfd8825b49e16a0fcb9e67baf1b58bb8d438f
python/cpython
python__cpython-116037
# Omit optional fields from `ast.dump()` # Feature or enhancement ### Proposal: ```python >>> ast.dump(ast.arguments()) 'arguments(posonlyargs=[], args=[], kwonlyargs=[], kw_defaults=[], defaults=[])' ``` After #105858, it would be nice if `ast.dump()` also didn't output optional fields that are set to None or an em...
692e902c742f577f9fc8ed81e60ed9dd6c994e1e
7e87d30f1f30d39c3005e03195f3d7648b38a1e2
python/cpython
python__cpython-117046
# Improve `repr()` of AST nodes # Feature or enhancement ### Proposal: I often use `ast.parse` in the terminal to explore what the AST looks like: ``` >>> ast.parse("x = 3") <ast.Module object at 0x105450b50> ``` But I have to remember to use `ast.dump()` to get useful output: ``` >>> ast.dump(ast.parse("x = 3")) ...
21d2a9ab2f4dcbf1be462d3b7f7a231a46bc1cb7
f9fa6ba4f8d90ae12bc1f6a792d66903bb169ba8
python/cpython
python__cpython-116014
# GetLastError() not preserved across GIL operations on Windows # Bug report Changes to TLS usage in 3.13 may cause the last error code to be reset when ensuring, checking or releasing the GIL. We need to preserve the value. `PyGILState_Check` was already updated, but the other public APIs need the same update. Pote...
9578288a3e5a7f42d1f3bec139c0c85b87775c90
647053fed182066d3b8c934fb0bf52ee48ff3911
python/cpython
python__cpython-116246
# FAQ: Replace PEP 6 link with devguide # Documentation This FAQ entry: https://docs.python.org/3/faq/general.html#how-does-the-python-version-numbering-scheme-work Says: > See PEP 6 for more information about bugfix releases. But PEP 6 says: > This PEP is obsolete. The current release policy is doc...
3383d6afa3e4454b237bca2ef856e0f79b5b30c1
4859ecb8609b51e2f6b8fb1b295e9ee0f83e1be6
python/cpython
python__cpython-116470
# ``Tools/cases_generator/optimizer_generator`` CLI does not work without explicit arguments # Bug report ### Bug description: ```python python3.11 optimizer_generator.py usage: optimizer_generator.py [-h] [-o OUTPUT] [-d] input ... optimizer_generator.py: error: the following arguments are required: input, base ``...
b2d74cdbcd0b47bc938200969bb31e5b37dc11e1
834bf57eb79e9bf383a7173fccda032f4c53f69b
python/cpython
python__cpython-116013
# Make the specializing interpreter thread-safe in `--disable-gil` builds # Feature or enhancement ### Proposal: In free-threaded builds, the specializing adaptive interpreter needs to be made thread-safe. We should start with a small PR to simply disable it in free-threaded builds, which will be correct but wil...
339c8e1c13adc299a0e2e49c93067e7817692380
2e94a6687c1a9750e9d2408a8dff0a422aeaf0e4
python/cpython
python__cpython-116019
# Improve documentation for `pprint` module # Documentation The documentation for the `pprint` module could be improved in many respects: - Most users will probably only ever need to use `pprint.pp()` or `pprint.pprint()`, but these are buried halfway down the module. It would be nice if these were the first thing...
e205c5cd8f1a49d0ef126123312ee8a40d1416b6
72714c0266ce6d39c7c7fb63f617573b8f5a3cb2
python/cpython
python__cpython-116528
# Disable building test modules that require `dlopen()` under WASI SDK 21 `_testimportmultiple`, `_testmultiphase`, `_testsinglephase`, `xxlimited`, `xxlimited_35` all get built under WASI SDK 21 thanks to `dlopen()`, but since that function doesn't work normally under WASI we should skip building them. https://git...
8c094c3095feb4de2efebd00f67fb6cc3b2bc240
e39795f2cbad5375536f4be6b3c3906f457992bf
python/cpython
python__cpython-116754
# Fix `test_importlib` under WASI SDK 21 # Bug report ### Bug description: This very likely stems from `dlopen()` being available in WASI SDK 21 but not being usable dynamically as-is. <details> <summary>Test failure output</summary> ``` ====================================================================== ERROR:...
61733a2fb9dc36d2246d922146a3462a2248832d
5ff012a4495060fe9f53ed034c90033e7eafb780
python/cpython
python__cpython-116228
# Turn off `preadv()`, `readv()`, `pwritev()`, and `writev()` under WASI # Bug report ### Bug description: The POSIX functions `preadv()`, `readv()`, `pwritev()`, and `writev()` don't work as expected under [WASI 0.2 on wasmtime](https://github.com/bytecodealliance/wasmtime/issues/7830). Since there are no plans to ...
5dc8c84d397110f9edfa56793ad8887b1f176d79
cad3745b87ae85285a08ad8abd60cf10a59985b5
python/cpython
python__cpython-116516
# Add WASI to CI I asked if anyone had objections at https://discuss.python.org/t/adding-wasi-to-ci/46481 and no one had any. The biggest question will be how to install/cache WASI SDK for faster runs. This will also only be on `main` as it's the only branch to reach tier 2. <!-- gh-linked-prs --> ### Linked PRs *...
05070f40bbc3384c36c8b3dab76345ba92098d42
113053a070ba753101f73553ef6435c5c6c9f3f7
python/cpython
python__cpython-115963
# Add name and mode attributes to compressed file-like objects # Feature or enhancement Regular file objects returned by the `open()` building have `name` and `name` and `mode` attributes. Some code may use these optional attributes for different purposes, for example to distinguish readable files from writable fil...
e72576c48b8be1e4f22c2f387f9769efa073c5be
02beb9f0208d22fd8bd893e6e6ec813f7e51b235
python/cpython
python__cpython-116009
# asyncio.TaskGroup does not close unawaited coroutines # Bug report ### Bug description: Consider the following code: ```python import asyncio async def wait_and_raise(): await asyncio.sleep(0.5) raise RuntimeError(1) async def wait_and_start(tg): try: await asyncio.sleep(1) finally: ...
ce0ae1d784871085059a415aa589d9bd16ea8301
7114cf20c015b99123b32c1ba4f5475b7a6c3a13
python/cpython
python__cpython-115944
# `AcquirerProxy` object has no attribute `locked` # Bug report ### Bug description: According to the documentation, both [multiprocessing.Manager.Lock](https://docs.python.org/3.12/library/multiprocessing.html#multiprocessing.managers.SyncManager.Lock) and [RLock](https://docs.python.org/3.12/library/multiprocessin...
f7305a06c7a322d23b39ad9d16af814d467624c6
6cd1d6c6b142697fb72f422b7b448c27ebc30534
python/cpython
python__cpython-116196
# Documentation: PyDictKeysObjects layout diagram in the comments section of Objects/dictobjects.c file # Documentation The `PyDictKeysObjects` layout diagram in the file `Objects/dictobjects.c` comments section, shown below: ``` layout: +---------------------+ | dk_refcnt | | dk_log2_size |...
5e0c7bc1d311048e8252bae6fc91cb51c556f807
ff96b81d78c4a52fb1eb8384300af3dd0dd2db0d
python/cpython
python__cpython-115935
# ``test_unparse`` raises a ``SyntaxWarning`` # Bug report ### Bug description: ```python ./python.exe -m test test_unparse Using random seed: 1838242075 0:00:00 load avg: 3.28 Run 1 test sequentially 0:00:00 load avg: 3.28 [1/1] test_unparse <unknown>:1: SyntaxWarning: invalid escape sequence '\ ' <unknown>:1: Synt...
b7383b8b71d49c761480ae9a8b2111644310e61d
37f5d06b1bf830048c09ed967bb2cda945d56541
python/cpython
python__cpython-115927
# Non-equation in random.uniform # Documentation The [`random.uniform`](https://docs.python.org/3/library/random.html#random.uniform) doc says: > the equation `a + (b-a) * random()` That's not an equation. Just an expression. The page mentions "equation" twice more right above, but I think those refer to a...
de0b4f95cbfe1f868514029289597204074c05c8
bee7bb3310b356e99e3a0f75f23efbc97f1b0a24
python/cpython
python__cpython-115916
# double init filename_obj value in pythonrun.c function PyRun_AnyFileExFlags # Bug report ### Bug description: ```c /* Parse input from a file and execute it */ int PyRun_AnyFileExFlags(FILE *fp, const char *filename, int closeit, PyCompilerFlags *flags) { PyObject *filename_obj;...
f082a05c67cc949ccd1a940ecf6721953bbdc34f
84a275c4a2c8a22d198c6f227d538e6b27bbb029
python/cpython
python__cpython-116131
# importlib: PermissionError during startup if working directory isn't readable # Bug report ### Bug description: On macOS `importlib._bootstrap_external.PathFinder._path_importer_cache()` raises `PermissionError` during interpreter startup if `''` is included in `sys.path` and the current working directory is n...
a8dc6d6d44a141a8f839deb248a02148dcfb509e
914c232e9391e8e5014b089ba12c75d4a3b0cc7f
python/cpython
python__cpython-116018
# test_capi failure when GIL disabled # Bug report ### Bug description: `test_capi` is failing reliably for me on Ubuntu 22.04 (Intel) and MacOS Sonoma (M1 Pro). Repeat with: ```bash git clean -fdx ./configure make ./python -E -m test --fast-ci --timeout= test_capi # test_capi succeeds git clean -fdx ...
75c6c05fea212330f4b0259602ffae1b2cb91be3
df5212df6c6f08308c68de4b3ed8a1b51ac6334b
python/cpython
python__cpython-115887
# shm_open() and shm_unlink() truncate names with embedded null characters # Bug report Posix functions `shm_open()` and `shm_unlink()` take a null terminated C strings using `PyUnicode_AsUTF8AndSize(path, NULL)` which returns a pointer to char buffer which can include embedded null characters. When interpreted as C ...
79811ededd160b6e8bcfbe4b0f9d5b4589280f19
5770006ffac2abd4f1c9fd33bf5015c9ef023576
python/cpython
python__cpython-115350
# Fix building CPython with -DWIN32_LEAN_AND_MEAN on Windows # Feature or enhancement ### Proposal: We use customized build of CPython which compiles all the sources with `-WIN32_LEAN_AND_MEAN`, thus limiting the amount of transitive `#include` from `Windows.h` header. I would like to propose a series of enhancemen...
96c10c648565c7406d5606099dbbb937310c26dc
c0fdfba7ff981c55ac13325e4dddaf382601b246
python/cpython
python__cpython-115920
# `ast.parse()` believes valid context manager py38 syntax to be invalid when `feature_version=(3, 8)` is passed # Bug report ### Bug description: The following code is completely valid on Python 3.8: ```python from contextlib import nullcontext with ( nullcontext() if bool() else nullcontext() ): ...
7a3518e43aa50ea57fd35863da831052749b6115
8e8ab75d97f51c2850eb8cd711010662d5f1d360
python/cpython
python__cpython-116204
# Segfaults when accessing module state in `tp_dealloc` (itertools teedataobject clear) # Crash report ### What happened? ```python from dataclasses import dataclass from itertools import tee from typing import Optional # if we remove @dataclass, then no segfault @dataclass class SomeDataClass: pa...
e2fcaf19d302b05d3466807bad0a61f39db2a51b
cd2ed917801b93fb46d1dcf19dd480e5146932d8
python/cpython
python__cpython-115873
# Doc: obsolete reference to MSI packages https://docs.python.org/3.13/using/windows.html page refers to "MSI packages" in the following sentence: To make Python available, the CPython team has compiled Windows installers (**MSI packages**) with every release for many years. However, MSI packages have been replace...
52517118685dd3cc35068af6bba80b650775a89b
200271c61db44d90759f8a8934949aefd72d5724
python/cpython
python__cpython-115860
# Type propagation: just because something is const doesn't mean it automatically matches the type # Bug report ### Bug description: See log files for failure: https://github.com/python/cpython/actions/runs/8021737661/job/21914497578 An example failure from my Windows machine: ``` Assertion failed: P...
3409bc29c9f06051c28ae0791155e3aebd76ff2d
75c6c05fea212330f4b0259602ffae1b2cb91be3
python/cpython
python__cpython-115837
# test_monitoring contains hardcoded line numbers # Bug report ### Bug description: `test_lines_single`, `test_lines_loop`, and `test_lines_two` in [`test_monitoring.LinesMonitoringTest`](https://github.com/python/cpython/blob/main/Lib/test/test_monitoring.py#L520) all contain some hardcoded line numbers in their ex...
a494a3dd8e0e74861972698c37b14a4087a4688c
b48101864c724a7eab41a6878a836f38e54e04fb
python/cpython
python__cpython-115856
# Coverage.py test suite failure since commit 0749244d134 # Bug report ### Bug description: Coverage.py runs its test suite against nightly builds of Python. The tests stalled last night. Running them locally, there's one test that freezes the suite. The GitHub action is eventually cancelled by timing out after s...
0adfa8482d369899e9963206a3307f423309e10c
15dc2979bc1b24269177f0e150495abb7f3eb546
python/cpython
python__cpython-115828
# Warning "Objects/longobject.c:1186:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]" # Bug report It happens here: https://github.com/python/cpython/blob/b348313e7a48811acacc293ac4b2c8b20b4c631b/Objects/longobject.c#L1166-L1193 Line `1186`. The problem is: - (no warning) htt...
465df8855e9fff771e119ea525344de48869ef1a
b348313e7a48811acacc293ac4b2c8b20b4c631b
python/cpython
python__cpython-115824
# Invalid error range when the tokeniser finds invalid bytes When the tokeniser raises errors due to invalid byte sequences **only when the parser encoding is implicit** (such when parsing a file), the error locations are not properly transformed to character offsets <!-- gh-linked-prs --> ### Linked PRs * gh-115824 ...
015b97d19a24a169cc3c0939119e1228791e4253
b7383b8b71d49c761480ae9a8b2111644310e61d
python/cpython
python__cpython-116063
# Document in the main Enum page that super().__new__ should not be called The HowTo page says [here](https://docs.python.org/3/howto/enum.html#when-to-use-new-vs-init) that `super().__new__` should not be called in user-defined `__new__` methods of an Enum (subclass), along with a short explanation for why it is the ...
3ea78fd5bc93fc339ef743e6a5dfde35f04d972e
4d1d35b906010c6db15f54443a9701c20af1db2d
python/cpython
python__cpython-116355
# Eliminate boolean and `None` guards for constants Eliminate the following guard ops if the input is constant: * `_GUARD_IS_TRUE_POP` * `_GUARD_IS_FALSE_POP` * `_GUARD_IS_NONE_POP` * `_GUARD_IS_NOT_NONE_POP` <!-- gh-linked-prs --> ### Linked PRs * gh-116355 <!-- /gh-linked-prs -->
0c81ce13602b88fd59f23f701ed8dc377d74e76e
c91bdf86ef1cf9365b61a46aa2e51e5d1932b00a
python/cpython
python__cpython-116109
# Undocumented attributes of logging.Logger # Documentation The `logging.Logger` class has a few undocumented, useful, relatively well-known attributes, namely - `name` - `level` - `parent` - `handlers` - `disabled` It would be useful to add them to the documentation or, if that is undesired, perhaps to add...
3b6f4cadf19e6a4edd2cbbbc96a0a4024b395648
04d1000071b5eefd4b1dd69051aacad343da4b21
python/cpython
python__cpython-115812
# TimedRotatingFileHandler: reliable algorithm to determine the files to delete # Bug report There were many issues related to removing old files in TimedRotatingFileHandler: * bpo-44753/#88916 * bpo-45628/#89791 * bpo-46063/#90221 * #93205 It is complicated because the namer attribute allows arbitrary transformatio...
87faec28c78f6fa8eaaebbd1ababf687c7508e71
002a5948fc9139abec2ecf92df8b543e093c43fb
python/cpython
python__cpython-115814
# Add operator.is_none() # Feature or enhancement ### Proposal: With floating point data, the `float('NaN')` special value is commonly used as a placeholder for missing values. We provide `math.isnan` to support stripping out those values prior to sorting or summation: ```python >>> from math import isnan ...
5580f31c56e6f90909bdceddda077504cc2d18b0
0fd97e46c75bb3060485b796ca597b13af7e6bec
python/cpython
python__cpython-115807
# Configure UX # Feature or enhancement The LDLIBRARY and HOSTRUNNER checks overlap; this results in garbled output: ```console $ ./configure [...] checking LDLIBRARY... checking HOSTRUNNER... libpython$(VERSION)$(ABIFLAGS).a ``` The IPv6 library check is very subtle: ```console $ ./configure [...] configure: usi...
e74cd0f9101d06045464ac3173ab73e0b78d175e
2e92ffd7fa89e3bd33ee2f31541d3dc53aaa2d12
python/cpython
python__cpython-118333
# difflib._check_types allows string inputs instead of sequences of strings as documented # Bug report ### Bug description: Both `difflib.unified_diff` and `difflib.context_diff` document that `a` and `b` input arguments are to be lists of strings. These functions perform argument type checking by way of `difflib._c...
c3b6dbff2c8886de1edade737febe85dd47ff4d0
b90bd3e5bbc136f53b24ee791824acd6b17e0d42
python/cpython
python__cpython-115884
# An error in python Exception Handling doc. [link](https://docs.python.org/3.13/c-api/exceptions.html#c.PyErr_FormatUnraisable) void PyErr_FormatUnraisable(const char *format, ...) Similar to PyErr_WriteUnraisable(), but the format and subsequent parameters help format the warning message; they have the same mean...
6a3236fe2e61673cf9f819534afbf14a18678408
8f5be78bce95deb338e2e1cf13a0a579b3b42dd2
python/cpython
python__cpython-115797
# _testinternalcapi.assemble_code_object doesn't construct the exception table The code object returned from `_testinternalcapi.assemble_code_object.` doesn't have a code object: ``` from _testinternalcapi import compiler_codegen, optimize_cfg, assemble_code_object metadata = { 'filename' : 'exc.py', ...
96c1737591b45bc1c528df1103eb0e500751fefe
8aa372edcd857d2fbec8da0cb993de15b4179308
python/cpython
python__cpython-115749
# Doc: Windows set up documentation refers to obsolete URL # Documentation Using python on Windows documentation refers to an old URL for windows releases here: https://docs.python.org/3.13/using/windows.html In the sentence: "To make Python available, the CPython team has compiled Windows installers (MSI packa...
7bc79371a62e8f45542cf5679ed35d0d29e94226
fac99b8b0df209ca6546545193b1873672d536ca
python/cpython
python__cpython-115815
# Bytecodes cleanup: promote TIER_{ONE,TWO}_ONLY to properties Instead of ``` op(FOO, (left, right -- res)) { TIER_TWO_ONLY <actual code> } ``` I'd like to be able to write ``` tier2 op(FOO, (left, right -- res)) { <actual code> } ``` <!-- gh-linked-prs --> ### Linked PRs * gh-115815 <!-- /gh-...
e4561e050148f6dc347e8c7ba30c8125b5fc0e45
59057ce55a443f35bfd685c688071aebad7b3671
python/cpython
python__cpython-116269
# Double ``versionadded`` labels in ``typing.NoReturn`` doc I think it was added by mistake: https://github.com/python/cpython/blob/5f7df88821347c5f44fc4e2c691e83a60a6c6cd5/Doc/library/typing.rst#L957-L958 cc @JelleZijlstra @AlexWaygood <!-- gh-linked-prs --> ### Linked PRs * gh-116269 * gh-116361 * gh-116362 <!...
0064dfa0919cc93257c351a609f99461f6e4e3ac
23db9c62272f7470aadf8f52fe3ebb42b5e5d380
python/cpython
python__cpython-115774
# Exercise the debug structs placed in PyRuntime To avoid breaking external inspection, profilers and debuggers too often or to make supporting them too difficult, we added a [special offset struct](https://github.com/python/cpython/blob/5f7df88821347c5f44fc4e2c691e83a60a6c6cd5/Include/internal/pycore_runtime.h#L53) i...
1752b51012269eaa35f7a28f162d18479a4f72aa
d53560deb2c9ae12147201003fe63b266654ee21
python/cpython
python__cpython-137326
# IP Interface is_unspecified broken # Bug report ### Bug description: ```python from ipaddress import ip_interface ip_interface('0.0.0.0/32').is_unspecified == False ip_interface('0.0.0.0/32').network.is_unspecified == True ip_interface('0.0.0.0/32').ip.is_unspecified == True ``` Per the [documentation](https://d...
deb0020e3d478fa72104b82e2ba1a1c0c6eb4eae
bc4996c125b3cd5c73d41c6bf4e71571a2b832c2
python/cpython
python__cpython-128411
# Upgrade to GNU Autoconf 2.72 # Feature or enhancement Autoconf 2.72 was [released 2023-12-22](https://lists.gnu.org/archive/html/info-gnu/2023-12/msg00002.html). Relevant highlights (some C&P verbatim) from the release announcement: - Pre-C89 compilers are no longer supported. This should not be a problem for ...
8abd6cef68a0582a4d912be76caddd9da5d55ccd
4ed36d6efb3e3bc613045016dee594d671997709
python/cpython
python__cpython-115781
# Make PyCode_GetFirstFree a PEP-689 unstable API > It was and it wasn't. We don't really want to expose it, but if we don't then Cython and other C extensions will access the internal fields directly, which is worse. > > Now that we have an unstable API, it should probably be part of that. I'd like all code object...
a8e93d3dca086896e668b88b6c5450eaf644c0e7
a3cf0fada09b74b1a6981cc06c4dd0bb1091b092
python/cpython
python__cpython-115750
# "dyld: Library not loaded: /lib/libpython3.13.dylib" in 3.13.0a4 MacOS non-framework build with custom prefix # Bug report ### Bug description: The above error was discovered in [Pyenv CI check](https://github.com/pyenv/pyenv/actions/runs/7927748950/job/21644695424?pr=2903) (logs are on the link). See https...
074bbec9c4911da1d1155e56bd1693665800b814
10fc4675fdb14e19f2fdd15102c6533b9f71e992
python/cpython
python__cpython-115736
# segfault with PYTHON_LLTRACE=3 and PYTHON_UOPS=1 on debug build # Crash report ### What happened? On main, run ``` PYTHON_UOPS=1 PYTHON_LLTRACE=3 ./python ``` ### CPython versions tested on: CPython main branch ### Operating systems tested on: _No response_ ### Output from running 'python -V...
7a8c3ed43abb4b7a18e7a271aaee3ca69c0d83bc
e3ad6ca56f9b49db0694f432a870f907a8039f79
python/cpython
python__cpython-115740
# 3.13.0a4 SIGSEGV when calling next on a list-iterator in for that loops the same iterator # Bug report ### Bug description: --- EDIT smaller reproducer: ```python parts = iter([...] * 3) # odd number of elements for part in parts: next(parts, ...) ``` --- Hello, when we try to build Flask ...
520403ed4cdf4890d63403c9cf01ac63233f5ef4
494739e1f71f8e290a2c869d4f40f4ea36a045c2
python/cpython
python__cpython-115726
# Show number of leaks in --huntrleaks # Feature or enhancement Currently, `-R` (`--huntrleaks`) only displays the reference counts when the test fails. It also uses a [generous heuristic](https://github.com/python/cpython/issues/74959), which avoid false positives, but might hide issues. To get more insight into wh...
af5f9d682c20c951b90e3c020eeccac386c9bbb0
6087315926fb185847a52559af063cc7d337d978
python/cpython
python__cpython-115757
# On WASI, time.process_time is not in seconds In a fresh WASI build, `time.process_time`, which should be in seconds, counts 10⁶ times faster than `time.time`: ``` >>> import time >>> time.time(); time.process_time() 1708435312.596558 4775079350.12 >>> time.time(); time.process_time() 1708435313.0949461 478...
8aa372edcd857d2fbec8da0cb993de15b4179308
baae73d7307214ee97abbe80aaa8c1c773a6f682
python/cpython
python__cpython-115721
# CSV dialect with delimiter=' ' and skipinitialspace=True # Bug report Combination of `delimiter=' '` and `skipinitialspace=True` was considered illegal in #113796, because it is ambiguous in case of empty fields. But there may be a use case for this, when the input is a preformatted table with a series of spaces co...
937d2821501de7adaa5ed8491eef4b7f3dc0940a
cc82e33af978df793b83cefe4e25e07223a3a09e
python/cpython
python__cpython-118639
# Type propagation does not account for the setting local variables via `frame.f_locals` in a debugger or similar. # Bug report ### Bug description: Consider ```Py def testfunc(loops): for _ in range(loops): a = 1 a + a a + a change_a() a + a ``` and suppose ...
616b745b89a52a1d27123107718f85e65918afdc
00d913c6718aa365027c6dcf850e8f40731e54fc
python/cpython
python__cpython-115708
# `PCbuild\build.bat` script cannot generate `Python\generated_cases.c.h` files and so on # Bug report ### Bug description: When I ran the script `PCbuild/build.bat` with and without the `--regen` argument, it could not regenerate `Python\generated_cases.c.h` file. I found the files in `Tools\cases_generateor` chang...
a2bb8ad14409c7ecb8dea437b0e281eb1f65b5d8
626c414995bad1dab51c7222a6f7bf388255eb9e
python/cpython
python__cpython-115693
# Increase coverage of `json` module I'll open a PR to increase some test coverage, following https://devguide.python.org/testing/coverage/ For my own reference, here's a one-liner to run tests and generate HTML coverage report: `python -m coverage run --pylib --branch --source=json Lib/test/regrtest.py test_jso...
8fc953f606cae5545a4d766dc3031316646b014a
9c93b7402ba11d1d68e856516e56ca72989a7db9
python/cpython
python__cpython-115688
# Type/value propagate through COMPARE_OP - [x] Split up into uops - [x] Propagate bool value and constants too. <!-- gh-linked-prs --> ### Linked PRs * gh-115688 * gh-116360 <!-- /gh-linked-prs -->
dcba21f905ef170b2cd0a6433b6fe6bcb4316a67
a2bb8ad14409c7ecb8dea437b0e281eb1f65b5d8
python/cpython
python__cpython-115686
# Type/value propagation for `TO_BOOL` * [x] Normal _TO_BOOL specializations and friends. * [x] TO_BOOL_ALWAYS_TRUE (only if it's worth it?) <!-- gh-linked-prs --> ### Linked PRs * gh-115686 * gh-116311 * gh-116352 <!-- /gh-linked-prs -->
d01886c5c9e3a62921b304ba7e5145daaa56d3cf
c04a981ff414b101736688773dbe24f824ca32ce
python/cpython
python__cpython-116519
# datetime.date.replace() description not clear enough # Documentation In documentation explanation to command date.replace() is not clear enough. I'm not that experienced, so it's maybe look from junior perspective, but since documentation quite needed for beginers i think my opinion might be valuable. In do...
d2d886215cf694d5f3e7f0cbd76507a96bac322b
d716ea34cb8a105e8e39a1ddfd610c3c0f11a0e7
python/cpython
python__cpython-115665
# Fix the use of versionadded and versionchanged directives While reviewing the PR for #115652 I noticed other errors in multiprocessing.rst: incorrect order of `versionchanged` directives, using `versionadded` instead of `versionchanged`, misusing the term "argument" instead of "parameter". Then I tried to search sim...
8f602981ba95273f036968cfc5ac28fdcd1808fa
b02ab65e8083185b76a7dd06f470b779580a3b03
python/cpython
python__cpython-115790
# Tools/build/generate_sbom.py fails if `expat` and `_decimal/libmpdec/**` are configured to come from the system # Bug report ### Bug description: I try to build Python 3.13.0a4 for Fedora Linux, but unsuccessfully. `expat` and `_decimal/libmpdec` are removed from our version of Python. We configure it with th...
c6a47de70966e6899871245e800a0a9271e25b12
96c1737591b45bc1c528df1103eb0e500751fefe
python/cpython
python__cpython-115654
# Missing documentation for public C-API function # Documentation There are no documentation for the ```PyCode_GetFirstFree``` and incorrect return type for ```PyCode_GetNumFree``` <!-- gh-linked-prs --> ### Linked PRs * gh-115654 * gh-115752 <!-- /gh-linked-prs -->
10fc4675fdb14e19f2fdd15102c6533b9f71e992
77430b6a329bb04ca884d08afefda25112372afa
python/cpython
python__cpython-115658
# Indentation in the documentation of multiprocessing.get_start_method # Documentation There is a problem with the indentation in the documentation of [`multiprocessing.get_start_method`](https://docs.python.org/3/library/multiprocessing.html#multiprocessing.get_start_method). "Changed in version 3.8: [...]" and "N...
d504968983c5cd5ddbdf73ccd3693ffb89e7952f
aa8c1a0d1626b5965c2f3a1d5af15acbb110eac1
python/cpython
python__cpython-115711
# Convert `LOAD_ATTR_MODULE` to a constant where the module is already a constant Expressions like `mod.attr`, where `mod` is a module, are in almost all cases effectively constants. We should optimize them as such. We already treat the `mod` as a constant, so it is a relatively simple step to treat `mod.attr` as...
b348313e7a48811acacc293ac4b2c8b20b4c631b
c6a47de70966e6899871245e800a0a9271e25b12
python/cpython
python__cpython-115628
# `PySSL_SetError` needs to be updated # Bug report ### Bug description: It was dealt with other issues before, but the contents are not intuitive, so I rearrange them. The `SSL_write()` and `SSL_read()` used in python 3.9 were modified from python 3.10 to `SSL_write_ex()` and `SSL_read_ex()`, and the return ...
ea9a296fce2f786b4cf43c7924e5de01061f27ca
d52bdfb19fadd7614a0e5abaf68525fc7300e841
python/cpython
python__cpython-115619
# Incorrect Py_XDECREFs in property # Crash report When `property` methods `getter()`, `setter()` or `deleter()` are called with None as argument, they call `Py_XDECREF()` on it. Now, when None is immortal, it perhaps have no effect, but in earlier Python versions it could have bad consequences. It was not reported ...
090dd21ab9379d6a2a6923d6cbab697355fb7165
aba37d451fabb44a7f478958ba117ae5b6ea54c0
python/cpython
python__cpython-115610
# test_os permanently change the process priority # Bug report ProgramPriorityTests in test_os changes the process priority (makes it less prioritized in the scheduler) and then tries to restore the old value, why is fail unless the test is ran as root. It affects all further tests if run in sequential mode and all f...
90dd653a6122a6c5b4b1fe5abe773c4751e5ca25
437924465de5cb81988d1e580797b07090c26a28
python/cpython
python__cpython-115850
# Python 3.13a4 ships with wrong pyconfig.h? # Bug report ### Bug description: Hello, I tried to build a C-extension locally with python 3.13a4 and got the error `LINK : fatal error LNK1104: cannot open file 'python313t.lib'`. (I got Python 3.13a4 from the python.org installer, tested Windows 32 and 64 bit). Afte...
37a13b941394a1337576c67bff35d4a44a1157e2
72cff8d8e5a476d3406efb0491452bf9d6b02feb
python/cpython
python__cpython-117632
# URI Netloc deprecated; replaced by Authority # Documentation cpython has several references to "netloc" (primarily in the [Lib](https://github.com/python/cpython/tree/3.12/Lib) and [urllib](https://github.com/python/cpython/tree/3.12/Lib/urllib) libraries). This term describes the network location and login info...
3ed3bc379a0c4ce7a107dd4bc276554fbb477998
7528b84e947f727734bd802356e380673553387d
python/cpython
python__cpython-115631
# ``codeobject.replace`` function is undocumented ### Bug description: ``codeobject.replace`` function was introduced in a9f05d69ccbf3c75cdd604c25094282697789a62, but there's only a note in ``Doc/whatsnew``. My folk @daler-sz would like to work on a fix :) ### CPython versions tested on: 3.11, 3.12, 3.13 ### Ope...
0c80da4c14d904a367968955544dd6ae58c8101c
371c9708863c23ddc716085198ab07fa49968166
python/cpython
python__cpython-115568
# ``test_ctypes`` on Windows prints unnecessary information # Bug report ### Bug description: ```python ./python -m test -R 3:3 test_ctypes Running Debug|x64 interpreter... Using random seed: 212491410 0:00:00 Run 1 test sequentially 0:00:00 [1/1] test_ctypes beginning 6 repetitions 123456 a=5, b=10, c=15 a=5, b=10...
265548a4eaaebc3fb379f85f2a919848927f09e5
04005f5021a17b191dae319faaadf1c942af3fe9
python/cpython
python__cpython-115557
# Windows test scripts don't escape commas properly In Windows batch file execution, a comma is one of the magic parameter delimiters. To pass a comma as parameter data, you have to use string quotes around that parameter, like: ``` .\Tools\buildbot\test.bat -M33g "-uall,extralargefile" test_zipfile64 ``` Howe...
711f42de2e3749208cfa7effa0d45b04e4e1fdd4
74e6f4b32fceea8e8ffb0424d9bdc6589faf7ee4
python/cpython
python__cpython-115793
# Python Install Fails Due To Newer Launcher # Bug report ### Bug description: ```python # Add a code block here, if required ``` If you have a Windows machine with multiple versions of python installed the presence of a newer version of the installer can prevent updating the older python version installations. For ...
9b7f253b55f10df03d43c8a7c2da40ea523ac7a1
59167c962efcae72e8d88aa4b33062ed3de4f120
python/cpython
python__cpython-115544
# py.exe launcher does not detect Windows Store 3.13 package Need to update a few references - quite straightforward, but should be backported. <!-- gh-linked-prs --> ### Linked PRs * gh-115544 * gh-115689 * gh-115690 <!-- /gh-linked-prs -->
6cd18c75a41a74cab69ebef0b7def3e48421bdd1
57d31ec3598429789492e0b3544efaaffca5799f
python/cpython
python__cpython-115636
# enum.Flag with a flag set to None raises an exception # Bug report ### Bug description: The following code snippet defines a `Flag` class denoting an unsupported flag with `None`. ```python from enum import Flag class TestFlag(Flag): O_NONE = 0 O_ONE = 1 O_TWO = 2 O_FOUR = 4 O_NOT...
c2cb31bbe1262213085c425bc853d6587c66cae9
6cd18c75a41a74cab69ebef0b7def3e48421bdd1
python/cpython
python__cpython-116925
# Windows debug main test_os, test_venv failures `python -m test -uall test_os` ``` test test_os failed -- Traceback (most recent call last): File "f:\dev\3x\Lib\test\test_os.py", line 2229, in test_fdopen self.check_bool(os.fdopen, encoding="utf-8") ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File ...
cd2ed917801b93fb46d1dcf19dd480e5146932d8
43c9d6196a8593ebd1fda221a277dccb984e84b6
python/cpython
python__cpython-115863
# Add kernel density estimation to the statistics module # Feature ### Proposal: I propose promoting the KDE statistics recipe to be an actual part of the statistics module. See: https://docs.python.org/3.13/library/statistics.html#kernel-density-estimation My thought Is that it is an essential part of st...
6d34eb0e36d3a7edd9e7629f21da39b6a74b8f68
6a3236fe2e61673cf9f819534afbf14a18678408
python/cpython
python__cpython-128037
# Spurious "Exception in callback None()" after upgrading to 3.12 # Bug report ### Bug description: Hello, after upgrading our application to 3.12.1 that uses aiohttp to download stuff via HTTPS as well as connects to some RabbitMQ servers via ssl, we get this spurious exception to stderr, dozens-hundres of them...
4e38eeafe2ff3bfc686514731d6281fed34a435e
853a6b7de222964d8cd0e9478cb5c78d490032e6
python/cpython
python__cpython-115504
# `run_presite`'s error handling is wrong # Bug report https://github.com/python/cpython/blob/474204765bdbdd4bc84a8ba49d3a6558e9e4e3fd/Python/pylifecycle.c#L1106-L1113 I think that `Py_DECREF(presite_modname);` is not needed, because `presite_modname` is `NULL` in this branch. This will, likely, lead to a crash. I ...
20eaf4d5dff7fa20f8a745450fef760f0923eb52
321d13fd2b858d76cd4cbd03e6d8c4cba307449e