blockpy-edu / blockpy

Blockly that's more Python than JavaScript, powered with Skulpt
Apache License 2.0
391 stars 130 forks source link

Reserved words get renamed to a "blockly unique name" #23

Closed carlosperate closed 3 years ago

carlosperate commented 7 years ago

Using any reserve words (like xrange, format, etc) in the text mode and converting it to Blockly works, but when generating the code again it sees the reserved word and renames it to a safe value (so xrange2, format2, etc).

acbart commented 7 years ago

Definitely a big bug - the underlying cause is a lack of py2block bindings for those relevant blocks. At some point, I need to sit down and generate those bindings. Thanks for the issue!

acbart commented 3 years ago

Fixed thanks to BlockMirror: https://github.com/blockpy-edu/BlockMirror/