• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Block Explorer 
  • Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Hive Proposals 
  • OpenHive Chat 
  • Developer Portal 
  • Hive Whitepaper 
  • Privacy Policy
  • Terms of Service
logo
  • Posts
  • Proposals
  • Witnesses
  • Our dApps
LoginSign up
You are viewing a single comment's thread from:

RE: Python gotcha - "is" operator on integers

  • View the full context
themarkymark (81)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 (81)
$0.05
  • Past Payouts $0.05
  • - Author $0.05
  • - Curators $0.00
3 votes
  • emrebeyler: $0.05
  • privacybydesign: $0.00
  • mytechtrail: $0.00
Reply 0
Sort:  
  • Trending
    • Trending
    • Votes
    • Age