I think guido even threatened to remove the .has_key method. This is the preferred way, as self.telnet_opt_dict can become a set or list and still behave well here "duck typing"