Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no wildcard support #152

Open
alanjds opened this issue Aug 18, 2018 · 2 comments
Open

no wildcard support #152

alanjds opened this issue Aug 18, 2018 · 2 comments

Comments

@alanjds
Copy link
Owner

alanjds commented Aug 18, 2018

raceback (most recent call last):
File "tools/grumpc", line 118, in
sys.exit(main(parser.parse_args()))
File "tools/grumpc", line 76, in main
visitor.visit(mod)
File "/home/avdhesh/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/algorithm.py", line 41, in visit
return self._visit_one(obj)
File "/home/avdhesh/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/algorithm.py", line 32, in _visit_one
return getattr(self, visit_attr)(node)
File "/home/avdhesh/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/stmt.py", line 320, in visit_Module
self._visit_each(node.body)
File "/home/avdhesh/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/stmt.py", line 734, in _visit_each
self.visit(node)
File "/home/avdhesh/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/algorithm.py", line 41, in visit
return self._visit_one(obj)
File "/home/avdhesh/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/algorithm.py", line 32, in _visit_one
return getattr(self, visit_attr)(node)
File "/home/avdhesh/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/stmt.py", line 296, in visit_ImportFrom
for imp in self.block.root.importer.visit(node):
File "/home/avdhesh/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/algorithm.py", line 41, in visit
return self._visit_one(obj)
File "/home/avdhesh/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/algorithm.py", line 32, in _visit_one
return getattr(self, visit_attr)(node)
File "/home/avdhesh/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/imputil.py", line 102, in visit_ImportFrom
raise util.ImportError(node, msg)
grumpy.compiler.util.ImportError: line 1: wildcard member import is not implemented: from ExtractMsg import *

@alanjds
Copy link
Owner Author

alanjds commented Aug 18, 2018

Comment by aisk
Wednesday Jun 28, 2017 at 09:55 GMT


Yes this is a known issue if you take a look at the error message, or the wiki: https://github.com/google/grumpy/wiki/Missing-features#language-features

@alanjds
Copy link
Owner Author

alanjds commented Aug 18, 2018

Comment by trotterdylan
Thursday Jun 29, 2017 at 03:44 GMT


There was some work done around this in google#263

The PR is a bit stale, but it's a good starting point for implementing wildcard imports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant