ACIL FM
Dark
Refresh
Current DIR:
/opt/alt/python313/lib64/python3.13/test/crashers
/
opt
alt
python313
lib64
python3.13
test
crashers
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
__pycache__
-
chmod
Open
Rename
Delete
bogus_code_obj.py
628 B
chmod
View
DL
Edit
Rename
Delete
gc_inspection.py
1.07 MB
chmod
View
DL
Edit
Rename
Delete
infinite_loop_re.py
653 B
chmod
View
DL
Edit
Rename
Delete
mutation_inside_cyclegc.py
753 B
chmod
View
DL
Edit
Rename
Delete
README
830 B
chmod
View
DL
Edit
Rename
Delete
recursive_call.py
372 B
chmod
View
DL
Edit
Rename
Delete
trace_at_recursion_limit.py
376 B
chmod
View
DL
Edit
Rename
Delete
underlying_dict.py
282 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/alt/python313/lib64/python3.13/test/crashers/mutation_inside_cyclegc.py
# The cycle GC collector can be executed when any GC-tracked object is # allocated, e.g. during a call to PyList_New(), PyDict_New(), ... # Moreover, it can invoke arbitrary Python code via a weakref callback. # This means that there are many places in the source where an arbitrary # mutation could unexpectedly occur. # The example below shows list_slice() not expecting the call to # PyList_New to mutate the input list. (Of course there are many # more examples like this one.) import weakref class A(object): pass def callback(x): del lst[:] keepalive = [] for i in range(100): lst = [str(i)] a = A() a.cycle = a keepalive.append(weakref.ref(a, callback)) del a while lst: keepalive.append(lst[:])
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply