cpython
cpython copied to clipboard
The Python programming language
# Bug report I found a bug that seems to be code corruption. While working on an example project with ~70 threads, I occasionally (once every hour or so) get...
---- 📚 Documentation preview 📚: https://cpython-previews--121379.org.readthedocs.build/
Add PyLong_Export() and PyLong_Import() functions and PyLong_LAYOUT structure. * Issue: gh-102471 ---- 📚 Documentation preview 📚: https://cpython-previews--121339.org.readthedocs.build/
# Documentation The `dis` module docs for `BUILD_LIST` (and `BUILD_SET` and `BUILD_TUPLE`) say that the `count` argument must be > 0: https://github.com/python/cpython/blob/17d5b9df10f53ae3c09c8b22f27d25d9e83b4b7e/Doc/library/dis.rst?plain=1#L1081-L1098 But the code `[]` generates the instruction `BUILD_LIST...
# Bug report ### Bug description: ```python3 def f(x): def g(): print([x for x in range(10)]) def h(): print(x) return h print(x) return g f(1)()() ``` The above had always...
# Bug report ### Bug description: If you return two generators (one from a generator function and one a generator expression) from a function and use `getsource` on each, you...
BPO | [14905](https://bugs.python.org/issue14905) --- | :--- Nosy | @warsaw, @gpshead, @pjeby, @ronaldoussoren, @ncoghlan, @ericvsmith, @ericsnowcurrently, @serhiy-storchaka, @phmc Files | [zipimport-issue14905.patch](https://bugs.python.org/file26302/zipimport-issue14905.patch "Uploaded as text/plain at 2012-07-07.14:47:49 by jerub")[zipimport-issue14905-2.patch](https://bugs.python.org/file26894/zipimport-issue14905-2.patch "Uploaded as text/plain...
# Bug report ### Bug description: When on the filesystem packages like discord.py (``pip install discord.py``) works just fine (``from discord.ext.commands import Bot``). However, when you use the same code...
This patch is based on https://github.com/python/cpython/issues/119004#issuecomment-2108272841 but some bits needed to be added here and there. * Issue: gh-119004 ---- 📚 Documentation preview 📚: https://cpython-previews--121329.org.readthedocs.build/