Jeong YunWon
dc8057a1c2
Refactor snippets/testutil
2019-09-17 17:37:24 +09:00
Windel Bouwman
de89349d8d
Fix import syntax to require at least one imported symbol. Fixes #1211 .
2019-08-07 13:00:34 +02:00
Maxim Kurnikov
9ce5240598
add name, path, msg attributes to ImportError
2019-07-03 22:18:49 +03:00
Aviv Palivoda
698044b128
Add Module.__name__
2019-06-10 19:18:32 +03:00
Windel Bouwman
06563a36f6
Support mutual importing modules.
2019-04-17 12:33:09 +02:00
Aviv Palivoda
a3823b4540
Test override __import__
2019-03-11 22:49:55 +02:00
Aviv Palivoda
87e6d8d13d
Add __import__
2019-03-11 22:29:50 +02:00
lausek
f4af599167
added ImportError as builtin
2019-02-05 17:41:05 +01:00
lausek
f8db0f1c94
raise ImportError in import list
2019-02-05 15:42:39 +01:00
Gitea
ac3da8b453
Add 'from x import *' syntax.
...
This is a separate opcode in CPython so I added it as such here.
2018-12-22 22:40:02 -05:00
Daniel Watkins
da34b86a9c
Implement PYTHONPATH
...
This modifies the import logic to use sys.path, and uses PYTHONPATH to
generate the initial contents of sys.path.
2018-08-24 22:55:30 -04:00
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