why doesn't this work?
>>> class a: ... @staticmethod ... def __getattr__(attr): ... return "I am a dork" ... >>> f = a() >>> f.hi Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'staticmethod' object is not callable _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
