[Tutor] debugging problem

Watt III, Glenn gwatt3@backbonesecurity.com
Mon, 12 Aug 2002 10:47:02 -0400


ok i did what you suggested and got this as a result

>>> import backbone
>>> dir(backbone)
['__builtins__', '__doc__', '__file__', '__name__']

so indeed the attribute is not showing up but why all the resources i
have show that im doing everything right
oh i need to ad import cgi into the backbone file if that threw anyone
off sorry=20


-----Original Message-----
From: Gregor Lingl [mailto:glingl@aon.at]
Sent: Monday, August 12, 2002 10:28 AM
To: Gregor Lingl
Cc: Watt III, Glenn; tutor@python.org
Subject: Re: [Tutor] debugging problem=20


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',=20
'err', 'reqField', 'wrong']
 >>> backbone =3D math # ore some other weird action
 >>> dir(backbone)
['__doc__', '__name__', 'acos', 'asin', 'atan', 'atan2', 'ceil', 'cos',=20
'cosh', 'e', 'exp', 'fabs', 'floor', 'fmod', 'frexp', 'hypot', 'ldexp',=20
'log', 'log10', 'modf', 'pi', 'pow', 'sin', 'sinh', 'sqrt', 'tan',
'tanh']
 >>>