3 ms·
The "comma makes a tuple" behavior is a big gotcha I've experienced in Python. I wish that behavior didn't exist
by goodoldneon 4y ago
The "comma makes a tuple" behavior is a big gotcha I've experienced in Python. I wish that behavior didn't exist
- LynxInLA 4y agoWhich 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 4y agoYea that’s the most common gotcha