[Tutor] Debugging method
Kermit Rose
kermit at polaris.net
Mon Feb 20 20:25:47 CET 2006
Kermit have you actually bothered going through any tutorials? You just seem
to be asking every time you get an error, I know the list is here for people
to ask questions but you really should try and work some things out for
yourself.
Traceback (most recent call last):
File "<pyshell#8>", line 1, in -toplevel-
v = transfac(v)
File "c:\math\factoring\factor30.py", line 46, in transfac
a,b,c,d,m,n = a,b.c+a*t,d-b*t,m+t,n
AttributeError: 'int' object has no attribute 'c'
Your problem here is that you have b.c instead of what I presume should be a
comma. b.c means that it's trying to find the method c of the integer b
which doesn't exist.
Thank you very much.
Actually, I have been working things out myself. The many questions I've
sent you are only a fraction of the
problems I've encountered while developing this program.
The tutorials are helpful only if I know what to look for.
For this particular error message, I had no clue that "has no attribute" is
a hint that a period is typed where
it should not be.
Now I know how to interpret that particular error message should it occur in
the future.
I had looked the code over. I knew to look on that line, but was totally
baffled because I could not distinguish the
comma from the period.
Kermit < kermit at polaris.net >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060220/33cbb7e7/attachment.html
More information about the Tutor
mailing list