isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
263 stars 57 forks source link

Bug with newline and list. #117

Closed orlp closed 9 years ago

orlp commented 9 years ago

Trailing newline after list appends an empty tuple: https://pyth.herokuapp.com/?code=%5B%0A&debug=1 .

I'd say this is a bug.

orlp commented 9 years ago

It gets even weirder. Guess what this prints:

[
)1

That's right, [(), 1]! Shouldn't happen.

orlp commented 9 years ago

Fixed with https://github.com/isaacg1/pyth/commit/4d86d27afd230ed24f5153389d5f59eeb8dd5485 .