Files
RustPython/tests/snippets/import_target.py
Daniel Watkins a7428e3808 Implement complex import handling
This expands import parsing and handling to implement a variety of
import cases:

* `import x as y`
* `import x, y`
* `from x import y`
* `from x import y, z`
* `from x import y as z, a as b`

This fixes #51.
2018-08-09 17:14:08 -04:00

11 lines
146 B
Python

# This is used by import.py; the two should be modified in concert
X = '123'
Y = 'abc'
def func():
return X
def other_func():
return Y