It seems to be to be a compatibility issue. If a module has an __all__, then from module import * may behave differently in Python 2.1 than it did in Python 2.0. The only problem of this sort I have encountered is with pickle, but I seldom use import *. The problem ends up being obscure to debug because you get a NameError. Then you hunt around in the middle and see that the name is never bound. Then you see that there is an import * -- and hopefully only one! Then you think, "Didn't Python grow __all__ enforcement in 2.1?" And you start hunting around for that name in the import module and check to see if it's in __all__. Jeremy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4