cpython
cpython copied to clipboard
The Python programming language
Not sure if you want it to be backported to 3.12 and 3.13, since the corresponding PR (https://github.com/python/cpython/pull/26488) for `tarfile` was not backported. * Issue: gh-122356
This PR updates the docs concerning `ctypes._CFuncPtr` (which is exposed) and `_FuncPtr` (which is a dynamic subclass of `_CFuncPtr` created by CDLL objects). Credits to @eryksun (https://github.com/python/cpython/issues/120313#issuecomment-2158049008) * Issue: gh-120313
python's main documentation page https://docs.python.org/3.14/ links to [Global module index](https://docs.python.org/3.14/py-modindex.html) that index has two modules referring to PEPs which are not rendered correctly:   when collecting the (little) trampolines needed to compile a given trace. This doesn't break anything right now, since we...
* Issue: gh-125864
# Bug report ### Bug description: When parsing back a written email, whitespace seems to be prepended to the header if the header was wrapped upon writing. This is particularly...
# Bug report ### Bug description: Separate from https://github.com/python/cpython/pull/125691#discussion_r1807910964 https://github.com/user-attachments/assets/5b99fd79-c25c-4ffb-97f3-5a09e8574339 ### CPython versions tested on: CPython main branch ### Operating systems tested on: _No response_
# Bug report ### Bug description: To be clear - this issue is just about running the Cython itself (i.e. pure Python code). It is not about compiled extension modules....
# Feature or enhancement ### Proposal: `functools.reduce` takes `function` (generally a callable) and `iterable`, with an optional `initial` parameter: https://docs.python.org/3/library/functools.html#functools.reduce However, `initial` cannot be passed as a keyword argument, which...
Add a `Path.dir_entry` attribute. In any path object generated by `Path.iterdir()`, it stores an `os.DirEntry` object corresponding to the path; in other cases it is `None`. This can be used...