You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pydoc doesnt show 'from module import identifier' in the docs #47215
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:
assignee=Noneclosed_at=<Date2009-03-29.12:57:24.732>created_at=<Date2008-05-25.10:21:40.711>labels= ['extension-modules']
title="pydoc doesnt show 'from module import identifier' in the docs"updated_at=<Date2009-03-29.12:57:24.731>user='https://bugs.python.org/peterpuk'
When you try to make a doc from your programm woth pydoc, it doesnt show
the the identifiers in the modules section. when i put 'from module
import identifier' in my code
I think he means that if you use "from m import x" to import part of
module interface, "x" is not shown in the generated doc.
bgolemon commented on May 26, 2008
bgolemonmannequin
Mannequin
More actions
I feel like that's the correct behavior, since x should be documented in
m. In a module you can override this by doing '__all__ = ['x']', but I'm
not sure there's a way in a script.
Activity
peterpuk commentedon May 25, 2008
When you try to make a doc from your programm woth pydoc, it doesnt show
the the identifiers in the modules section. when i put 'from module
import identifier' in my code
birkenfeld commentedon May 25, 2008
Can you expand a bit? What exactly do you expect in the generated
documentation that is not there?
benjaminp commentedon May 25, 2008
I think he means that if you use "from m import x" to import part of
module interface, "x" is not shown in the generated doc.
bgolemon commentedon May 26, 2008
I feel like that's the correct behavior, since x should be documented in
m. In a module you can override this by doing '__all__ = ['x']', but I'm
not sure there's a way in a script.
birkenfeld commentedon Mar 29, 2009
I agree.