builtin functions
Johan
johan at johanjonkers.com
Wed Aug 8 05:44:13 EDT 2001
hi.
I'm having a small problem at the moment with a program in python I'm
working on.
The problem is that I seem to loose access to the builtin functions when I
try to call them inside a method of a class.
What should be:
attr_type = type(builder.current, attr)
now has to be:
attr_type = str(__builtins__['type'](getattr(builder.current, attr)))
Does anyone know why I loose direct access to the builtin functions? am I
doing something wrong?
Regards,
Johan Jonkers
More information about the Python-list
mailing list