[issue40471] Grammar typo in issubclass docstring
alexpovel
report at bugs.python.org
Fri May 1 14:28:34 EDT 2020
New submission from alexpovel <python at alexpovel.de>:
Running `python -c "help(issubclass)"` will output:
> Help on built-in function issubclass in module builtins:
>
> issubclass(cls, class_or_tuple, /)
> Return whether 'cls' is a derived from another class or is the same class.
>
> A tuple, as in ``issubclass(x, (A, B, ...))``, may be given as the target to
> check against. This is equivalent to ``issubclass(x, A) or issubclass(x, B)
> or ...`` etc.
where it should probably read:
> Return whether 'cls' is derived from another class or is the same class.
over the current:
> Return whether 'cls' is a derived from another class or is the same class.
There are two occurrences of this string, one in `./Python/bltinmodule.c`, the other in `./Python/clinic/bltinmodule.c.h`.
I have to admit I cannot safely say which of these is the generated file through Argument Clinic and which is the source.
Is `./Python/bltinmodule.c` the source, aka where this would need to be changed?
Please let me know and I will create a PR.
Thanks!
----------
assignee: docs at python
components: Documentation
messages: 367871
nosy: alexpovel, docs at python
priority: normal
severity: normal
status: open
title: Grammar typo in issubclass docstring
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40471>
_______________________________________
More information about the Python-bugs-list
mailing list