This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author SegundoBob
Recipients SegundoBob, martin.panter, r.david.murray
Date 2015-08-31.21:56:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441058192.72.0.32482704223.issue24949@psf.upfronthosting.co.za>
In-reply-to
Content
msg<249269>

Thank you David Murray.

I should have asked myself, what is reasonable behavior?  In the case of email.mime.nonmultipart an explicit import is clearly needed.

I was misled by my experience with the os library.  As a "package" it is very different from the email library.  Importing os also makes available all of what appear at the script syntax level to be all its "sub-packages."

2015-08-28 09:57:26 /home/bob06
$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print(os.path.split)
<function split at 0x7fac18704320>

In the future I will try to remember that the effects of importing a "package" depend on how the "package" is packaged.

So far as I'm concerned this issue is closed.

I doubt that symptom "flakey Python behavior" is serious enough to interest Canonical.
History
Date User Action Args
2015-08-31 21:56:32SegundoBobsetrecipients: + SegundoBob, r.david.murray, martin.panter
2015-08-31 21:56:32SegundoBobsetmessageid: <1441058192.72.0.32482704223.issue24949@psf.upfronthosting.co.za>
2015-08-31 21:56:32SegundoBoblinkissue24949 messages
2015-08-31 21:56:32SegundoBobcreate