Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
vintprox72617dOne of things I like in Lua became real in Python: word syntax 🤓 By the way, its treatment of "is" against "==" is somewhat confusing! I'd expect "is" to be loose (no object comparison), while "==" could be used for asserting object is same. But nada...
amoux12017dYes it is almost like plain english 🤔
klutch40417dyeah that one gets me EVERY time haha
RememberMe1310017dI always trip up on
in : not in :: is : is not
Like come on, be consistent, I type "not is" all the time because I see it as the composition of a "not" and an existing operator...but noo we'll English it
amoux12017dif x is not None and x in sequence:
rant = foo(x)
if isinstance(rant, list) \
and len(rant) > 0:
y = [r for r in rant \
if (r or r.title() and r.lower())]
m = [len(s) for s in y if s]
Q = y if 10 in m else None
if Q is None:
Q = iter(Q)
while len(Q) > 0:
n = Q.pop()
print(n if n == x else "🦧")
akshar245617dHuman language. Snakes.
So does SQL and PowerShell.