[New-bugs-announce] [issue43427] Possible error on the descriptor howto guide

Marcos M report at bugs.python.org
Sun Mar 7 10:42:35 EST 2021


New submission from Marcos M <marcosmodenesi at gmail.com>:

> To recap, functions have a __get__() method so that they can be converted to a method when accessed as attributes. The non-data descriptor transforms an obj.f(*args) call into f(obj, *args). Calling cls.f(*args) becomes f(*args).

I THINK it should say

cls.f(*args) becomes f(cls, *args)

as stated in the table that follows that paragraph.

----------
assignee: docs at python
components: Documentation
messages: 388239
nosy: docs at python, marcosmodenesi
priority: normal
severity: normal
status: open
title: Possible error on the descriptor howto guide
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43427>
_______________________________________


More information about the New-bugs-announce mailing list