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
python
brython
class DataUnit: static_one = 'one' static_two = 'two' static_total = static_one + static_two
transcrypt
... { static_one : 'one', static_two : 'two', static_total : static_one + static_two // SCOPE NOT AVAILABLE }
... { static_one : 'one', static_two : 'two', static_total : DataUnit.static_one + DataUnit.static_two, }
The text was updated successfully, but these errors were encountered:
additional problem with static scope: it is not executed
class DataUnit: print('this is not printed')
Sorry, something went wrong.
Could be merged with #630. Also note that when the initializer object is used to create the class, DataUnit does not exist yet.
No branches or pull requests
python
andbrython
the following works fine:https://www.brython.info/tests/editor.html?lang=en
transcrypt
, generated js uses direct mappingThe text was updated successfully, but these errors were encountered: