cpython
cpython copied to clipboard
The Python programming language
The loop consuming optional and positional arguments in ArgumentParser._parse_known_args() rescans option_string_indices on every iteration of the loop in order to compute the next option index: ```py next_option_string_index = min([ index...
Implemented the patchfile from BPO 28309 Fixes #72496 As also noted in the issue thread, I noticed no performance improvements on my machine so someone else may want to verify...
Check to see if `base_executable` exists. If it does not, attempt to use known alternative names of the python binary to find an executable in the path specified by `home`....
# Bug report Python `venv` on POSIX environments creates a bin directory with: - `python` - `python{VERSION_MAJOR}` - `python(VERSION_MAJOR}.{VERSION_MINOR}` When executing `python` out of a venv made with the `--copies`...
# Feature or enhancement Remove the bundled setuptools so that `ensurepip` and `python -m venv` only installs pip. # Context The `setup.py install` command of `setuptools` is deprecated. However, in...
# Bug report In python 3.10+, shutil.make_archive() makes empty archive file and does not raise any error even when root_dir does not exists. In python -3.9, FileNotFoundError is raised with...
Measured performance impact [might be positive](https://gist.github.com/markshannon/181ac95ce5b543ba5cafd43677829266) but is too close to noise to be meaningful. * Issue: gh-98522
Last changed in 2008 (528576031d9655ca8004260a2bf2c783f77d1da1). I also changed "growing collection" to "constantly growing collection" since it makes more sense to me with the much larger number.
The simple method cache in typeobject.c uses the `tp_version_tag` field and the `Py_TPFLAGS_VALID_VERSION_TAG` bit in the `tp_flags` field to track changes on the type that might invalidate the cache. Unfortunately...
JIT compilers may need to invalidate compiled code when a function is modified (e.g. if its code object is modified). This adds the ability to set a callback that, when...