cpython
cpython copied to clipboard
The Python programming language
We don't currently run `test_profiling` in the TSan CI, but the context is that I'm trying to get the entire test suite running under thread sanitizer (TSan). Some of the...
This PR updates the `PyBuffer_FromContiguous` function by renaming the `fort` parameter to `order` for clarity. The function's declaration in the header already uses `order`; this change updates all references in...
The assertion doesn't necessarily hold for `threading.Lock`, so allow the lock to be unlocked if `_PY_LOCK_PYTHONLOCK` is set on the flags. * Issue: gh-143424
This modifies `_should_auto_indent()` to scan characters from the start of the buffer up to the target position `pos`, tracking context to ignore irrelavant content within strings, then checks if the...
* Issue: gh-116738
# Bug report ### Bug description: During a PGO build on Windows on main (471aa75), a test in `test_functools` fails with a stack overflow. [Full log of build](https://gist.github.com/mdboom/86ba07fc8435f60f41f29c2d83c9f487) ``` PCbuild\build.bat...
* Issue: gh-142863