We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pyteal.ast.int
int
When importing pyteal by from pyteal import * (as in the documentation examples), the module pyteal.ast.int shadows the Python keyword int.
pyteal
from pyteal import *
In particular, we have
$ python3 -c "from pyteal import *; print(int(5))" Traceback (most recent call last): File "<string>", line 1, in <module> TypeError: 'module' object is not callable
while:
$ python3 -c "print(int(5))" 5
Stop submodules from being exported, small change. They shouldn't be exported in the first place
Could be a major blocker for some people and it's a simple change that we can just knock out.
The text was updated successfully, but these errors were encountered:
Great find, I will fix this and release a new patch version soon.
Sorry, something went wrong.
jasonpaulos
Successfully merging a pull request may close this issue.
When importing
pyteal
byfrom pyteal import *
(as in the documentation examples), the modulepyteal.ast.int
shadows the Python keywordint
.In particular, we have
while:
Requirements
Stop submodules from being exported, small change. They shouldn't be exported in the first place
Urgency
Could be a major blocker for some people and it's a simple change that we can just knock out.
The text was updated successfully, but these errors were encountered: