Topics: python

Identity operator vs. Comparison operator

A kind python reminder :) In some cases, comparing the identity of two strings or numbers—for example, using a is b—will return True, even if each has been assigned separately as we did here. This is because some implementations of Python will reuse the same object (since the value is the same and is immutable) […]

Asheesh Laroia and Web Scraping – PyCon2012

Mechanize: BeautifulSoup: