MCPcopy Index your code
hub / github.com/python/cpython / Circular

Class Circular

Lib/test/test_queue.py:1055–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053 # can be called any time the GC may run.
1054
1055 class Circular(object):
1056 def __init__(self):
1057 self.circular = self
1058
1059 def __del__(self):
1060 q.put(next(gen))
1061
1062 while True:
1063 o = Circular()

Callers 1

test_reentrancyMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_reentrancyMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…