Working with decimals

Ian Kelly ian.g.kelly at gmail.com
Sun Aug 24 15:37:17 EDT 2014


On Sun, Aug 24, 2014 at 1:25 PM, Joshua Landau <joshua at landau.ws> wrote:

> On 24 August 2014 20:19, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> > On Sun, Aug 24, 2014 at 1:17 PM, Ian Kelly <ian.g.kelly at gmail.com>
> wrote:
> >>
> >> On Sun, Aug 24, 2014 at 1:12 PM, Joshua Landau <joshua at landau.ws>
> wrote:
> >> > Is math not already imported by start-up?
> >>
> >> Why would it be?
> >
> > It's easy to check, by the way:
> >
> > $ python -c "import sys; print(sys.modules['math'])"
>
> I don't mean into the global namespace, but imported by other modules
> (like the builtins) and thus cached, making instantiation trivial.
>

sys.modules is the module cache. If it's not in there, then it hasn't been
imported at all.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140824/c57ab243/attachment.html>


More information about the Python-list mailing list