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

Documenting methods starting with "_" character #77

Closed
gvvka0327 opened this issue Nov 12, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@gvvka0327
Copy link

commented Nov 12, 2015

I have a class with few methods starting with "_", all those methods were skipped by pdoc in documenting them, like example,

def _get_msg():
"""
Returns commit message
"""

def _get_password(username):
"""
return password
"""

Consistently all the methods like these in all the modules were skipped... all the getting methods are skipped...
Anything I am missing or is it a bug in pdoc tool ?

@mjwillson

This comment has been minimized.

Copy link

commented Jan 20, 2016

I'm guessing that's intentional, since a _ prefix in python conventionally signifies that something is private / not part of the public API. Hence doesn't make sense to expose in documentation.

@BurntSushi

This comment has been minimized.

Copy link
Contributor

commented Jan 20, 2016

@mjwillson Is correct. pdoc is a tool used to discover public API documentation of a module.

@BurntSushi BurntSushi closed this Jan 20, 2016

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.