Hacker News new | ask | show | jobs
by goodoldneon 1393 days ago
The "comma makes a tuple" behavior is a big gotcha I've experienced in Python. I wish that behavior didn't exist
1 comments

Which version of that are you talking about in Python? The biggest related gotcha I've seen in Python is when you have a trailing comma `x = 1,` and accidentally create a tuple.
Yea that’s the most common gotcha