[New-bugs-announce] [issue38255] Replace "method" with "attribute" in the description of super()

Géry report at bugs.python.org
Mon Sep 23 03:04:42 EDT 2019


New submission from Géry <gery.ogam at 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 at python
components: Documentation
messages: 352991
nosy: docs at 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 <report at bugs.python.org>
<https://bugs.python.org/issue38255>
_______________________________________


More information about the New-bugs-announce mailing list