In Python 3 the following two classes should be equivalent:
$ cat foo.py
class Foo:
def foo():
pass
print(callable(foo))
class Foo:
@staticmethod
def foo():
pass
print(callable(foo))
But they do not:
$ python3 foo.py
True
False
How come the metaclass does not skip the staticmethod decorator?
--
Marco Buttu
--
https://mail.python.org/mailman/listinfo/python-list
