News for hackers. Stuff that matters.
Re:Learn just a little Awk (2010) by sorokod on Saturday June 16, 2018 @03:40AM (#17326432)
python is flexible enough to allow that

Is there a valid use case for changing the numeric values of True and False?

Re:Learn just a little Awk (2010) by sametmax on Saturday June 16, 2018 @07:26AM (#17326987)
No, it's legacy behavior and the community took the opportunity to fix it in Python 3, where it raises a SyntaxError.

Python 2 has _many_ quirks like this one. Python 3 was not just "it's unicode".

Re:Learn just a little Awk (2010) by Lio on Saturday June 16, 2018 @05:43AM (#17326755)
It’s, IMHO, a terrible idea but the one use I could imagine is if you are doing a lot of stuff with Unix exit codes, where exit code 0 is success. That would cover setting True = 0 ...maybe but not failure which is usually a positive exit code.

No! Actually I take it back this _is_ definitely still a terrible idea and will lead to certain madness for all involved. :)

Re:Learn just a little Awk (2010) by rgacote on Saturday June 16, 2018 @09:54AM (#17327394)
True != Success
Re:Learn just a little Awk (2010) by sorokod on Saturday June 16, 2018 @11:19AM (#17327720)
True = (True != Success)
Re:Learn just a little Awk (2010) by tzahola on Saturday June 16, 2018 @04:50AM (#17326624)
No.