Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70388 > unrolled thread
| Started by | Egon Frerich <egon@frerich.eu> |
|---|---|
| First post | 2014-04-19 16:49 +0200 |
| Last post | 2014-04-19 16:49 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: module and namespace Egon Frerich <egon@frerich.eu> - 2014-04-19 16:49 +0200
| From | Egon Frerich <egon@frerich.eu> |
|---|---|
| Date | 2014-04-19 16:49 +0200 |
| Subject | Re: module and namespace |
| Message-ID | <mailman.9362.1397919015.18130.python-list@python.org> |
[Multipart message — attachments visible in raw view] — view raw
Am 18.04.2014 13:48, schrieb Peter Otten: > Egon Frerich wrote: > > > Basically Python 3 allows for packages to omit the __init__.py > > $ mkdir aaa > $ python3 -c'import aaa; print(aaa)' > <module 'aaa' (namespace)> > $ touch aaa/__init__.py > $ python3 -c'import aaa; print(aaa)' > <module 'aaa' from './aaa/__init__.py'> > > Namespace packages have advantages when you want to merge submodules from > multiple places into one package. See > <http://legacy.python.org/dev/peps/pep-0420/> for the details. > > Your actual problem is probably that the parent directory for the mptt > package is not in your sys.path, The init-file in the parent directory was copied and had got the wrong ownership. Thanks Peter Egon
Back to top | Article view | comp.lang.python
csiph-web