New submission from Egor <pixel.e...@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@python components: Documentation messages: 391638 nosy: docs@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 <rep...@bugs.python.org> <https://bugs.python.org/issue43917> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com