How to bound a method to a instance ?

Josiah Carlson jcarlson at nospam.uci.edu
Wed Feb 11 21:27:33 CET 2004


> def shrink_totos():
>   totos = []
>   for t in weakref.totos:
>     if t(): totos.append(t)
>   weakref.totos=[]
                   ^^ should be totos

  - Josiah



More information about the Python-list mailing list