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"

you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 1 year ago (3 children)

I just checked and they aren't.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 1 year ago* (2 children)

    Maybe they defined them as variable names instead?

    Or they could have just changed the language. Do you remember them compiling or editing C? (Python is usually run on cpython)

  • source
  • parent
  • hideshow 2 child comments