[BangPypers] Favorite tips/techniques
L Radhakrishna Rao
satishsagar83 at gmail.com
Fri Sep 13 06:21:01 CEST 2013
Not so complex, but the technique which I love is the comprehension, it
decreases the code size.
On Fri, Sep 13, 2013 at 8:25 AM, Noufal Ibrahim <noufal at nibrahim.net.in>wrote:
> Saager Mhatre <saager.mhatre at gmail.com> writes:
>
> > 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?
>
> Yes. I think that's more accurate. Mea culpa.
>
> [...]
>
>
> --
> Cordially,
> Noufal
> http://nibrahim.net.in
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>
More information about the BangPypers
mailing list