Message11439
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. |
|
Date |
User |
Action |
Args |
2017-06-14 04:47:09 | zyasoft | set | messageid: <1497415629.09.0.9462046025.issue2598@psf.upfronthosting.co.za> |
2017-06-14 04:47:09 | zyasoft | set | recipients:
+ zyasoft, stefan.richthofer, jenselme |
2017-06-14 04:47:09 | zyasoft | link | issue2598 messages |
2017-06-14 04:47:08 | zyasoft | create | |
|