Re: type error on porting outfile.write

2005-12-21 Thread Dave Hansen
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

Re: type error on porting outfile.write

2005-12-21 Thread Eric McCoy
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

type error on porting outfile.write

2005-12-20 Thread pmiller
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 --

type error on porting outfile.write

2005-12-20 Thread pmiller
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 --

Re: type error on porting outfile.write

2005-12-20 Thread Eric McCoy
[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