bbcmicrobit / bbcmicrobit/PythonEditor
Blocks: "change <variable> by" block causes import error
オープン
bug
- 主要言語
- JavaScript
- スター
- 201
- フォーク
- 126
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
The 'change variable by' block causes the following import statement to be emitted:
```from numbers import Number```
Which in turn causes an ImportError on the device.
It also generates rather confusing code:
```
count = (count if isinstance(count, Number) else 0) + -1
```
See the following program as an example of failure:

コントリビューションガイド
評価
この issue はまだ評価されていません。