Skip to content
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

Why does the list of ancestors include the class itself? #12

Closed
ishirav opened this issue Jul 15, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@ishirav
Copy link

commented Jul 15, 2014

See for example http://pdoc.burntsushi.net/pdoc#pdoc.Function
The list of ancestors include Function (so Function is an ancestor of itself?)

@BurntSushi

This comment has been minimized.

Copy link
Contributor

commented Jul 15, 2014

@ishirav No particular reason other than that is the display chosen for pydoc. That may not be a good reason.

Perhaps the labeling should dispel with the word "ancestor" and only use "method resolution order"? (Then I think listing the class itself there would make a little more sense.)

@ishirav

This comment has been minimized.

Copy link
Author

commented Jul 15, 2014

OK, I guess I can customize the template to omit the first classname if I prefer.

@ishirav ishirav closed this Jul 15, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.