[Python-Dev] Adding types.build_class for 3.3
Steven D'Aprano
steve at pearwood.info
Wed May 9 11:05:01 CEST 2012
On Wed, May 09, 2012 at 08:57:55AM +0100, Mark Shannon wrote:
> As a consequence of this, making build_class either a class method or a
> static method will cause a direct call to type.build_class() to fail as
> neither class method nor static method are callable.
This might be a good reason to make them callable, especially
staticmethod. I understand that at the language summit, this was
considered a good idea:
http://python.6.n6.nabble.com/Callable-non-descriptor-class-attributes-td1884829.html
It certainly seems long overdue: confusion due to staticmethods
not being callable go back a long time:
http://stackoverflow.com/questions/3932948/
http://grokbase.com/t/python/python-list/11bhhtv95y/staticmethod-makes-my-brain-hurt
http://mail.python.org/pipermail/python-list/2004-August/272593.html
--
Steven
More information about the Python-Dev
mailing list