too true, random internet poster, too true (and I'm certainly not in that subset for a lot of the newer features)
Conversation
Notices
-
Embed this notice
CF Bolz-Tereick (cfbolz@mastodon.social)'s status on Tuesday, 28-Oct-2025 00:01:02 JST
CF Bolz-Tereick
-
Embed this notice
✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Tuesday, 28-Oct-2025 00:00:57 JST
✧✦Catherine✦✧
@david_chisnall @cfbolz @DRMacIver I've used the else clause a number of times, but my first Python program was a tooling-grade Python parser, so I'm probably an exception here.
-
Embed this notice
David Chisnall (*Now with 50% more sarcasm!*) (david_chisnall@infosec.exchange)'s status on Tuesday, 28-Oct-2025 00:00:58 JST
David Chisnall (*Now with 50% more sarcasm!*)
@cfbolz @DRMacIver I have touched the internals of CPython and it both confirmed and reinforced my existing prejudices about Python.
It took me several years after the first time I saw an else clause on a for loop in Python before I found a Python programmer who got the meaning right on their first guess. The reason I know about that construct is that a Python programmer thought they knew what it meant and I had to debug the release version of their program to find out why it wasn't working.
-
Embed this notice
CF Bolz-Tereick (cfbolz@mastodon.social)'s status on Tuesday, 28-Oct-2025 00:00:59 JST
CF Bolz-Tereick
-
Embed this notice
David R. MacIver (drmaciver@mastodon.social)'s status on Tuesday, 28-Oct-2025 00:01:01 JST
David R. MacIver
@cfbolz Every time I learn more about how Python works I get a little sad, so I've mostly decided that it's best if I don't.
-
Embed this notice
CF Bolz-Tereick (cfbolz@mastodon.social)'s status on Tuesday, 28-Oct-2025 00:18:11 JST
CF Bolz-Tereick
@whitequark @david_chisnall @DRMacIver yeah, else clause on for loops is an unusual feature or maybe even a quirk, but not really in the list of deep weirdnesses of Python imo
-
Embed this notice