Michael Hoffman schrieb:
__call__, like __getitem__, and __getattr__ is called on the
class object, not the instance object. So, no, not as far as I
am aware, without using metaclass trickery. The simplest option
IMO is to use another level of indirection as you suggest.

Thanks for the quick answer. I didn't know they were class-level methods. Too bad. Guess I'll stick with indirection then.


Stefan
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to