You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The situation here is: I get a Python script that I edit. Most of it is white-space indented correctly. But parts of it use braces.
In particular I need braces to paste-in a section. In the above I got the if and print statements from another source with different indention. So I simply wrapped it with {} and this should then be understood correctly.
So I am asking for a mixed mode, where indention matters if there are no braces overriding it.
The text was updated successfully, but these errors were encountered:
Since then, the python-to-bython translator has been improved quite a bit. You should now be able to convert the python code to bython, and then use only braces for block definitions. That would be a much cleaner solution than allowing the mix (which in my opinion would be an inconsistent and bad language design)
I want this to work:
The situation here is: I get a Python script that I edit. Most of it is white-space indented correctly. But parts of it use braces.
In particular I need braces to paste-in a section. In the above I got the
if
andprint
statements from another source with different indention. So I simply wrapped it with {} and this should then be understood correctly.So I am asking for a mixed mode, where indention matters if there are no braces overriding it.
The text was updated successfully, but these errors were encountered: