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

Access the global variable defined in other modules #3138

Open
goduck777 opened this issue Jul 19, 2018 · 1 comment
Open

Access the global variable defined in other modules #3138

goduck777 opened this issue Jul 19, 2018 · 1 comment

Comments

@goduck777
Copy link

Feature request

The JIT function can access the global variables defined in the current module, and functions defined in other modules. However, when trying to access global variables defined in other modules using module_name.variable_name, there is a compiling error.

'NoneType' object has no attribute 'module'

@goduck777
Copy link
Author

goduck777 commented Jul 19, 2018

I find using

from module_name import variable_name

can make it work. However, using module_name.variable_name does not work.

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

No branches or pull requests

2 participants