cpython
cpython copied to clipboard
The Python programming language
# Bug report ### Bug description: I can't trigger the classic "partially initialized module" ImportError anymore. Circular imports are a different issue and not related to shadowing one of `sys.stdlib_module_names`...
I am translating doc recently. I've noticed that there are duplicate words in every corner of cpython. This PR fixes all duplicate words I've found in the current main branch....
# Bug report ### Bug description: This code behaves very differently on Python 3.13 than 3.12: ```python (p for p in pathlib.Path('does-not-exist').iterdir()) ``` ```shell 🐚 py -3.12 -c "import pathlib;...
# Feature or enhancement ### Proposal: It seems like there is a lot of layers of overhead involved in `asyncio.to_thread`: extracting a `concurrent.futures.Future` via submission to the ThreadPoolExecutor, creating a...
BPO | [46575](https://bugs.python.org/issue46575) --- | :--- *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more...
Allows users optionally to pass a custom log formatter to assertLogs such that assertions match expected custom formats where they are used. Existing behavior should be unaffected. * Issue: gh-134567
BPO | [41530](https://bugs.python.org/issue41530) --- | :--- Nosy | @vstinner, @pganssle, @bijij PRs | python/cpython#21839 *Note: these values reflect the state of the issue at the time it was migrated and...
BPO | [45347](https://bugs.python.org/issue45347) --- | :--- Nosy | @rhettinger, @dvarrazzo, @asqui, @ewjoachim *Note: these values reflect the state of the issue at the time it was migrated and might not...
* Issue: gh-135607
# Feature or enhancement ### Proposal: The `%z` directive supports the UTC offset in the form ±HHMM[SS[.ffffff]]. Other parsing functions like `fromisoformat` on the other hand support the full format...