On 31 maj 2013, at 01:47, Łukasz Langa <luk...@langa.pl> wrote: > class State: > def __init__(self): > self.add.register(int, self.add_int)
Ouch, I realized this is wrong just after I hit "Send". self.add is a staticmethod so this registration will overload on every instance. Which is obviously bad. Lesson learned: don't post code at 2 AM. -- Best regards, Łukasz Langa WWW: http://lukasz.langa.pl/ Twitter: @llanga IRC: ambv on #python-dev
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com