Message284587
Hello.
I've found a really strange difference between Python 3.5 and 3.6 related to namespace packages and I cannot find any note in changelogs.
I've created a simple bash script which can reproduce my issue using virtual environments: http://pastebin.com/j3fXMtR4
This script creates a virtual environment, installs marrow.util from PyPI which is one part of namespace package and creates the other part (marrow.mailer) in the local folder. Then script tries to import marrow.util and marrow.mailer - and there is the difference.
In Python 3.5 - I can import marrow.util (installed via pip) but I cannot import local marrow.mailer module. I think that this is right behavior.
In Python 3.6 - I cannot import marrow.util (installed via pip) but I can import local marrow.mailer module.
Python versions are 3.5.2 (installed from Fedora repositories) and 3.6.0 (compiled manually).
Why there is such a big difference? Am I missing something?
I tried to ask on IRC, stackoverflow etc. but without success. Could you please explain the reason for this behavior to me?
Thank you and have a nice day.
Lumír
Bash script attached |
|
Date |
User |
Action |
Args |
2017-01-03 18:27:01 | frenzy | set | recipients:
+ frenzy |
2017-01-03 18:27:01 | frenzy | set | messageid: <1483468021.78.0.379899829208.issue29144@psf.upfronthosting.co.za> |
2017-01-03 18:27:01 | frenzy | link | issue29144 messages |
2017-01-03 18:27:01 | frenzy | create | |
|