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-105488
# Inconsistent `repr` of `types.GenericAlias` with `ParamSpec` The simplest repro: ```python >>> type A[X, **Y] = None >>> A[int, [str]] A[int, [<class 'str'>]] ``` I think that it should be: ```python >>> type A[X, **Y] = None >>> A[int, [str]] A[int, [str]] ``` We already had similar issues in th...
eb7d6e7ad844955f9af88707d296e003c7ce4394
e212618bafaa4f775502e3442de0affb80205b5e
python/cpython
python__cpython-105482
# Generate opcode metadata from bytecodes.c instead of opcode.py We would ideally have bytecodes.c as the single source of truth about opcodes. So opcode.py and the code generated from it should be replaced by alternatives from the cases_generator, if we can. <!-- gh-linked-prs --> ### Linked PRs * gh-105482 ...
be2779c0cb54e56ea4bb9822cc7bb5c24e6a7af7
2211454fe210637ed7fabda12690dac6cc9a8149
python/cpython
python__cpython-135994
# Remove deprecated `sre_*` modules # Feature or enhancement `sre_*` modules like `sre_constants`, `sre_compile`, and `sre_parse` were deprecated in `3.11` in https://github.com/python/cpython/commit/1be3260a90f16aae334d993aecf7b70426f98013 Our regular deprecation policy is that the deprecated things can be remo...
93809a918f3a2853e8a191b84ad844c722bee2f5
12ce16bc134a602d2ac8acde86ae69f70183cb9f
python/cpython
python__cpython-105438
# PEP 695: not all name collisions are tested Right now there are two tests for name colisions of type parameters of type aliases and functions: - https://github.com/python/cpython/blob/27c68a6d8f20090310450862c2c299bb7ba3c160/Lib/test/test_type_params.py#L11-L12 - https://github.com/python/cpython/blob/27c68a6d8f20...
76883af6bf28b7e810df172bd6762bf2cb64df08
18309ad94bb1ae0b092f34dc3fd54199876a6ebd
python/cpython
python__cpython-105495
# `subprocess.run(..., env={})` broken on Windows <!-- If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not the right place to seek help. Consider the following options instead: - reading the Python tutorial: https://docs.python.org/3/tutori...
4f7d3b602d47d61137e82145f601dccfe6f6cd3c
2b90796be6959d5ef46b38c434a514fce25be971
python/cpython
python__cpython-105442
# tokenize.py emits spurious NEWLINE if file ends on a comment without a newline # Bug report This issue, which was reported in https://bugs.python.org/issue35107#msg328884 for much older Python versions in the case where a file ended on a comment, has resurfaced for Python 3.12. ``` Python 3.12.0b2 (tags/v3.12...
7279fb64089abc73c03247fb8191082ee42a9671
a24a780d937109a0982d807473ae410cc75b0e3b
python/cpython
python__cpython-105443
# PEP 695 is not tested to be `pickle`able (or at least I cannot find these tests) I think that testing the pickle result of functions, classes, and type aliases created with the new syntax is very important. I propose to add these tests, PR is in the works. <!-- gh-linked-prs --> ### Linked PRs * gh-105443 *...
1af8251d9ec2f18e131c19ccf776fb9ec132c7a8
486b52a3158e0f64fc54efdfa34ed5437b3619f2
python/cpython
python__cpython-105432
# `test_typing.NewTypeTests` can be improved After https://github.com/python/cpython/pull/103764/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305dR6452 `NewTypeTests` has two unused methods: - `cleanup`, it is even provided in its parent class: `BaseTestCase` - `teardown`, because it does n...
9d35a71a76cb033598ce136ea655d9e452fe3af0
aa5b762bd3a3e837678cf7f9e1434c0f68208a0e
python/cpython
python__cpython-105434
# `typing._Immutable` is not used anymore `class _Immutable` https://github.com/python/cpython/blob/27c68a6d8f20090310450862c2c299bb7ba3c160/Lib/typing.py#L422-L431 after https://github.com/python/cpython/pull/103764/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887L969 is not used. ``` »...
18309ad94bb1ae0b092f34dc3fd54199876a6ebd
e26d296984b2b6279231922ab0940d904aa6144e
python/cpython
python__cpython-105408
# Remove unused imports (June 2023) Time to time, I run ``pyflakes`` to find unused imports in the Python code base. That's the issue for June 2023 :-) <!-- gh-linked-prs --> ### Linked PRs * gh-105408 * gh-105409 * gh-105410 * gh-105411 * gh-105554 <!-- /gh-linked-prs -->
ae319e4b43dc0d9d94d36bdcdbc5443364398c29
d3a0eacbf382288a487d40f16d63abfeb2125e1a
python/cpython
python__cpython-105397
# C API: Deprecate PyImport_ImportModuleNoBlock() function The PyImport_ImportModuleNoBlock() function is an alias to PyImport_ImportModule() since Python 3.3. I propose to deprecate it and schedule its removal in Python 3.15. <!-- gh-linked-prs --> ### Linked PRs * gh-105397 <!-- /gh-linked-prs -->
3e525d22128cf040b3fd164f52cc6ae20ca58455
a5f23d411062f9f29f8a7d7ddefe60d5d8e17d2e
python/cpython
python__cpython-105399
# (3.12+) tokenize exception type is wrong <!-- If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not the right place to seek help. Consider the following options instead: - reading the Python tutorial: https://docs.python.org/3/tutorial/ ...
ffd26545509b706437ca38bd6db6108c1d0e2326
27c68a6d8f20090310450862c2c299bb7ba3c160
python/cpython
python__cpython-105388
# PEP 683 (Immortal Objects): Implement Py_INCREF() as function call in limited C API 3.12 The implementation of Py_INCREF() and Py_DECREF() functions changed in Python 3.12 to implement PEP 683 (Immortal Objects). [Stable ABI sections of PEP 683](https://peps.python.org/pep-0683/#stable-abi) says: > The implementa...
b542972dc133973a7f0517aa1b61779271789111
f3266c05b6186ab6d1db0799c06b8f76aefe7cf1
python/cpython
python__cpython-105384
# urllib.request: Remove deprecated cafile, capath and cadefault parameters in Python 3.13 In Python 3.12, I removed *keyfile* and *certfile* parameters of most stdlib modules in issue #94172, but I forgot to remove *cafile* and *capath* of the ``urllib.request`` module. I propose to remove the *cafile*, *capath* a...
2587b9f64eefde803a5e0b050171ad5f6654f31b
94d5f9827da4bf4b1e61c134fe29904b2b92f124
python/cpython
python__cpython-105377
# Remove deprecated logging.Logger.warn() method in Python 3.13 The logging.Logger.warn() method was deprecated in Python 3.3 by issue #57444 and commit 04d5bc00a219860c69ea17eaa633d3ab9917409f. This method is not documented and emits a DeprecationWarning since Python 3.3. https://github.com/python/cpython/issues/5...
6c54e5d72166d012b52155cbf13af9e533290e06
221d703498d84e363070c89c28f839edceaac9b2
python/cpython
python__cpython-105412
# Incorrect error handling for APIs that can raise exceptions For example, in the collation callback two `str` objects (`string1` and `string2`) are created using `PyUnicode_FromStringAndSize`. Error handling should happen directly after each call to `PyUnicode_FromStringAndSize`: https://github.com/python/cpython/...
a24a780d937109a0982d807473ae410cc75b0e3b
ffd26545509b706437ca38bd6db6108c1d0e2326
python/cpython
python__cpython-105715
# locals() in a module or class scope comprehension does not include the iteration var(s) since 3.12b1 In Python 3.11, inside a comprehension, `locals()` was bound to the scope of the comprehension: ``` $ py -3.11 -c "print([locals() for name in 'abc'])" [{'.0': <str_ascii_iterator object at 0x10472dc30>, 'name'...
104d7b760fed18055e4f04e5da3ca619e28bfc81
838406b4fc044c0b2f397c23275c69f16a76205b
python/cpython
python__cpython-105348
# enum.IntFlag (un)pickles incorrectly on Python 3.12 (and differently on Python 3.11) <!-- If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not the right place to seek help. Consider the following options instead: - reading the Python tutor...
4ff5690e591b7d11cf11e34bf61004e2ea58ab3c
e822a676f1f3bef6c5413e9b856db481c08ac2a5
python/cpython
python__cpython-105325
# python -m tokenize is broken when reading from stdin ``` ./python.exe -m tokenize <<< 'f"{F():\n}"' unexpected error: 'generator' object is not callable Traceback (most recent call last): File "/Users/pgalindo3/github/python/main/Lib/runpy.py", line 198, in _run_module_as_main return _run_code(code, main...
f04c16875b649e2c2b420eb146308d0206c7e527
677cf3974190f1f627ff63cc6c8777d7f390e47b
python/cpython
python__cpython-105295
# Incorrect call to `SSL_CTX_set_session_id_context` on client side SSL context When initialising an SSLContext there is a call to `SSL_CTX_set_session_id_context()`: #define SID_CTX "Python" SSL_CTX_set_session_id_context(self->ctx, (const unsigned char *) SID_CTX, ...
21d98be42289369ccfbdcc38574cb9ab50ce1c02
490295d651d04ec3b3eff2a2cda7501191bad78a
python/cpython
python__cpython-105294
# add option to traceback.format_exception_only to recurse into exception groups traceback.format_exception_only skips the backtrace and prints only the exception message. For exception groups it would be good to have an option to print the nested exceptions, recursively (just their types and message, no backtrace). ...
f4d8e10d0d0cc1ba0787d2350a699d9fb227a7cd
92022d8416d9e175800b65c4d71d4e4fb47adcb0
python/cpython
python__cpython-107130
# Link specifically to distutils migration advice in What's New I think it would be useful to link directly to https://peps.python.org/pep-0632/#migration-advice in 3.12's What's New, since that section has more specific advice. <!-- gh-linked-prs --> ### Linked PRs * gh-107130 * gh-107160 <!-- /gh-linked-prs -->
7ca2d8e053e5fdbac4a9cec74701a1676c17a167
b447e19e720e6781025432a40eb72b1cc93ac944
python/cpython
python__cpython-105287
# Improve `typing.py` docstrings The docstrings in `typing.py` could do with a spring clean. As well as several small grammatical errors, there's also several details which are out of date; very inconsistent indentation in code examples; and numerous other small things that could be improved. <!-- gh-linked-prs --> #...
f714aa2c29eae5cc4b5b54e4d83d83eebd5eac53
08756dbba647440803d2ba4545ba0ab2f0cdfe1c
python/cpython
python__cpython-105281
# `typing.Protocol` implementation means that `isinstance([], collections.abc.Mapping)` can sometimes evaluate to `True` (In very specific circumstances) # Bug report Due to some changes that have been made to the implementation of `typing.Protocol` in Python 3.12, whether or not `isinstance([], collections.abc....
08756dbba647440803d2ba4545ba0ab2f0cdfe1c
058b96053563bb5c413dc081eb8cc0916516525c
python/cpython
python__cpython-105350
# 3.12.0b1: static declaration follows non-static when importing internal/pycore_dict.h <!-- If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not the right place to seek help. Consider the following options instead: - reading the Python tuto...
8ddf0dd264acafda29dc587ab8393387bb9a76ab
49fe2e4af7993c124b98589ee608ed6ba2cee8e6
python/cpython
python__cpython-105364
# 3.12: tokenize adds a newline when it is not there <!-- If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not the right place to seek help. Consider the following options instead: - reading the Python tutorial: https://docs.python.org/3/tut...
c0a6ed39343b6dc355607fbff108c515e6c103bf
0202aa002e06acef9aa55ace0d939103df19cadd
python/cpython
python__cpython-106378
# comprehensions iterating over `locals()` may break under some trace funcs in 3.12 It is already the case in all recent Python versions that the lazy-update behavior of the dictionary returned from `locals()` causes weird frame-introspection-sensitive semantics around lazy iteration of `locals()`. E.g. this code will...
13aefd175e3c04529251f175c23cb3ed88451fd0
104d7b760fed18055e4f04e5da3ca619e28bfc81
python/cpython
python__cpython-105241
# Compiler warning on missing prototypes (Mac) ./Modules/readline.c:1018:16: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] on_startup_hook() ^ void ./Modules/readline.c:1033:18: warning: a function declaration without a p...
a9305b5e80e414b8b9b2bd366e96b43add662d70
44bb03f856c30f709bb983f9830eafe914a742aa
python/cpython
python__cpython-105239
# Cannot call `issubclass()` against `typing.Protocol` on Python 3.12 # Bug report On Python 3.11, you can do this: ```pycon >>> import typing >>> issubclass(object, typing.Protocol) False ``` But on Python 3.12 (following the backport of https://github.com/python/cpython/commit/c05c31db8c9dfd708b9857bb57...
cdfb201bfa35b7c50de5099c6d9078c806851d98
69d1245685cf95ddc678633e978a56673da64865
python/cpython
python__cpython-105252
# Off-by-one memory error in a string fastsearch since 3.11 # Bug report This bug happens in [Objects/stringlib/fastsearch.h:589](https://github.com/python/cpython/blob/v3.11.3/Objects/stringlib/fastsearch.h#L589) during matching the last symbol. In some cases, it causes crashes, but it's a bit hard to reproduce si...
ab86426a3472ab68747815299d390b213793c3d1
2d43beec225a0495ffa0344f961b99717e5f1106
python/cpython
python__cpython-105230
# Remove superinstructions Superinstructions offer a small speedup, but their existence complicates things; mainly instrumentation, and specialization. The tier2 optimizer is likely to be simpler without superinstructions. [This experiment](https://github.com/faster-cpython/benchmarking-public/tree/main/results/bm...
06893403668961fdbd5d9ece18162eb3470fc8dd
e8ecb9ee6bec03d0c4490f3e7f1524e56e2f6a0f
python/cpython
python__cpython-105747
# ``tp_dict`` slot of static builtin types is ``NULL`` in 3.12, without mention in the changelog or an alternative PyObjC contains some functionality that needs to walk the entire MRO of classes and access the ``tp_dict`` slot. As of Python 3.12 beta 1 this code crashes due to the slot being ``NULL`` on static builtin...
a840806d338805fe74a9de01081d30da7605a29f
3e23fa71f43fb225ca29a931644d1100e2f4d6b8
python/cpython
python__cpython-105215
# Use named constants for MAKE_FUNCTION oparg The oparg for MAKE_FUNCTION is a mask of various flags (e.g. 0x8 means it has a closure). These are currently hardcoded as integers; let's use named constants instead. <!-- gh-linked-prs --> ### Linked PRs * gh-105215 <!-- /gh-linked-prs -->
44bb03f856c30f709bb983f9830eafe914a742aa
41de54378d54f7ffc38f07db4219e80f48c4249e
python/cpython
python__cpython-105672
# C API documentation index is laid out incorrectly The last two lines in this snippet should be indented further than the line above them, they are more specific. (Alternatively, they can be removed because they don't add much). <img width="401" alt="image" src="https://github.com/python/cpython/assets/1055913/5b...
d32e8d6070057eb7ad0eb2f9d9f1efab38b2cff4
4a113e24a38e2537570e4d694f8e0c01354904c4
python/cpython
python__cpython-105231
# Backslash in f-string format specifier gets escape <!-- If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not the right place to seek help. Consider the following options instead: - reading the Python tutorial: https://docs.python.org/3/tut...
41de54378d54f7ffc38f07db4219e80f48c4249e
4bfa01b9d911ce9358cf1a453bee15554f8e4c07
python/cpython
python__cpython-105197
# Clean up peg_generator: Remove data, scripts and maintain them elsewhere Since the peg generator has reached a certain stability (I don't see us adding any major new features to the generator in the near future), I think it'd be best if we remove the data and scripts directories from `Tools/peg_generator` and leave ...
a241003d048f33c9072d47217aa6e28beb7ac54f
c67121ac6bf8ee36d79de92ef68fc3fde178d2a3
python/cpython
python__cpython-105232
# `importlib.resources.abc.TraversableResources` says it is deprecated in favour of itself # Documentation https://docs.python.org/3.12/library/importlib.resources.abc.html#importlib.resources.abc.TraversableResources says it is deprecated in favour of itself it should be documented here https://docs.python.org/...
6c0ddca409c1ed27b11c70386cd6c88be5d00115
44d9a71ea246e7c3fb478d9be62c16914be6c545
python/cpython
python__cpython-105185
# C API functions with no return value cannot report errors As discussed in https://github.com/capi-workgroup/problems/issues/20, there are functions in the C API that do not have a way to report error (void return type). Some of them actually set the error indicator in some cases, and the only way to know it to ch...
ee26ca13a129da8cf549409d0a1b2e892ff2b4ec
77d25795862f19c6e3d647b76cfb10d5ce1f149c
python/cpython
python__cpython-105183
# C API: Remove PyEval_AcquireLock() and PyEval_InitThreads() functions Since 3.7, ``PyEval_ThreadsInitialized()`` always returns non-zero and calling ``PyEval_InitThreads()`` is useless: ``Py_Initialize()`` now always creates the GIL. These functions were deprecated in Python 3.9 by PR #18892 (commit b4698ecfdb526e0a...
ec0082ca460f6b5eaf987536d28d6bc252322307
9ab587b7146618866cee52c220aecf7bd5b44b02
python/cpython
python__cpython-105173
# Minor functools.lru_cache in-code documentation issue # Bug report The in-code documentation for the lru_cache function states: > If *typed* is True, arguments of different types will be cached separately. For example, f(3.0) and f(3) will be treated as distinct calls with distinct results. Speci...
f332594dd47947612e1e5d2faf287930552a5110
a99b9d911e0f8cb11b3436bdd8eb649b15d01a50
python/cpython
python__cpython-105177
# Annotated assignment in a `match` block does not generate `SETUP_ANNOTATIONS` # Bug report Compiling the following code: ``` match 0: case 0: x: int = 1 ``` generates ``` 1 0 LOAD_CONST 0 (0) 2 2 LOAD_CONST 0 (0) 4 COM...
69d1245685cf95ddc678633e978a56673da64865
06893403668961fdbd5d9ece18162eb3470fc8dd
python/cpython
python__cpython-105187
# generator throw delivered to incorrect generator under trace <!-- If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not the right place to seek help. Consider the following options instead: - reading the Python tutorial: https://docs.python...
601ae09f0c8eda213b9050892f5ce9b91f0aa522
ee26ca13a129da8cf549409d0a1b2e892ff2b4ec
python/cpython
python__cpython-105157
# C API: Deprecate Py_UNICODE type Python 3.12 removed the last batch of C functions related to the old ``Py_UNICODE`` type. But the type itself is still part of the C API. It is still used in some area of the Python code base where the ``wchar_t`` type should be used instead. I propose to deprecate the ``Py_UNICOD...
8ed705c083e8e5ff37649d998a8b1524ec921519
f332594dd47947612e1e5d2faf287930552a5110
python/cpython
python__cpython-105149
# Make _PyASTOptimizeState internal to ast_opt.c ast_opt.c imports pycore_compile.c inly for ``_PyASTOptimizeState``, which could be defined in ast_opt.c instead. We need to change the signature of ``_PyAST_Optimize`` to take two integers (optimization level and flags) instead of a ``_PyASTOptimizeState`` pointe...
f990bb8b2d8ee900fe4b0775399f6ef4ca61bb3f
dd29ae26f89ba7db596127b6eba83bb3a45c167b
python/cpython
python__cpython-105147
# Update links at end of Windows installer The last page of the Windows installer suggests emailing python-list@python.org. This probably still works, but is better replaced with a link to discuss.python.org these days. Specifically, https://discuss.python.org/c/users/7 is the right category to link to. May as well...
ed86e14b1672f32f0a31d72070e93d361ee0e2b4
f990bb8b2d8ee900fe4b0775399f6ef4ca61bb3f
python/cpython
python__cpython-105154
# C API: Remove legacy API functions to configure Python initialization The following C API functions were deprecated in Python 3.11 by issue #88279: * ``PySys_AddWarnOptionUnicode()`` * ``PySys_AddWarnOption()`` * ``PySys_AddXOption()`` * ``PySys_HasWarnOptions()`` * ``PySys_SetArgvEx()`` * ``PySys_SetArgv()`...
424049cc1117d66dfa86196ee5f694c15b46ac6c
8ed705c083e8e5ff37649d998a8b1524ec921519
python/cpython
python__cpython-105152
# Strange interaction between `typing.Protocol` and unrelated `isinstance()` checks On `main`, an `isinstance()` check against `Sized` works just the same as it does on Python 3.11: ```pycon >>> from typing import Sized >>> isinstance(1, Sized) False ``` However! If you first subclass `Sized` like this, `Typ...
c05c31db8c9dfd708b9857bb57f8e5f3ce40266d
df396b59af9d50892e5e30463300e8458cb84263
python/cpython
python__cpython-105141
# remove unused argument of _PyErr_ChainStackItem The argument of _PyErr_ChainStackItem is unused, undocumented and untested, so it should be removed. <!-- gh-linked-prs --> ### Linked PRs * gh-105141 <!-- /gh-linked-prs -->
60f8117d0c685c2923b7cb17b725b67cd41e8410
ede89af605b1c0442353435ad22195c16274f65d
python/cpython
python__cpython-105112
# Remove deprecated Py_TRASHCAN_SAFE_BEGIN/ Py_TRASHCAN_SAFE_END Py_TRASHCAN_SAFE_BEGIN/ Py_TRASHCAN_SAFE_END were [deprecated in 3.11](https://github.com/python/cpython/pull/27693/), to be replaced by Py_TRASHCAN_BEGIN/Py_TRASHCAN_END which were added in 3.8. The deprecated macros are flawed (can lead to a crash) s...
fbc9d0dbb22549bac2706f61f3ab631239d357b4
0430e97097a8f852aea21669e7f4203d028114f9
python/cpython
python__cpython-105108
# C API: Remove deprecate PyEval_CallObject() function The Python C API has many functions to call a function or a method: https://docs.python.org/dev/c-api/call.html The **PyEval** variants were [deprecated in Python 3.9](https://github.com/python/cpython/issues/73734). I propose to now remove them: * ``PyEval_...
579c41c10224a004c3e89ed9088771325c1c1a98
adccff3b3f9fbdb58cb4b8fde92456e6dd078af0
python/cpython
python__cpython-105106
# TypeError when using ctypes.BigEndianUnion nested in ctypes.BigEndianStructure on a little endian system (or vice versa) # Bug report The classes [ctypes.BigEndianUnion](https://docs.python.org/3/library/ctypes.html#ctypes.BigEndianUnion) and [ctypes.LittleEndianUnion](https://docs.python.org/3/library/ctypes.htm...
0b541f64c472976b2fee1ec9919bc7b02a798242
33b47a2c2853066b549f242065f6c2e12e18b33b
python/cpython
python__cpython-105098
# wave: Deprecate getmark(), setmark() and getmarkers() methods The ``wave`` module has getmark(), setmark() and getmarkers() methods (in Wave_read and Wave_write classes) which only exist for compatibility with the ``aifc`` module which has been removed in Python 3.13 (PR #104933). I propose to remove these methods. ...
03ad6624c2b4a30cccf6d5b7e2b9999e104444ae
58a2e0981642dcddf49daa776ff68a43d3498cee
python/cpython
python__cpython-105092
# stable_abi.py --all fails on Windows The `--all` command [from the devguide](https://devguide.python.org/developer-workflow/c-api/#adding-a-new-definition-to-the-limited-api) fails on Windows. `--all` should only enable `unixy_check` on Unixy platforms. <!-- gh-linked-prs --> ### Linked PRs * gh-105092 * gh-10...
0656d23d82cd5b88e578a26c65dd4a64414c833b
b7aadb4583b040ddc8564896b91f4e5e571c82d6
python/cpython
python__cpython-105404
# minimum_version mismatch # Documentation The documentation states "The SSL context created above will only allow TLSv1.2 and later..." However, the example code sets the minimum version to TLS 1.3 (not 1.2 as stated). I believe [this line](https://github.com/python/cpython/blob/c39500db5254c9efee9937f951f58d87...
e5252c6127ad788b39221982964f935bd1513028
ae8b114c5b9d211f47bf521fcfdbf40ef72a1bac
python/cpython
python__cpython-105228
# test_create_directory_with_write in test_zipfile fails in AIX test_create_directory_with_write in test_zipfile fails in AIX with the below message ====================================================================== FAIL: test_create_directory_with_write (test.test_zipfile.test_core.TestWithDirectory.test_crea...
4dbb198d279a06fed74ea4c38f93d658baf38170
0bf42dae7e73febc76ea96fd58af6b765a12b8a7
python/cpython
python__cpython-105056
# RFE: Allow using setuptools and wheel wheels from a custom directory for tests <!-- If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not the right place to seek help. Consider the following options instead: - reading the Python tutorial: h...
bd98b65e974b7a1e086a51e7b55131582f7a0491
cda1bd3c9d3b2cecdeeba0c498cd2df83fbdb535
python/cpython
python__cpython-105217
# The help function shows incorrect signature for subclass # Bug report With the following class hierarchy: ```py class A0: def __new__(cls, *args, **kw): return super().__new__(cls) def __init__(self, *args, **kw): super().__init__() class A1(A0): def __init__(self, a, b): ...
9ad199ba36791711f596393ca9a20dbf118ef858
70dc2fb9732ba3848ad3ae511a9d3195b1378915
python/cpython
python__cpython-105078
# `test_tkinter` fails on refleak run due to `support` confusion # Bug report When running the refleak test runner (`-R`), `test_tkinter` fails on the second run due to `AttributeError: module 'test.test_tkinter.support' has no attribute 'load_package_tests'`. This is because `test_tkinter` has its own `support` m...
5454db4ace66018179f034fbffcea8d791d66a98
d593074494b39a3d51e67a4e57189c530867a7ff
python/cpython
python__cpython-105072
# Add PyUnstable_Exc_PrepReraiseStar As requested [here](https://github.com/capi-workgroup/problems/issues/40), it would help cython to have the ``_PyExc_PrepReraiseStar`` function exposed in the C API. Since this is an implementation detail (of the ``except*`` construct), it can only be exposed in the unstable API....
b7aadb4583b040ddc8564896b91f4e5e571c82d6
bd98b65e974b7a1e086a51e7b55131582f7a0491
python/cpython
python__cpython-105070
# Consider not consuming all the buffer in one go in the tokenizer module Seems that some tools were relying on the implementation detail that the `readline`-like callable that is provided to functions in the `tokenize` module is called as tokens are emitted and not consumed in one go. Although this was never part of ...
9216e69a87d16d871625721ed5a8aa302511f367
2ea34cfb3a21182b4d16f57dd6c1cfce46362fe2
python/cpython
python__cpython-105060
# Documentation of `timeit.Timer.timeit` should mention that the return value depends on the timer # Documentation At the moment, it is as follows. https://github.com/python/cpython/blob/cb4615fd43e678fe44e9aeb6a486475a05b492e7/Lib/timeit.py#L164-L169 The return value may not always be a float measured in seconds...
7096a2be33619dc02c06a6dc30aac414a9eba462
1ac64237e6ce965064451ed57ae37271aeb9fbd3
python/cpython
python__cpython-105061
# SyntaxError: unmatched ')' with whitespace in lambda? # Bug report Testing on tip of 3.12 which includes the fix for #105013 (thanks!), I get the following difference in behaviour with Python 3.11 vs tip of Python 3.12: ```python import inspect from hypothesis.internal.reflection import extract_lambda_source...
70f315c2d6de87b0514ce16cc00a91a5b60a6098
9216e69a87d16d871625721ed5a8aa302511f367
python/cpython
python__cpython-105094
# 3.12.0b1 includes backwards incompatible change to operation of `super()` # Bug report The optimisation to LOAD_SUPER_ATTR introduced by #104270 appears to have introduced a backwards incompatibility. The following code will reproduce the problem: ``` class MyInstance: def __new__(cls, ptr, name, bases,...
68c75c31536e8c87901934f2d6da81f54f4334f9
49f90ba1eae56708b1894441418c13ad8e8ea9a8
python/cpython
python__cpython-105049
# `datetime` documentation regarding ISO8601 reduced precision and extend representation # Documentation The documentation for [date.fromisoformat()](https://github.com/python/cpython/blob/b9e2d8076981b471952355b86f90064ce3941032/Doc/library/datetime.rst?plain=1#LL527C8-L527C8), and [datetime.fromisoformat()](https...
e9dab656380ec03d628979975646748330b76b9b
6d7ad57385e6c18545f19714b8f520644d305715
python/cpython
python__cpython-105115
# `tp_bases` of `object` is `NULL`: undocumented or unintentional behavior change in 3.12? # Documentation See https://github.com/python/cpython/pull/103912#issuecomment-1559779144 for full context. Specific problem: **It appears `tp_bases` of `object` was an empty tuple in the past, but is now `NULL`, could ...
7be667dfafa2465df6342d72dca9c1f82dd830d0
26e7bbf66e93ee7c94b6e007ec7b2d769c2ced92
python/cpython
python__cpython-105022
# Tokenizer produces different output on Windows on py312 for ends of files # Bug report If you copy and paste the following code into a `repro.py` file and run `python -m tokenize` on it on a Windows machine, the output is different on 3.12/3.13 compared to what it was on 3.11 (the file ends with a single newline)...
86d8f489359b8f6cc15006bdcbd70521ce621fbb
6e62eb2e70a9f2a8099735989a58e8c8cfb4a2f2
python/cpython
python__cpython-105021
# Possible regression in Python3.12 tokenizer # Bug report I have encountered a possible regression while I was testing pyrsistent with python3.12_beta1, see https://github.com/tobgu/pyrsistent/issues/275. Tests fail with following error: ``` /usr/lib/python3.12/site-packages/_pytest/python.py:617: in _importtest...
3a5be878be6f89ee98d0ef9a1274e6a9d9ccbc37
b225c08de889d2bf070e6c981c5f386cf06d961c
python/cpython
python__cpython-107014
# pathlib.PurePath.relative_to(walk_up=True) mishandles '..' components `pathlib.PurePath.relative_to(other, walk_up=True)` doesn't handle '..' segments in its *other* argument correctly: ```python >>> from pathlib import PurePath, Path >>> Path.cwd() PosixPath('/home/barney/projects/cpython') >>> PurePath('a/b...
e7e6e4b035f51ab4a962b45a957254859f264f4f
6d5b6e71c87fca7c5c26f5dd8f325087962215cc
python/cpython
python__cpython-104999
# Optimize joining of pathlib.PurePath() arguments. In Python 3.12, when multiple arguments are given to `PurePath()`, the initialiser calls `os.path.join()` to join them. This is reasonably slow. For Python 3.13 we can make it faster by: 1. Deferring joining of arguments until strictly needed 2. (Maybe) re-implem...
ffeaec7e60c88d585deacb10264ba7a96e5e52df
f5df347fcf5fe029edbe6bf274da0f4880401852
python/cpython
python__cpython-104993
# Remove deprecated unittest.TestProgram.usageExit # Feature or enhancement The `unittest.TestProgram.usageExit` method was deprecated in Python 3.11 and scheduled for removal in 3.13. The method wasn't documented. The deprecation was documented in the [changelog](https://docs.python.org/3/whatsnew/changelog.htm...
b225c08de889d2bf070e6c981c5f386cf06d961c
897e716d03d559a10dd5015ecb501ceb98955f3a
python/cpython
python__cpython-104986
# starargs and kwargs are removed from ClassDef and Call ast nodes # Documentation The docs for the [ClassDef](https://docs.python.org/3/library/ast.html#ast.ClassDef) and [Call](https://docs.python.org/3/library/ast.html#ast.Call) AST nodes list two fields named `starargs` and `kwargs` which were removed in this [...
61c1d6760facbc172a58512cad46148f587b4da1
3fdb55c48291a459fb1e33edb5140ec0383222df
python/cpython
python__cpython-104985
# buildbots fail because of test_peg_generator `test_peg_generator` fails because of some of the changes in #104798 (newlines removed from `TokenInfo`) paired with a behavior change (regarding those same newlines in `TokenInfo`) in #104975. <!-- gh-linked-prs --> ### Linked PRs * gh-104985 <!-- /gh-linked-prs -->
95f1b1fef777254a45559c0348e80185df3634ff
61c1d6760facbc172a58512cad46148f587b4da1
python/cpython
python__cpython-104980
# Consider emitting buffered DEDENT tokens on the last line In Python 3.12, porting the tokenizer to use the C tokenizer underneath to support PEP 701 has now a documented change in [docs.python.org/3.12/whatsnew/3.12.html#changes-in-the-python-api](https://docs.python.org/3.12/whatsnew/3.12.html#changes-in-the-python...
46b52e6e2bda51d0b89a64ee36ce2d305a7409f3
402ee5a68b306b489b782478ab96e8e3b913587a
python/cpython
python__cpython-104975
# The lines in tokens from `tokenize.generate_tokens` incorrectly indicate multiple lines. The line attribute in tokens returned by `tokenize.generate_tokens` incorrectly indicate multiple lines. The tokens should have an invariant that using the `.start` and `.end` attributes to index into the `.line` attribute will ...
3fdb55c48291a459fb1e33edb5140ec0383222df
2cb445635e99d4401949cabebd373288cfdd0138
python/cpython
python__cpython-104956
# Signature for `__release_buffer__` is incorrect Currently the signature for PEP-688's `__release_buffer__` method is as follows: ``` >>> bytearray.__release_buffer__.__text_signature__ '($self, /)' ``` This is incorrect; the method takes a single argument that according to the PEP should be called `buffer`....
6e1eccdcce5ea3bf1ef9d326d20ef9df21262c6b
6c81d7572edbe3a5800b1128e55a2dcef03cc13c
python/cpython
python__cpython-104948
# pathlib.PureWindowsPath comparison results vary between Windows and Posix In #31691 I switched `pathlib.PureWindowsPath` comparisons to use `os.path.normcase()` rather than `str.lower()`. This is probably a mistake, as @eryksun [points out](https://github.com/python/cpython/issues/104484#issuecomment-1560419031): ...
ad0be361c9922a918c7c3eaf83e1d8f2b019279c
060277d96bf4ba86df8e4d65831a8cbdfeb51fc5
python/cpython
python__cpython-104945
# Remove mentions of old Python versions in `typing.NamedTuple` docstring # Documentation This came up in this [PR](https://github.com/python/cpython/pull/104891#discussion_r1205942031) In `typing.NamedTuple` there are some mentions to Python 3.5 & 3.6 which can be removed: https://github.com/python/cpython/blo...
46857d0b2a2ac6aeb6dcce2bf2c92ddf4abe7496
2cf04e455d8f087bd08cd1d43751007b5e41b3c5
python/cpython
python__cpython-104939
# Runtime-checkable protocols are broken on py312 (the sequel) # Bug report On 3.8-3.11, all subclasses of `typing.Generic` were guaranteed to have an `_is_protocol` class attribute, which is used as an internal marker: https://github.com/python/cpython/blob/76873ca6b1ad1a1eb9518f0ff7fc594ec96d0a65/Lib/typing.py...
2b7027d0b2ee2e102a24a0da27d01b8221f9351c
77d7ec5aa978db05cfb6f83e7624ca195065ce11
python/cpython
python__cpython-104926
# "sendIng a read()able" as error message in /Lib/http/client.py # Bug report In /Lib/http/client.py line [1027](https://github.com/python/cpython/blob/278030a17d6889731d91a55e9f70cbec0b07dee8/Lib/http/client.py#L1027) and [1057](https://github.com/python/cpython/blob/278030a17d6889731d91a55e9f70cbec0b07dee8/Lib/ht...
6c81d7572edbe3a5800b1128e55a2dcef03cc13c
7fc542c88dc8a09d71006a6240943407b83229d0
python/cpython
python__cpython-104910
# Split opcodes into micro-ops See https://github.com/faster-cpython/ideas/issues/592. This project can be parallelized, and I could use help! Note that initially we don't have a tier-2 interpreter or instruction format defined yet, but the first stage of splitting doesn't require that. ### Remaining non-viable ...
df396b59af9d50892e5e30463300e8458cb84263
fbc9d0dbb22549bac2706f61f3ab631239d357b4
python/cpython
python__cpython-104899
# os.PathLike is missing __slots__ [Per](https://github.com/python/cpython/pull/104810#discussion_r1204475255) @AlexWaygood: > All the ABCs in `collections.abc` deliberately define `__slots__` for this very reason: so that other classes can subclass those ABCs and still be able to use the `__slots__` machinery to b...
bd1b6228d132b8e9836fe352cd8dca2b6c1bd98c
fea8632ec69d160a11b8ec506900c14989952bc1
python/cpython
python__cpython-104887
# Remove deprecated configparser.LegacyInterpolation class # Feature or enhancement The `configparser.LegacyInterpolation` class is undocumented, was deprecated in the docstring since Python 3.2, deprecated with a warning since Python 3.11, and scheduled for removal in 3.13. # Previous discussion <!-- New ...
3f9c60f51ef820937e7e0f95f45e63fa0ae21e6c
0242e9a57aa87ed0b5cac526f65631c654a39054
python/cpython
python__cpython-105026
# socket.getblocking() documentation lists opposite equivalence # Documentation The [documentation](https://docs.python.org/3/library/socket.html#socket.socket.getblocking) for `socket.getblocking()` states: > This is equivalent to checking socket.gettimeout() == 0. But that's the opposite of what it means. A...
5a5ed7a3e616a372f054a1dd2e9a31ba32a87a67
9a90c9ace2ed878715107bf4ae39e5967d7c931f
python/cpython
python__cpython-104881
# TypeAliasType.__module__ can segfault ``` >>> ns = {} >>> exec("type A = int", ns, ns) >>> ns["A"].__module__ zsh: segmentation fault ./python.exe ``` I will propose a fix. <!-- gh-linked-prs --> ### Linked PRs * gh-104881 * gh-104890 <!-- /gh-linked-prs -->
fe77a99fc8b549a8bf9ccbc5485fe5ea9bcf47b9
1497607a8e99f1103c40368dd5f9057f0146a520
python/cpython
python__cpython-104877
# Remove deprecated turtle.RawTurtle.settiltangle method # Feature or enhancement The `turtle.RawTurtle.settiltangle` method was deprecated in docs since Python 3.1 and with a warning since 3.11, and scheduled for removal in 3.13. # Previous discussion * https://github.com/python/cpython/pull/29618 <!-- ...
10c45838e1de47ef57708c71e3d9c2ddb78d493d
705e387dd81b971cb1ee5727da54adfb565f61d0
python/cpython
python__cpython-104875
# Document `NewType.__supertype__` `typing.NewType` has always had an attribute `__supertype__` pointing to its supertype. It is widely used in the wild (e.g. https://github.com/pydantic/pydantic/blob/00158878cb1c6218cd58ee62248db56c65e4172c/pydantic/_internal/_typing_extra.py#L153, https://github.com/quora/pyanalyze/...
41768a2bd3a8f57e6ce4e4ae9cab083b69817ec1
dbcdbf1814b3df4c4e08e525b03384376598217d
python/cpython
python__cpython-104878
# Add `typing.get_protocol_members` and `typing.is_protocol` #103160 added an attribute `__protocol_attrs__` that holds the names of all protocol attributes: ``` >>> from typing import Protocol >>> class X(Protocol): ... a: int ... def b(self) -> str: pass ... >>> X.__protocol_attrs__ {'b', 'a'} ``...
fc8037d84c5f886849a05ec993dd0f79a356d372
ba516e70c6d156dc59dede35b6fc3db0151780a5
python/cpython
python__cpython-104870
# inspect.getsourcelines() is buggy on 3.12 ``` % cat gsl.py import inspect def test_list_add(self): def capybara() -> None: assert_is_value( [x] + [y], z, ) assert_is_value( # in the binop implementation a, ) print(in...
c90a862cdcf55dc1753c6466e5fa4a467a13ae24
9d457e115447b2079a1f66950d3c76cb77febf38
python/cpython
python__cpython-124340
# allow_abbrev=False does not work for single-dash long options # Bug report The following codes get different results between python3.6.9 and python3.8.10 ```Python import argparse if __name__ == "__main__": parser = argparse.ArgumentParser( allow_abbrev=False ) parser.add_argume...
49e105f9488de18d3d92948232fcbd956cbe0c6e
d08c7888229e78533648191dfe42e2d2d3ecea25
python/cpython
python__cpython-105047
# Certain Tkinter tests fail on Tk 8.7 due to TIP 577 One of the broader effects of [TIP 577](https://core.tcl-lang.org/tips/doc/trunk/tip/577.md) on Tk 8.7 (and to a greater degree under Tcl 9.0 than Tcl 8.7) is that it makes widget commands/options/etc. more consistent about using empty string as the reserved “none”...
fba73698240660d9154b6917b87dd333d6fb8284
deb39b5fef12741d99619f6d25f1af287de883d0
python/cpython
python__cpython-105005
# test_venv spams our AddressSanitizer CI with 5mb of test logs `test_venv` is spamming our AddressSanitizer CI runs with 5mb (50000 lines) of LeakSanitizer reports. Likely because it does not allow the `ASAN_OPTIONS` environment variable setting through to child Python processes it spawns. if the test isn't useful...
a17f160376955d369c8d332e1b1a90a6e18c852a
46b52e6e2bda51d0b89a64ee36ce2d305a7409f3
python/cpython
python__cpython-104838
# CI blocked: threading causing random tests to alter the execution environment and fail Presumably caused by https://github.com/python/cpython/pull/104754? <!-- gh-linked-prs --> ### Linked PRs * gh-104838 <!-- /gh-linked-prs -->
4b56e56c495de58425ae3db5f4d8183127ee990b
7f963bfc79a515dc9822ebddbfb1b5927d2dda09
python/cpython
python__cpython-104836
# Remove unittest's deprecated getTestCaseNames, makeSuite, findTestCases # Feature or enhancement Prior to Python 3.11, `unittest`'s `getTestCaseNames`, `makeSuite` and `findTestCases` were commented: > these functions should be considered obsolete They were deprecated with warnings in 3.11 and scheduled for...
b1cb30ec8639e4e65f62e8f6cd44e979640431c8
ded5f1f287674ad404ddd042745433388dc073a5
python/cpython
python__cpython-104846
# Token lines in the tokenize module always end in new line As a consequence of the changes in the Python tokenizer post PEP701, now the `line` attribute always ends in a new line character. We should remove this as it adds no information and wasn't there before. <!-- gh-linked-prs --> ### Linked PRs * gh-104846 * gh...
c8cf9b42eb2bfbd4c3e708ec28d32430248a1d7a
c45701e9ef004a523ebb28f3be902b3cf2cf7a9b
python/cpython
python__cpython-104892
# Strange import errors with Python 3.12 on Windows I tried to test our project with Python 3.12 beta 1 on Windows but everything failed. After some debugging I noticed that module imports seem to fail when modules aren't on my C-drive: ``` C:\Users\peke>echo print(1) > test312.py C:\Users\peke>py -3.12 -c "imp...
6031727a37c6003f78e3b0c7414a0a214855dd08
087c1a6539eac330372a8b759bf3e2d472f6148a
python/cpython
python__cpython-104813
# Subinterpreter Pending Calls Never Run A while back we moved the pending calls to `PyInterpreterState`. Then in 2020 we made it so pending calls would only run in the main thread of the main interpreter. Doing so renders the per-interpreter pending calls state pointless and prevents us from making use of pending ...
757b402ea1c2c6b925a55a08fd844b065b6e082f
4e80082723b768df124f77d2b73b3ba6b584a735
python/cpython
python__cpython-104816
# Remove deprecated webbrowser.MacOSX class # Feature or enhancement The `webbrowser.MacOSX` class was deprecated in Python 3.11 and scheduled for removal in 3.13. Let's remove it. PR to follow. # Previous discussion <!-- New features to Python should first be discussed elsewhere before creating issues ...
5ab4bc05c459f25c9d1dcb9b20f10bbd7e6eae5e
afa759fb800be416f69e3e9c9b3efe68006316f5
python/cpython
python__cpython-104805
# Allow detecting Dev Drive on Windows Windows just announced a new [Dev Drive](https://learn.microsoft.com/en-us/windows/dev-drive/) feature, optimised for high I/O scenarios such as build and test. It also works as a very clear signal that the user is a developer and is doing developer-like tasks. We should add a...
bfd20d257e4ad16a25f4bac0ea4dbb719cdf6bc7
e92ac0a741b125f1cffe8c07b054d1dea7b0a05a
python/cpython
python__cpython-104828
# PEP-695: Potentially breaking changes made to `__match_args__` attributes of AST nodes Consider the following script: ```py import ast def test(node): match node: case ast.FunctionDef("foo", ast.arguments(args=[ast.arg("bar")])): print('matched! :)') case _: pr...
ba73473f4c18ba4cf7ab18d84d94a47d2d37a0c5
6e1eccdcce5ea3bf1ef9d326d20ef9df21262c6b
python/cpython
python__cpython-104827
# Cannot use multiple inheritance with `collections.abc.Buffer` and `typing.Protocol` Various stdlib classes are treated as protocols by type checkers, but are actually ABCs at runtime (for performance reasons). Examples include `contextlib.AbstractContextManager` and `collections.abc.Iterable`. These classes are spec...
c0ab7d401c736c37bf4462eef7c7d69fef8fab93
4b56e56c495de58425ae3db5f4d8183127ee990b