cpython
cpython copied to clipboard
The Python programming language
* Issue: gh-117084
On Windows a directory is ending in \\ and not /. This is the smallest fix i could think of. Not sure if there are edge cases with files containing...
# Bug report ### Bug description: ```python import os from pathlib import Path from zipfile import ZipFile def unzip(target_file, destination=Path("/tmp/")): os.path.altsep = "\\" with ZipFile(target_file, "r") as zipf: zipf.extractall(path=destination) ```...
On my system, `test_glob_named_pipe` has been failing since it was added in #116421: ``` ====================================================================== FAIL: test_glob_named_pipe (test.test_glob.GlobTests.test_glob_named_pipe) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/encukou/dev/cpython/Lib/test/test_glob.py", line 354, in test_glob_named_pipe...
This fixes the pystats build after #116206. * Issue: gh-117122
Implement a new peephole optimization for the tier2 optimizer that removes _CHECK_STACK_SPACE if we see that this check is already present
* Added a condition to take wraps into consideration when autospeccing objects * Added test cases to test wraps of a class, a class instance and a function type *...
# Bug report ### Bug description: It is a necessary invariant of version numbers that an equal version number means that the objects are equivalent. That is, all operations on...
# Bug report ### Bug description: Since #116206 was merged, pystats builds are broken: ``` gcc -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden...
* Issue: gh-116608 ---- 📚 Documentation preview 📚: https://cpython-previews--116609.org.readthedocs.build/