Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
goodoldneon
· 4y ago · 0 comments
The "comma makes a tuple" behavior is a big gotcha I've experienced in Python. I wish that behavior didn't exist
Comments
[–]
LynxInLA
4y 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.
[–]
goodoldneon
OP
4y ago
Yea that’s the most common gotcha