New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issubclass doc improvement #60641
Comments
http://docs.python.org/3/library/functions.html#issubclass "classinfo may be a tuple of class objects." I suggest make it clear like isinstance, use something like this: classinfo may be a tuple of class objects and such tuples. |
While this is documented for isinstance, I'm not sure it should be advertised too much, as it seems to me an implementation detail and doesn't seem too useful in practice. This is a side-effect of the fact that While this behavior seems intentional 0, it doesn't seem to be tested 1. FTR this is supported by PyPy too. |
Whether the recursive nature of the check should be documented or not, it seems inconsistent that it's documented for isinstance but not for issubclass. |
@ken - not quite. This issue is about isinstance containing "(or recursively, other such tuples)" which is not there for issubclass. |
This was made consistent by #92087 - if the recursive wording shouldn't be there for both funcs, then I think a new issue could be opened to discuss that instead of here. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: