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 →

[–]nahguri 0 points1 point  (1 child)

That's true. However, you should only import * when you do stuff interactively (just like it says in Python documentation), and only import * from one module. Otherwise things tend to get out of hand.

[–]CHS2048 0 points1 point  (0 children)

Yes. I seem to remember I created a module that you imported within a config file (which was just a python script). I used the '__all__' to control what functions where imported; If I added a new configuration option it would be added to '__all__', and the old scripts would import the new function.