1. in `python` and `brython` the following works fine: https://www.brython.info/tests/editor.html?lang=en ```python class DataUnit: static_one = 'one' static_two = 'two' static_total = static_one + static_two ``` 2. in `transcrypt`, generated js uses direct mapping ```javascript ... { static_one : 'one', static_two : 'two', static_total : static_one + static_two // SCOPE NOT AVAILABLE } ``` 3. solution: generated js could use class prefix: ```javascript ... { static_one : 'one', static_two : 'two', static_total : DataUnit.static_one + DataUnit.static_two, } ```
Activity
Andrei-Pozolotin commentedon Aug 23, 2019
additional problem with static scope: it is not executed
AlexECX commentedon Aug 30, 2019
Could be merged with #630. Also note that when the initializer object is used to create the class, DataUnit does not exist yet.