-
Notifications
You must be signed in to change notification settings - Fork 4
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
Translate (2>3)-1 to python #5
Comments
One possible solution to this could be to wrap all expressions, or just the expressions outputting a if int(5 < 3):
... And would convert |
Actually, I think that the problem is that you are using python 3 with python 2 syntax. If you try: print((2>3)-1) It should convert the Your print statement works fine for me on python 2. In python 3 it is seeing the |
Yes, that's the problem, thanks |
So in C we could write code such as below, which is syntactically valid, but somewhat meaningless.
In spec for C, it does say
As result of this do we need translate such exprssion to python?
It can't be done by just
print (2>3)-1
, as 2>3 returns nontypeThe text was updated successfully, but these errors were encountered: