cpython
cpython copied to clipboard
The Python programming language
# Bug report ### Bug description: To reproduce, copy paste this into the Python REPL: ```python from dataclasses import dataclass @dataclass class Point: x: float y: float ``` You'll see:...
* Issue: gh-117765 ---- 📚 Documentation preview 📚: https://cpython-previews--121755.org.readthedocs.build/
# Bug report When using `logging.captureWarnings(True)`, the information about object allocation that you *should get* with `-X tracemalloc` gets lost. It appears to be a discrepancy between Python and C...
# Documentation The docs for [`patch.dict`](https://docs.python.org/3/library/unittest.mock.html#unittest.mock.patch.dict) method is: `Patch a dictionary, or dictionary like object, and restore the dictionary to its original state after the test.` The phrase "to its...
# Bug report ### Bug description: IPython and ptpython use ALT+Enter to submit multiline input, regardless of the position of the cursor, but the new REPL does not. Looks like...
# Feature or enhancement ### Proposal: At a recent meeting of OpenSSF's Memory Safety SIG, I became aware of the [C/C++ hardening guide](https://github.com/ossf/wg-best-practices-os-developers/blob/main/docs/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C%2B%2B.md) they are putting together. At a high-level,...
#112301: This is the first version of compiler warning check tooling integrated into the Ubuntu build ant test GitHub action job. The tool parses compiler output and checks against an...
# Bug report ### Bug description: *I'm not sure if this is a bug, feature request, or user error. I'm happy to re-file once I know which* If a parsed...
# Bug report ### Bug description: Reproducer: Remove all suppressions from https://github.com/python/cpython/blob/main/Tools/tsan/suppressions_free_threading.txt Build and Run with TSAN https://github.com/python/cpython/issues/117657 We get races like ``` SUMMARY: ThreadSanitizer: data race /home/ken/Documents/GitHub/cpython/Python/pystate.c:1665:32 in PyThreadState_Clear...