[Tutor] Dictionary Error: 'dict' object has noattribute '_contains_'
Kent Johnson
kent37 at tds.net
Sun Nov 6 21:05:55 CET 2005
Alan Gauld wrote:
>> But you normally shouldn't call this directly, you should write
>> "test" in menu_specials
>
>
> Now howzabout that! Yet another new trick learnt.
> When did 'in' start working with dictionaries?
Oh, about four years ago :-) in Python 2.2
You really should read the "What's New in Python x.x" docs ;)
Kent
--
http://www.kentsjohnson.com
More information about the Tutor
mailing list