On Thu, 04 Nov 2004 10:08:23 +0100, Tino Wildenhain <tino@wildenhain.de> wrote: <snip>
To answer your true and false, python in 2.3 (Zope2.7) has True and False as real boolean types. In Expressions, 0,"",'',[],{} and so on are considered False too. This is used a lot.
Hint: if you use strings as keys in your dictionary, you could use path expressions. If you have a list, iterate over it rather then trying to access it directly via list index.
hi tino could you elaborate a bit/point me to docs on this? i would have think that getting it via index would be cheaper/faster ? thanks
Regards Tino
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- http://myzope.kedai.com.my - my-zope.org