JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
88 stars 4 forks source link

None cannot be assigned to python tuples #64

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Description of Bug

Currently, if we do not assign anything to an expression, we assign it None when it is converted to Python. This is usually correct, except if said expression is a tuple.

How to Reproduce

Convert the following ` You will get this: (a, b) = None`

Expected behavior

You should instead get this: (a, b) = (None, None)

Additional context

...

JSAbrahams commented 5 years ago

Fixed by #71