I just run into a problem with the hamster's codebase where a module is loaded with one function and not the other. It's not my code, so I don't know many details, but I'd really like to learn how can such situation arise.
There is a module called hamster which includes i18n.py which has two functions: setup_i18n and C_. There is no __all__ defined in __init__. After loading the module C_ is visible, but the setup function isn't.
Here's the link for i18n file and the repo in general: http://git.gnome.org/browse/hamster-applet/tree/src/hamster/i18n.py?id=94b8ba72dad5b3e711d5f6b6a7018d83d770ce14
The session is only this (after setting the correct sys.path to include the packages)
> from hamster import i18n
> dir(i18n)
['C_', '__builtins__', '__doc__', '__file__', '__name__', 'gettext']
setup_i18nin the output ofdir(i18n), since it's defined in the file - and I want to know could cause it to not be there.dir()breaks anything or leads to any problems. The question is incomplete. You expected a name which is not there. So? What's broken? What error are you getting? What's the problem? Inexperienced Python programmers who find this question need to know why this is important and what problem you have and how the answer will solve it.