MCPcopy Create free account
hub / github.com/apache/arrow / raising_iter

Function raising_iter

python/pyarrow/tests/test_convert_builtin.py:139–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 value = 10**20
138
139 def raising_iter():
140 for _ in range(5):
141 yield value
142 raise ValueError("boom")
143
144 gc.collect()
145 original_refcount = sys.getrefcount(value)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected