[Tutor] debugging problem
Gregor Lingl
glingl@aon.at
Mon, 12 Aug 2002 16:27:54 +0200
You may get a simpler clue by looking at the attributes
of backbone, you may also put a print dir() or two into the code
to examine what happens when:
>>> import backbone
>>> import math
>>> dir(backbone)
['__builtins__', '__doc__', '__file__', '__name__', 'cgi', 'cgiForm',
'err', 'reqField', 'wrong']
>>> backbone = math # ore some other weird action
>>> dir(backbone)
['__doc__', '__name__', 'acos', 'asin', 'atan', 'atan2', 'ceil', 'cos',
'cosh', 'e', 'exp', 'fabs', 'floor', 'fmod', 'frexp', 'hypot', 'ldexp',
'log', 'log10', 'modf', 'pi', 'pow', 'sin', 'sinh', 'sqrt', 'tan', 'tanh']
>>>