error: an integer is required
tjreedy at udel.edu
Mon Jun 8 14:46:07 EDT 2009
madigreece at yahoo.gr wrote:
> I execute my code in linux environment.
> My code is:
> from os import *
> def insert_text_file(self, strng):
> t=open("elements_file.txt", "a")
> I'm getting this error:
> <type 'exception.TypeError'>: an integer is required
> Where is the mistake?
> Help me, please!!
Tell us the Python version and give the *full* traceback message, not
just the last line. I am pretty sure you also left out an important
part of the code you executed to get that message.
More information about the Python-list