Inheriting from 'object' introduces cycled reference.

Kerim Borchaev warkid at storm.ru
Tue Jan 15 05:08:51 EST 2002


Hello ,

This script shows it:

###############################
import gc
gc.set_debug(gc.DEBUG_SAVEALL)

class Test(object):pass
del Test

gc.collect()
print gc.garbage
###############################

Is it intended behavior?

Best regards,
 Kerim                          mailto:warkid at storm.ru






More information about the Python-list mailing list