• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Switch to Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Steem Proposals 
  • Developer Portal 
  • Steem Bluepaper 
  • SMT Whitepaper 
  • Steem Whitepaper 
  • Privacy Policy
  • Terms of Service
Homeby Witness Moecki
LoginSign up
You are viewing a single comment's thread from:

RE: Python gotcha - "is" operator on integers

  • View the full context
themarkymark (78)in #python • 7 years ago (edited)

== tests if they are equal, and is is testing if they are the same object.
They are the same value so == succeeds, but they are not the same reference so is fails.

7 years ago in #python by themarkymark (78)
$0.05
  • Past Payouts $0.05
  • - Author $0.05
  • - Curators $0.00
3 votes
  • + emrebeyler
  • + privacybydesign
  • + mytechtrail
Reply 0