Skip to content
Tools
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Tools
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
Home
X vs Y
Python
Languages
Python X vs Y
General-purpose language and its CPython interpreter.
All Python pages
Python is vs ==: identity vs equality
In Python == compares values and is compares identity (the same object). Use is only for None and sentinel objects. Why 256 is 256 but 257 may not be.
Esc