[issue23990] Callable builtin doesn't respect descriptors
Ethan Furman
report at bugs.python.org
Sun Apr 19 21:01:45 CEST 2015
Ethan Furman added the comment:
The "right thing", using a meta-class, is to have the meta-class check if the proxied object is callable, and if so, put in the __call__ function in the class that is being created.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23990>
_______________________________________
More information about the Python-bugs-list
mailing list