Message249431
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. |
|
Date |
User |
Action |
Args |
2015-08-31 21:56:32 | SegundoBob | set | recipients:
+ SegundoBob, r.david.murray, martin.panter |
2015-08-31 21:56:32 | SegundoBob | set | messageid: <1441058192.72.0.32482704223.issue24949@psf.upfronthosting.co.za> |
2015-08-31 21:56:32 | SegundoBob | link | issue24949 messages |
2015-08-31 21:56:32 | SegundoBob | create | |
|