Python Syntax Gotchas
Cluster focuses on discussions of Python's quirky syntax features, classic gotchas, implementation details like CPython behaviors, and references to PEPs, with jokes about braces and comparisons to other languages.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Their python is weird if it doesn't use eval?
Continuing Pythons tradition of breaking perfectly functional code.
Great ideas that should be backported into CPython. Especially the message when forgetting the colon!
Why is it "clearly" an error? This syntax has been around forever and is widely used by code golfers, so if it were unintentional, I'm sure the Python devs would've fixed it by now.
That's a classic Python gotcha, mentioned in all books and tutorials nowadays.
Huh? Python does it without any fancy sigils
Apologies, I must have been confusing it with some other Python syntax tricks I've seen. I don't write too much Python anymore..
Gotcha, thanks! I forgot about __future__.
This makes Python have Perl vibes.
FYI Fortran has this feature so if you feel like python is really missing this feature try using a more advanced language