News for hackers. Stuff that matters.
Re:What the Fuck Python by its-summertime on Saturday July 19, 2025 @05:08PM (#44619417)

    return False == False in [False]
is roughly

    a = False
    b = False
    c = [False]
    (a == b) and (b in c)

is less roughly

    a = False
    b = False
    if not (a == b):
       # short circuits https://news.ycombinator.com/item?id=44619401
       return False 

    c = [False]
    if not (b in c):
       return False

    return True

There are no comments on this comment yet.