Terry Reedy wrote:
[EMAIL PROTECTED] wrote:
...If I can sense that the file is being created in the first iteration,
I can then use an if statement to decide whether or not I need to
write the header. Question: how can I tell if the file is being
created or if this its the first iteration? ...

How about file.tell == 0? or have I misunderstood the requirement?

OI thought roughly the same thing when I saw this,
how about
    if not file.tell():
        <produce header>

--Scott David Daniels
[EMAIL PROTECTED]

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

Reply via email to