Re: [Tutor] Dictionary Error: 'dict' object has no attribute '_contains_'

2005-11-06 Thread Alan Gauld
> Hi! I'm on the version 2.4, going through Beginning Python (Wrox), and > I'm getting the above error. I'm trying to do this: > > menu_specials._contains_("test") > > Any ideas on what I'm doing wrong? Thanks! It looks like you may be reading the wrong book! Why they would suggest you ever exec

Re: [Tutor] Dictionary Error: 'dict' object has no attribute '_contains_'

2005-11-06 Thread Kent Johnson
Trent Rigsbee wrote: > Hi! I'm on the version 2.4, going through Beginning Python (Wrox), and I'm > getting the above error. I'm trying to do this: > > menu_specials._contains_("test") > > Any ideas on what I'm doing wrong? Thanks! The name of the method is __contains__ (note *double* leading

[Tutor] Dictionary Error: 'dict' object has no attribute '_contains_'

2005-11-06 Thread Trent Rigsbee
Hi! I'm on the version 2.4, going through Beginning Python (Wrox), and I'm getting the above error. I'm trying to do this: menu_specials._contains_("test") Any ideas on what I'm doing wrong? Thanks! ___ Tutor maillist - Tutor@python.org http://mai