Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
One 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...
-
I 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 -
amoux2704yif 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:
raise ValueError('idc')
Q = iter(Q)
while len(Q) > 0:
n = Q.pop()
print(n if n == x else "🦧")
Python uses “and” instead of “&&” a-what!!! 🤯
rant
revelation