cpython icon indicating copy to clipboard operation
cpython copied to clipboard

The Python programming language

Results 1387 cpython issues
Sort by recently updated
recently updated
newest added

### What happened? A custom raw stream can override `flush` to detach the wrapper when `TextIOWrapper.truncate` forces a flush; the truncate logic then calls `self->buffer.truncate` on the now NULL buffer...

extension-modules
topic-IO
type-crash

- Refactor _REPLACE_WITH_TRUE to leave input on TOS, TO_BOOL_ALWAYS_TRUE to use explicit POP_TOP - Refactor optimized _REPLACE_WITH_TRUE op to ensure correct stack effects - Add unit tests * Issue: gh-134584

awaiting review
skip news

Speed up conversion from `bytes-like` objects like `bytearray` while keeping conversion from `bytes` stable. On a `--with-lto --enable-optimizaitons` build on my 64 bit Linux box: new: ``` from_bytes_flags: Mean +-...

awaiting merge

This explain what happens when for negative start or stop arguments of big magnitude. Also reference sequence term in the :mod:`array` docs. * Issue: gh-143420 ---- 📚 Documentation preview 📚:...

docs
awaiting review
skip news
needs backport to 3.13
needs backport to 3.14

# Bug report ### Bug description: The behavior of venv was changed in 48d926269963. Before this change, libpath was hard-coded as `python%d.%d`. It has now been replaced with `sysconfig.get_path(..., scheme='venv')`....

type-bug
tests
topic-venv

BPO | [34543](https://bugs.python.org/issue34543) --- | :--- Nosy | @ronaldoussoren, @stevendaprano, @ZackerySpytz, @dekrain, @iritkatriel PRs | python/cpython#14777 *Note: these values reflect the state of the issue at the time it was...

extension-modules
type-crash

Gains according to pyperformance: ``` deepcopy: Mean +- std dev: 411 us +- 2 us -> 396 us +- 3 us: 1.04x faster Significant (t=28.94) deepcopy_reduce: Mean +- std dev:...

awaiting review

# Bug report ### Bug description: In the context of [EasyBuild](https://easybuild.io/), I'm trying to build Python 3.14.2 for a new toolchain based on GCC 15.2.0 (see this PR https://github.com/easybuilders/easybuild-easyconfigs/pull/25006). Building...

type-bug
tests
OS-linux

# Documentation The code is derived from https://github.com/conda-forge/python-feedstock as indicated in https://github.com/python/cpython/blob/92243dc62ce10715ab0d9074b23dea5a1bfa9dcc/Tools/pixi-packages/default/recipe.yaml#L19 including the comments. I'm requesting that the BSD-3-Clause license be included along with the copyright line https://github.com/conda-forge/python-feedstock/blob/main/recipe/LICENSE.txt#L2. cc...

docs

# Feature or enhancement ### Proposal: There is a generator expression that is created for `copy.deepcopy` and immediately fully consumed with all the values needed simultaneously, so the generator provides...

type-feature
performance
stdlib