◐ Shell
clean mode source ↗

gh-144475: Fix a heap buffer overflow in partial_repr by brijkapadia · Pull Request #144571 · python/cpython

@brijkapadia

picnixz

picnixz

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>

dr-carlos

… Segment (pythonGH-145216)

Remove the tp_clear slots and make Segment members read-only.

Also add tests for reference loops involving GraphemeBreakIterator
and Segment.
…ions (pythonGH-144824)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
…thon#145304)

Co-authored-by: Adam (indoor47) <adamai@agentmail.to>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Remove PyThread_type_lock (now uses PyMutex internally).

Add new benchmark options:
- work_inside/work_outside: control work inside and outside the critical section to vary contention levels
- num_locks: use multiple independent locks with threads assigned round-robin
- total_iters: fixed iteration count per thread instead of time-based, useful for measuring fairness
- num_acquisitions: lock acquisitions per loop iteration
- random_locks: acquire random lock each iteration

Also return elapsed time from benchmark_locks() and switch lockbench.py to use argparse.
…h item (python#145282)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>

---------

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>