bs4.BeautifulSoup.has_key

BeautifulSoup.has_key(key)

This was kind of misleading because has_key() (attributes) was different from __in__ (contents). has_key() is gone in Python 3, anyway.