mirror of
https://github.com/python/cpython.git
synced 2026-06-28 03:41:13 +00:00
gh-151218: Replace sys.flags in PyConfig_Set() (GH-151402)
PyConfig_Set() and sys.set_int_max_str_digits() now replace
sys.flags (create a new object), instead of modifying sys.flags in-place.
Modifying sys.flags in-place can lead to data races when multiple
threads are reading or writing sys.flags in parallel.
Use _Py_atomic functions to get and set max_str_digits members.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_bisect.py | ||
| test_bz2.py | ||
| test_capi.py | ||
| test_code.py | ||
| test_collections.py | ||
| test_cprofile.py | ||
| test_csv.py | ||
| test_dbm_gnu.py | ||
| test_dict.py | ||
| test_dict_watcher.py | ||
| test_enumerate.py | ||
| test_frame.py | ||
| test_func_annotations.py | ||
| test_functools.py | ||
| test_gc.py | ||
| test_generators.py | ||
| test_grp.py | ||
| test_heapq.py | ||
| test_io.py | ||
| test_iteration.py | ||
| test_itertools.py | ||
| test_itertools_combinatoric.py | ||
| test_json.py | ||
| test_list.py | ||
| test_lzma.py | ||
| test_methodcaller.py | ||
| test_mmap.py | ||
| test_monitoring.py | ||
| test_pickle.py | ||
| test_pwd.py | ||
| test_races.py | ||
| test_re.py | ||
| test_resource.py | ||
| test_reversed.py | ||
| test_set.py | ||
| test_slots.py | ||
| test_str.py | ||
| test_suggestions.py | ||
| test_sys.py | ||
| test_syslog.py | ||
| test_tokenize.py | ||
| test_type.py | ||
| test_uuid.py | ||
| test_zip.py | ||
| test_zlib.py | ||