[Zope] tal expression

Bakhtiar A Hamid bakhtiar.ahamid at gmail.com
Thu Nov 4 19:39:37 EST 2004


On Thu, 04 Nov 2004 10:08:23 +0100, Tino Wildenhain <tino at 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 at 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


More information about the Zope mailing list