module and namespace

Egon Frerich egon at frerich.eu
Wed Apr 16 06:38:26 EDT 2014


If I use the interpreter I get:

Python 3.3.5 (default, Apr 12 2014, 23:34:20)
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mptt
>>> print(mptt)
<module 'mptt' from './mptt/__init__.py'>
>>>

But if I import mptt in my program the print-statement gives

<module 'mptt' (namespace)>

What is the meaning? When does this happened?

Egon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2385 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20140416/9052d8a1/attachment.bin>


More information about the Python-list mailing list