Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 951 Bytes

2019-12-11-229.mdx

File metadata and controls

19 lines (15 loc) · 951 Bytes
title date draft tags summary
Is False == 0 and True == 1 an implementation detail or is it guaranteed by the language?
2019-12-11
false
stackoverflow
python
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...

Content

https://stackoverflow.com/questions/2764017/is-false-0-and-true-1-an-implementation-detail-or-is-it-guaranteed-by-the

Link Preview