Amaury Forgeot d'Arc added the comment: Simple script to reproduce the issue:
import sys, time class C(object): def __float__(self): return "" for x in range(10000): try: time.sleep(C()) except TypeError: pass if x % 1000 == 0: print(sys.getrefcount("")) ---------- nosy: +amaury.forgeotdarc _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23590> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com