Skip to content

Does a leading "_" in a module name mean "internal"? #1429

Answered by baraline
wayneadams asked this question in Q&A
Discussion options

You must be logged in to vote

I think the idea behind this design is that you should import/use things exposed from init files, which themselves will import functions from the modules with underscores.
This allons to define whats part of the "public" API, which can be subject to deprecation etc..
Importing straight from _***.py module is not very practical/pythonic either.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wayneadams
Comment options

Answer selected by wayneadams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants