Y
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
LynxInLA
1393 days ago
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.
link
goodoldneon
1393 days ago
Yea that’s the most common gotcha
link