cpython
cpython copied to clipboard
The Python programming language
# Bug report ### Bug description: ProcessPoolExecutor workers do not handle KeyboardInterrupt properly and leads to messy cleanup that either takes FOREVER or requires you to interrupt/break the join procedure....
# Crash report ### What happened? When running on a virtual machine where WMI calls seems to have very variable performance the WMI C module can cause Python to crash....
This proposal is a workaround to fix absence of 'sem_getvalue' C function in the Semaphore MacOSX implementation. Alls unit tests succeed except on `test.test_concurrent_futures.test_init` relative to the Resource Tracker manager....
# Documentation In the documentation for fnmatch. https://docs.python.org/3/library/fnmatch.html It says that "Both parameters are case-normalized using os.path.normcase()". This implies that the strings are always case normalized but if you dive...
Documents the public `clear_memo` which is currently undocumented. I think it makes to have it in the docs given that it is need when reusing `Pickler` objects. The documentation is...
# Crash report ### What happened? There is a segmentation fault with simple code snippet: ```python g = (x for x in range(10)) g.gi_frame.f_locals['.0'] = range(20) list(g) print("No segfault") ```...
* Issue: gh-125498 * Issue: gh-123714
Fixed it such that %z is now read as optional and can be an empty string. * Issue: gh-122781
I made the minute (`MM`) part optional for time zone. ## New behavior: ```python >>> from datetime import datetime >>> datetime.strptime("2023-05-25T15:35:05.666+11", "%Y-%m-%dT%H:%M:%S.%f%z") datetime.datetime(2023, 5, 25, 15, 35, 5, 666000, tzinfo=datetime.timezone(datetime.timedelta(seconds=39600)))...