This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / testing / _private / utils / break_cycles

function

numpy.testing._private.utils:break_cycles

source: build-install/usr/lib/python3.14/site-packages/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