[Zope] Zope supports Python builin functions?

Evan Simpson evan@4-am.com
Tue, 14 Sep 1999 17:43:43 -0500


picasso@videotron.ca wrote:

[can't use type()]

> I know the test is stupid, i just wanted to know if it was possible to use
> Python builin function inside a simple DTML Method.
> I understand it's not. Is it right?

*Most* of the builtins are available as methods of '_', so that you can use
'_.int()' for example.  Some are omitted, and I'm not sure why.  'type' is
certainly harmless, for instance.  I *think* that 'tuple', 'list', 'map', and
'filter' were left out for the same reason 'range' was restricted -- to
prevent excessive looping.