| | |
- exercise()
- # =============================================================================
# test for print_cycles
# -----------------------------------------------------------------------------
- print_cycles(objects, outstream=<open file '<stdout>', mode 'w' at 0x2aaaaaaf70b8>, show_progress=False)
- objects: A list of objects to find cycles in. It is often useful
to pass in gc.garbage to find the cycles that are
preventing some objects from being garbage collected.
outstream: The stream for output.
show_progress: If True, print the number of objects reached as they are
found.
|