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
[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 ope
I'm looking for a way to create simple scripts which should be
accessible to a technical, though non-programmer, person. These scripts
are basically network service checks so I don't need much power: "send
this line," "if this line matches, keep going," and "if this line
matches, quit immediately.