|
|
|
|
|
by b33j0r
333 days ago
|
|
I have a question. Why do you prefix your package files with an underscore? In fact, you write all of your python like you really have something to hide ;) Like `_Todo`. Where did you get this pattern? (I’m way more curious than accusatory. Are people embracing private modules these days as a convention, and I just missed it?) |
|
I honestly love when I see a package do stuff like this: it's very clear then what is public interface, and I should consider usable (without sin) and what is supposed to be an internal detail.
Same with the modules: then it is very clear that the re-export of those names in __init__.py is where they're meant to be consumed, and the other modules are just for organizational purposes, not API purposes.
_Todo is then a private type.
Very clean.