Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #104235

Re: importing

From Ian Kelly <ian.g.kelly@gmail.com>
Newsgroups comp.lang.python
Subject Re: importing
Date 2016-03-07 10:39 -0700
Message-ID <mailman.36.1457372441.10335.python-list@python.org> (permalink)
References <56DDA44B.7040405@vanderhoff.org> <CAPTjJmpAaefgSA+YKm45A4ucuEgjPgL+XmugS22oFB_1ZccGxQ@mail.gmail.com> <56DDB91D.3020006@vanderhoff.org>

Show all headers | View raw


On Mon, Mar 7, 2016 at 10:23 AM, Tony van der Hoff <tony@vanderhoff.org> wrote:
> However, more generally, how am I supposed to know that a module is part of
> a package, and needs a "magic" stanza to get a module loaded?

If the import path of the module has a dot in it, then it's part of a package.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: importing Ian Kelly <ian.g.kelly@gmail.com> - 2016-03-07 10:39 -0700

csiph-web