this post was submitted on 21 Mar 2025
640 points (99.5% liked)

Programmer Humor

21809 readers
1775 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Original post: hachyderm.io (Mastodon)

you are viewing a single comment's thread
view the rest of the comments
[–] shortrounddev@lemmy.world 21 points 1 day ago (1 children)

I curse the sadist who decided True should be uppercase in Python

[–] jdeath@lemm.ee 3 points 1 day ago (1 children)

guido, why did you make python so weird?

[–] palordrolap@fedia.io 5 points 1 day ago (1 children)

In this instance, I think there was some suggestion to write code in mostly lower case, including all user variables, or at least inCamelCaseLikeThis with a leading lower case letter, and so to make True and False stand out, they've got to be capitalised.

I mean. They could have been TRUE and FALSE. Would that have been preferable? Or how about a slightly more Pythonic style: __true__ and __false__

[–] jdeath@lemm.ee 4 points 1 day ago

i would go with lowercase and just have it be a reserved word like the other ones. but I'm not super picky, i generally like to stick to what people are used to, and i can understand the reasoning behind the choice.