- Published on
Is False == 0 and True == 1 an implementation detail or is it guaranteed by the language?
- Authors
- Name
- Hao Chen
- @haoel
Content
Link Preview
- https://stackoverflow.com/questions/2764017/is-false-0-and-true-1-an-implementation-detail-or-is-it-guaranteed-by-the
- Is False == 0 and True == 1 an implementation detail or is it guaranteed by the language?
- Is it guaranteed that False == 0 and True == 1, in Python (assuming that they are not reassigned by the user)? For instance, is it in any way guaranteed that the following code will always produce...