cpython
cpython copied to clipboard
The Python programming language
* Issue: gh-112636
This partially reverts patch from https://bugs.python.org/issue8048 Now it's possible to test interactive examples in applications, which use cusomized sys.displayhook, e.g. SymPy, without nasty workarrounds (i.e. overriding the ``sys.__displayhook__`` value before...
# Bug report ### Bug description: To reproduce: Build and run the following Dockerfile: ``` FROM python:3.10-slim RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && echo "Asia/Shanghai" > /etc/timezone ``` then in...
# Bug report ### Bug description: In the following code snippet, I start an `asyncio.TaskGroup` called `outer_tg` then start another one within it called `inner_tg`. The inner task group is...
An attempt to introduce multi-phase initialization: * Keep using a global state. * Integrate `CDataType_*` functions into `CType_Type_*()`. * Make `module_traverse()` visit almost all global variables to invoke `module_clear()`, leaving...
# Bug report ### Bug description: ```python # Add a code block here, if required ``` i built python 3.10 on macos m2 device with --with-openssl=/path/to/[email protected] --with-openssl-rpath=auto. i can build...
The `temperature` field used in `_PyExitData` (aka `struct _exit_data`) currently is a simple counter. When it reaches 15 we try to optimize the side exit's target; when this optimization fails...
The counters now reuse the adaptive counter machinery, and temperature uses exponential backoff. Some details are changed, see the issue. I still need to do some cleanup, first I want...
The superclass of `typing.Any` is `object` and `object.__new__(...)` doesn't accept additional argument beyond the first argument `cls`. * Issue: gh-117110