New submission from Géry <gery.o...@gmail.com>: The description of `super()` uses the word "method" instead of the more general word "attribute".
> super([type[, object-or-type]]) > Return a proxy object that delegates method calls to a parent or sibling > class of *type*. This is useful for accessing inherited methods that have > been overridden in a class. `super()` is not restricted to method access but can also do data attribute access: ``` >>> class A: ... x = True ... >>> class B(A): ... x = False ... >>> B().x False >>> super(B, B()).x True ``` I have just opened a PR to address this issue. ---------- assignee: docs@python components: Documentation messages: 352991 nosy: docs@python, maggyero, rhettinger priority: normal pull_requests: 15908 severity: normal status: open title: Replace "method" with "attribute" in the description of super() type: enhancement versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38255> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com