Author flox
Recipients brett.cannon, eric.snow, flox, ncoghlan
Date 2013-05-20.01:01:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369011708.43.0.213176616662.issue18018@psf.upfronthosting.co.za>
In-reply-to
Content
When executing a submodule, there's a SystemError in 3.3 where we used to receive a ValueError.

mkdir marsu
touch marsu/__init__.py
echo "from .houba import bi" >> marsu/pilami.py

./python marsu/pilami.py

Traceback (most recent call last):
  File "marsu/pilami.py", line 2, in <module>
    from .houba import bi
SystemError: Parent module '' not loaded, cannot perform relative import


In Python 3.2 (or Python 2.7):

./python3.2 marsu/pilami.py

Traceback (most recent call last):
  File "marsu/pilami.py", line 2, in <module>
    from .houba import bi
ValueError: Attempted relative import in non-package
History
Date User Action Args
2013-05-20 01:01:48floxsetrecipients: + flox, brett.cannon, ncoghlan, eric.snow
2013-05-20 01:01:48floxsetmessageid: <1369011708.43.0.213176616662.issue18018@psf.upfronthosting.co.za>
2013-05-20 01:01:48floxlinkissue18018 messages
2013-05-20 01:01:47floxcreate