14 Sep
1999
14 Sep
'99
10:43 p.m.
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.