On Tue, 20 Dec 2005 22:11:01 -0500 in comp.lang.python, Eric McCoy
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
I ported my code from the development to
application platform, I found a type error
on a fileout statement:
outfile.write(object.id +,)
What is the type of object.id? I'm
Dave Hansen wrote:
or even (closer to the original code)
outfile.write(str(object.id)+, )
That was going to be my suggestion too, but that can mask the underlying
bug since a lot of types have __str__ methods. Not only could those
types theoretically return a valid stringified integer by
I ported my code from the development to
application platform, I found a type error
on a fileout statement:
outfile.write(object.id +,)
Object.id is provided by a library routine
that is installed on both machines.
How do I fix this ?
Thanks,
Phil Miller
--
I ported my code from the development to
application platform, I found a type error
on a fileout statement:
outfile.write(object.id +,)
Object.id is provided by a library routine
that is installed on both machines.
How do I fix this ?
Thanks,
Phil Miller
--
[EMAIL PROTECTED] wrote:
I ported my code from the development to
application platform, I found a type error
on a fileout statement:
outfile.write(object.id +,)
What is the type of object.id? I'm guessing an integer. The exception
should tell you, e.g.:
TypeError: unsupported operand