grumpyhome / grumpy

Grumpy is a Python to Go source code transcompiler and runtime.
Apache License 2.0
420 stars 18 forks source link

Fixes #109: Imports raising AttributeError instead of ImportError #110

Closed alanjds closed 5 years ago

alanjds commented 5 years ago

Fixes #109.

Importing from time import wrongmember raises ImportError as CPython, not AttributeError. Importing import wrongmodule raises ImportError on runtime as CPython, not grumpy_tools.compiler.util.ImportError on compile time