[New-bugs-announce] [issue43917] An error in classmethod example in the documentation of descriptor
Egor
report at bugs.python.org
Thu Apr 22 18:46:38 EDT 2021
New submission from Egor <pixel.egor at gmail.com>:
In this section https://docs.python.org/3/howto/descriptor.html#class-methods in the example of python implementation of ClassMethod inside __get__ method I think that we should check hasattr(self.f, "__get__") instead of hasattr(obj, "__get__").
----------
assignee: docs at python
components: Documentation
messages: 391638
nosy: docs at python, rhettinger, titanolodon
priority: normal
severity: normal
status: open
title: An error in classmethod example in the documentation of descriptor
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43917>
_______________________________________
More information about the New-bugs-announce
mailing list