Hacker News new | ask | show | jobs
by 5d8767c68926 1358 days ago
>... a comma at the end of the line turned his Python scalar into a unary tuple

I have been burned by this mistake a handful of times. Each instance managed to eat up a shocking amount of time. I definitely consider it a misfeature.

1 comments

I'm trying to figure out how you ended up with a stray comma at the end of a line. A simple typo, bumping the key without noticing?
My guess would be a bad auto-complete suggestion that wasn't read carefully before accepting.

Loose-type languages often struggle with auto-complete and related. I don't know enough about current state of python development to say with certainty, however.

Cannot offer any justification for the error. Just that I have done it more than once, and each time it has taken me too long to debug the underlying cause.