http://stackoverflow.com/questions/44834/can-someone-explain-all-in-python


On Wed, May 21, 2014 at 11:09 AM, dmitryikh <notifications@github.com>wrote:

> In lib/matplotlib/ticker.py:
>
> > +            if _r2[0] > 1:
> > +                return minus + r'$%d\frac{%d}{%d}\pi$'%(_r2[0],_r2[1],_r.denominator)
> > +            else:
> > +                return minus + r'$\frac{%d}{%d}\pi$'%(_r.numerator,_r.denominator)
> > +        else:
> > +            if _r.numerator == 0:
> > +                return '0'
> > +            if _r.denominator == 1 and _r.numerator == 1:
> > +                return minus + 'pi'
> > +            if _r.denominator == 1:
> > +                return minus + '%dpi'%_r.numerator
> > +            return minus + '%d/%dpi'%(_r.numerator,_r.denominator)
> > +
> > +
> > +
> > +
> >  __all__ = ('TickHelper', 'Formatter', 'FixedFormatter',
>
> Ok, no problem. But.. for what purpose *all* is here?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/matplotlib/matplotlib/pull/3071/files#r12901117>
> .
>