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 frenzy
Recipients frenzy
Date 2017-01-03.18:27:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483468021.78.0.379899829208.issue29144@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2017-01-03 18:27:01frenzysetrecipients: + frenzy
2017-01-03 18:27:01frenzysetmessageid: <1483468021.78.0.379899829208.issue29144@psf.upfronthosting.co.za>
2017-01-03 18:27:01frenzylinkissue29144 messages
2017-01-03 18:27:01frenzycreate