[BangPypers] Favorite tips/techniques

Saager Mhatre saager.mhatre at gmail.com
Thu Sep 12 22:02:11 CEST 2013


On Tue, Sep 10, 2013 at 4:54 PM, Noufal Ibrahim <noufal at nibrahim.net.in>wrote:

> Saju M <sajuptpm at gmail.com> writes:
> [...]
>

> > * Why dir(json) not showing "tool" ??
>
> Because of the __all__ variable in the module.
> http://docs.python.org/2/tutorial/modules.html
>

Noufal,
Well, not quite, right? I posit it's basically because as per python
module-import semantics, sub-modules don't end up as names in the
package-module[*] unless explicitly added, right?

Saju,
I sincerely hope your head didn't just explode! :P

- d
[*] for lack of a better word!


More information about the BangPypers mailing list