Does anyone remember an old blog post where someone used various Python language hacks to override boolean primitives, such that the statement false == true evaluated as true? I’m 90% sure it was python, but maybe it was some other language.

I’ve been looking for that post recently, but haven’t had any luck.

Thanks to antagonistic for finding it! I guess it was less of an “exploit”, and more of a “please don’t touch the loaded foot-gun”

  • who@feddit.org
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    17 hours ago

    That change is about True and False, not true and false. If OP was thinking of the former pair, it would seem my “different identifiers” guess was correct.