What is Nostr?
Peter Drake HAS MOVED /
npub1j56…8fww
2024-07-10 01:44:36

Peter Drake HAS MOVED on Nostr: I'm still confused by this #python oddity, originally posted by Mike Driscoll: x = ...

I'm still confused by this #python oddity, originally posted by Mike Driscoll (npub1ht8…374v):

x = True
y = False
print(x is (not y))
print(not x is y)
print(not (x is y))
print((not x) is y)
print(x is not y)
print(x == (not y))
print(not x == y)
print(not (x == y))
print((not x) == y)
print(x == not y)

Why is the last line a syntax error when the rest are fine?
Author Public Key
npub1j5692265apzem4z78sh93vjcg6vm764s3nhpzj2u4wg6cpqw9zysag8fww