> 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
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
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