577
Modern Programming
(lemmy.zip)
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.
Python does that, too.
https://docs.python.org/3/library/stdtypes.html#boolean-operations-and-or-not
Are you just referring to how Python uses the English
and/orinstead of the more common&&/||? I think what the user above you was talking about was Lua's strange ternary syntax usingand/or.no, the linked table shows how python also returns the first non-falsey result of an
a or bexpression rather than just giving a boolean. it's useful for initialising optional reference args:works with
andas well.