Message11439

Author zyasoft
Recipients jenselme, stefan.richthofer, zyasoft
Date 2017-06-14.04:47:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497415629.09.0.9462046025.issue2598@psf.upfronthosting.co.za>
In-reply-to
Content
So there is a slight difference, but I'm not able to see what Julien reports. In CPython 2.7.13, as well as CPython 3.6.1, we get:

>>> import ast; x = ast.parse("from . import toto")
>>> type(x.body[0].module)
<type 'NoneType'>
>>> x.body[0].level
1

whereas in Jython tip/2.7.1:

>>> import ast; x = ast.parse("from . import toto")
>>> type(x.body[0].module)
<type 'str'>
>>> x.body[0].module
''
>>> x.body[0].level
1

Note this is not '.' for the module/package name in either case.

I'm not certain why alias is mentioned, since there's no aliasing here via the use of the `as` keyword.
History
Date User Action Args
2017-06-14 04:47:09zyasoftsetmessageid: <1497415629.09.0.9462046025.issue2598@psf.upfronthosting.co.za>
2017-06-14 04:47:09zyasoftsetrecipients: + zyasoft, stefan.richthofer, jenselme
2017-06-14 04:47:09zyasoftlinkissue2598 messages
2017-06-14 04:47:08zyasoftcreate