cpython
cpython copied to clipboard
The Python programming language
Add a `Path.rmtree()` method that removes an entire directory tree, like `shutil.rmtree()`. The signature of the optional *on_error* argument matches the `Path.walk()` argument of the same name, but differs from...
# Bug report ### Bug description: reproduction: ```sh #!/bin/sh mkdir -p src rm -fr src/__pycache__ rm -fr __pycache__ echo 'from src.test import f' > main.py echo 'print(f())' >> main.py echo...
# Documentation The documentation for python3.12 says: #This is for class zipimporter() load_module(fullname) Load the module specified by fullname. fullname must be the fully qualified (dotted) module name. Returns the...
# Documentation With named tuples and dataclasses [now implementing `__replace__`](https://github.com/python/cpython/pull/108752), it would be good to have some clearer documentation on this somewhere. Type-checkers will likely have to implement support as...
# Bug report ### Bug description: I need to implement layered context running python code, so I choose `ChainMap`. But Python needs every `globals` passed to `exec` to be a...
# Bug report ### Bug description: I'm seeing this on a Dell laptop running XUbuntu 22.04 and MacBook Pro M1 running MacOS 14.5. In both cases, Python was built on...
# Bug report ### Bug description: There are some slightly incorrect docstrings in `_interpchannels`: - `send` enforces kwargs after `obj`, and has a timeout kwarg. - `send_buffer` enforces kwargs after...
As I already had implementation I though PR might be helpful for others to see and evaluate. From all the different extensions of `functools.partial` I think this one is the...
* Issue: gh-121130
* Issue: gh-121333 ---- 📚 Documentation preview 📚: https://cpython-previews--121335.org.readthedocs.build/