[docs] [issue37203] Correct classmethod emulation in Descriptor HowTo Guide
Géry
report at bugs.python.org
Sat Jun 8 17:07:33 EDT 2019
Géry <gery.ogam at gmail.com> added the comment:
@Raymond Hettinger
> Though less accurate, the current version communicates better
I agree that types.MethodType is more accurate but may be less understandable. But in this case I think that the Function class for emulating instance methods should not use types.MethodType either, but a custom newfunc function as well. And **kwargs parameters should be added to both newfunc functions.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37203>
_______________________________________
More information about the docs
mailing list