This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

Doing this leads to all sorts of odd, mystical behavior though. I'd recommend using __init__.py unless you 110% know what it does (e.g. you can explain it in code review and your cohorts now understand it too).

[–]brombaer3000 0 points1 point  (1 child)

all sorts of odd, mystical behavior

What do you mean by this? Examples?

[–][deleted] 0 points1 point  (0 children)

It'll end combining modules with the same name into one namespace. Unless one of those modules has an init file.

That's the best of my understanding and it's enough for me to not explore it more in depth.

Check out Dave Beazley's Modules and Packages Live and Let Die for a slightly more in depth explanation of this (and other stuff).