{ } Raw JSON

bundles / numpy 2.4.4 / numpy / testing / _private / utils / break_cycles

function

numpy.testing._private.utils:break_cycles

source: /numpy/testing/_private/utils.py :2654

Signature

def   break_cycles ( )

Summary

Break reference cycles by calling gc.collect Objects can call other objects' methods (for instance, another object's __del__) inside their own __del__. On PyPy, the interpreter only runs between calls to gc.collect, so multiple calls are needed to completely release all cycles.

Aliases

  • numpy.testing.break_cycles