News for hackers. Stuff that matters.
Re:Why does `True == False is False` evaluate to False in Py... by dec0dedab0de on Saturday May 02, 2020 @07:16AM (#23051063)
When I have very complex logic I like to give each step its own variable. It makes it read like English.

To be honest I only actually only do this when Im working on old code and find myself trying to remember how something works.

Re:Why does `True == False is False` evaluate to False in Py... by paulryanrogers on Saturday May 02, 2020 @10:13AM (#23051886)
IME the improvement to readability is worth the cost of a few extra assignments.
Re:Why does `True == False is False` evaluate to False in Py... by Avamander on Saturday May 02, 2020 @10:36AM (#23052022)
In the cases where they aren't worth it, you're hopefully also using a language that gets compiled and they're just optimized out.