(self, key)
return self.has_attr(key)
This was kind of misleading because has_key() (attributes)
        was different from __in__ (contents). has_key() is gone in
        Python 3, anyway.
This was kind of misleading because has_key() (attributes)
        was different from __in__ (contents). has_key() is gone in
        Python 3, anyway.
This was kind of misleading because has_key () ( attributes ) was different from __in__ ( contents ) . has_key () is gone in Python 3 anyway .
def has_key(self, key):
        """This was kind of misleading because has_key() (attributes)
        was different from __in__ (contents). has_key() is gone in
        Python 3, anyway."""
        warnings.warn('has_key is deprecated. Use has_attr("%s") instead.' % (
                key))
        return self.has_attr(key)
def has_key ( self , key ) : warnings . warn ( 'has_key is deprecated. Use has_attr("%s") instead.' % ( key ) ) return self . has_attr ( key )