[New-bugs-announce] [issue45519] Minor docstring improvement in __contains__
Ivan Savov
report at bugs.python.org
Mon Oct 18 18:49:58 EDT 2021
New submission from Ivan Savov <ivan.savov at gmail.com>:
Currently,
```
>>> help(list.__contains__)
```
returns
```
Help on wrapper_descriptor:
__contains__(self, key, /)
Return key in self.
```
Which is a conceptual circular reference,
since `in` is implemented by `__contains__`.
Changing the help string to
"Return True if key in self."
would fix this.
----------
assignee: docs at python
components: Documentation
messages: 404236
nosy: Ivan.Savov, docs at python
priority: normal
severity: normal
status: open
title: Minor docstring improvement in __contains__
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45519>
_______________________________________
More information about the New-bugs-announce
mailing list