PyDocs

Nav

Python Language Services

ImportFrom

ast

class
  • ImportFrom(module, names, level)
ImportFrom(identifier? module, alias* names, int? level, int? is_lazy)
1 Example
>>> print(ast.dump(ast.parse('from y import x,y,z'), indent=4))
Module(
    body=[
        ImportFrom(
            module='y',
            names=[
                alias(name='x'),
                alias(name='y'),
                alias(name='z')],
            level=0,
            is_lazy=0)])
from the Python docs
See Also
No see-alsos for ast/ImportFrom
0 Notes
No notes for ImportFrom