J Cameron Cooper wrote:
Just make sure that the elements of the list you're getting are what you think they are. If you ask about the integer 17 and the list actually has a string "17" they won't match. You can either adjust what you test or use something like the 'int' function to "cast".

Also make sure the list isn't too long, otherwise do it as a dictionary and use has_key...



Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to