On Sun, Aug 24, 2014 at 1:25 PM, Joshua Landau <[email protected]> wrote:
> On 24 August 2014 20:19, Ian Kelly <[email protected]> wrote: > > On Sun, Aug 24, 2014 at 1:17 PM, Ian Kelly <[email protected]> > wrote: > >> > >> On Sun, Aug 24, 2014 at 1:12 PM, Joshua Landau <[email protected]> > 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.
-- https://mail.python.org/mailman/listinfo/python-list
