cpython
cpython copied to clipboard
The Python programming language
gh-93678: added _testinternalcapi.optimize_cfg() and test utils for compiler optimization unit tests
* Issue: gh-93678
Linked to #93911. For `__getattr__`, we specialize as per normal as long as the specialized bytecode can succeed without raising `AttributeError`. For `__getattribute__`, a specialized instruction is created to inline...
(cherry picked from commit 9d515997f943b7b510268448f372dabcbf957858) Co-authored-by: Kumar Aditya * Issue: gh-95736
PEP 3147 (https://peps.pythondiscord.com/pep-3147/) makes mention of "continue to support source-less distributions" by using legacy pyc file placements when no py file is adjacent. Blurb here: https://peps.pythondiscord.com/pep-3147/#case-4-legacy-pyc-files-and-source-less-imports What is not clear...
* Issue: gh-95813
# Bug report During build RPM for python3.11rc1 I've found tracebacks for tests from test suite `test_multiprocessing_forkserver.py`, `test_multiprocessing_fork.py`, and `test_multiprocessing_spawn.py` : ``` [root@xxx test]# python3.11 test_multiprocessing_forkserver.py ............s..................................................s...............................s.s.s.....s...s...........ss.....s......................................................................................................................................Traceback (most recent call...
## Environment ``` $ python --version Python 3.8.10 $ uname -a Linux 4.4.0-19041-Microsoft #1237-Microsoft Sat Sep 11 14:32:00 PST 2021 x86_64 x86_64 x86_64 GNU/Linux ``` ## Description It seems that...
Using [the Diátaxis language of tutorials](https://diataxis.fr/tutorials/#the-language-of-tutorials) as a guideline. * Issue: gh-95271
In the documentation (specifically, in the ["Coroutines and Tasks" page](https://docs.python.org/3/library/asyncio-task.html)), I am having trouble understanding what happens when `asyncio.create_task` is called. I have read the headings [Coroutines](https://docs.python.org/3/library/asyncio-task.html#coroutines) and [Creating tasks](https://docs.python.org/3/library/asyncio-task.html#creating-tasks),...
Currently `Py_TPFLAGS_MANAGED_DICT` is an internal-only flag, in fact setting in third-party code is likely to lead to a crash. We would like to expose it, and a weakref equivalent `Py_TPFLAGS_MANAGED_WEAKREFS`...