Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 935745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:12:20+00:00 2026-05-15T21:12:20+00:00

I have a module containing multiple global functions, and a global variable. The variable

  • 0

I have a module containing multiple global functions, and a global variable. The variable and some of the functions follow the ‘private’ naming convention for Python, with a leading underscore for the name. The other functions are intended to be public, and do not have a leading underscore.

I have declared __all__, with a list of my public function names, at the beginning of my file.

When trying to generate documentation for this module using epydoc, epydoc is considering everything in the module as private. And, since I’m using the --no-private flag, this means that the output only shows the documentation on the module itself, not the elements of the module or their individual documentation.

If I don’t use the --no-private flag with epydoc, everything gets documented. But I don’t want the private things there. Here’s the kicker: If I comment out my __all__, epydoc correctly documents only the public elements of my module.

I’m a relative Python newbie, but as I understand it, __all__ is meant to keep you out of trouble when you import other modules and then other modules import yours, and for trying to keep a tighter lid on things when everything is technically public, so long as you know the name of what you’re trying to access. Omitting __all__ can lead to Bad Things™, or so I’m told. At the same time, epydoc claims right and left that it honors __all__ for deciding what is public and what isn’t.

Is it that I’m using epydoc wrong, assuming incorrectly about the usage of __all__ in my code, or a bug in epydoc? (I’ve already resolved one error handling bug in epydoc which is apparently caused by newer versions of docutils.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:12:21+00:00Added an answer on May 15, 2026 at 9:12 pm

    This problem disappears when using epydoc to document more than one file. It seems to be a bug in epydoc, but it’s easily worked around, so long as you have an actual package to document, rather than a single module.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some python modules containing mostly functions and a few classes. Each one
So, I'm confused. I have a module containing some function that I use in
I have a PHP application containing multiple modules and various settings within each module.
Let's say you have a Fortran 90 module containing lots of variables, functions and
I have a module where a global environment (defining certain constraints such as neighbor
I have a module (tools.py) containing many classes. I'd like to extract these out
The question is pretty simple actually. I have a module in my system containing
In the directory containing a custom module, I have a directory containing images. How
I have a header file containing a lot of small inline functions. Most of
I have a question regarding variable linking between objects. Because I'm learning Python programming

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.