Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bacon_waffle
on May 2, 2020
|
parent
|
context
|
favorite
| on:
Why does `True == False is False` evaluate to Fals...
That wouldn't work for the even parity case.
"(x in odds) == expect_odd" gives the intended behaviour and I think is easier to read as well.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
"(x in odds) == expect_odd" gives the intended behaviour and I think is easier to read as well.