mirror of
https://github.com/python/cpython.git
synced 2026-01-22 07:08:40 +00:00
The function `operator.methodcaller` was not thread-safe since the additional of the vectorcall method in gh-89013. In the free threading build the issue is easy to trigger, for the normal build harder. This makes the `methodcaller` safe by: * Replacing the lazy initialization with initialization in the constructor. * Using a stack allocated space for the vectorcall arguments and falling back to `tp_call` for calls with more than 8 arguments. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_code.py | ||
| test_dict.py | ||
| test_gc.py | ||
| test_list.py | ||
| test_methodcaller.py | ||
| test_monitoring.py | ||
| test_races.py | ||
| test_slots.py | ||
| test_str.py | ||
| test_tokenize.py | ||
| test_type.py | ||
| test_zip.py | ||