Re: problem with special built-in method __contains__,

2007-10-02 Thread J. Clifford Dyer
On Tue, Oct 02, 2007 at 11:14:38AM -, [EMAIL PROTECTED] wrote regarding problem with special built-in method __contains__,: > > if i have a dictionary name number and i want toask the list > whether a particular key already > exists. > > >>> print

Re: problem with special built-in method __contains__,

2007-10-02 Thread Paul Hankin
On Oct 2, 12:14 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > if i have a dictionary name number and i want toask the list > whether a particular key already > exists. > > >>> print number > > {'octal': '1234567', 'binary': '10100101', 'decimal': '1234567890', > 'hexadecimal': '1-9,

problem with special built-in method __contains__,

2007-10-02 Thread [EMAIL PROTECTED]
if i have a dictionary name number and i want toask the list whether a particular key already exists. >>> print number {'octal': '1234567', 'binary': '10100101', 'decimal': '1234567890', 'hexadecimal': '1-9,a-f'} i got error..after execute >>>number._contains_("test") Traceback (mos