cpython
cpython copied to clipboard
The Python programming language
# Bug report A clear and concise description of what the bug is. Include a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible. Repo: ``` class MyConfig(dict): def __getattr__(self, x): return self[x]...
Consider this as a fix proposal :) Thanks a lot to @MojoVampire for the idea. * Issue: gh-99184
Argument Clinic `str_converter` generate such code when `encoding` is set (see function `test_str_converter_encoding` in file Lib/test/clinic.test): ```c /* -- snip -- */ if (!_PyArg_ParseStack(args, nargs, "esesetes#et#:test_str_converter_encoding", "idna", &a, "idna", &b,...
A draft implementation of Argument Clinic functional test. The test do: - Add a module with AC-declared functions, each function corresponds to one type of function signatures - Setup a...
This could be backported to Python 3.11 * Issue: gh-96461
# Documentation The current documentation says that CACHE and SWAP acts on the *i*th element of the stack but it is nowhere mentioned if the stack is indexed from 0...
https://github.com/python/cpython/issues/99087
It looks like Unitest.mock.MagicMock raises a StopIteration when repeated calls to the mock are made and an iterable is exhausted. After Python 3.7+, due to PEP 479, this raises a...
when i run `chroot compile /home/abuild/rpmbuild/BUILD/Python-3.9.9/build/debug/python -m test.regrtest test_mailbox -wW` output: ```python Traceback (most recent call last): File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/runpy.py", line...
I will check other `patch.*` types for similar problems in the next issues / PRs. Issue: gh-98086