[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 type(s) for +: 'int' and 'str'

If I'm right, you can do this:

  outfile.write("%d," % (object.id))

Though probably the better solution is to find out what code is
assigning an unexpected value to object.id.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to