Rainer Hubovsky wrote:
> Thank you Reinhold, that was the solution. But just because I am curious:
> what is this statement without the parentheses? After all it is a valid
> statement...
>
> Rainer
>
>
> In article <[EMAIL PROTECTED]>, Reinhold Birkenfeld wrote:
>> Is the above exactly your c
Rainer Hubovsky wrote:
> Thank you Reinhold, that was the solution. But just because I am curious:
> what is this statement without the parentheses? After all it is a valid
> statement...
it's an expression that fetches the "close" method object, and throws
it away. to see what it evaluates to,
Thank you Reinhold, that was the solution. But just because I am curious:
what is this statement without the parentheses? After all it is a valid
statement...
Rainer
In article <[EMAIL PROTECTED]>, Reinhold Birkenfeld wrote:
> Is the above exactly your code? If yes, it should be
>
> f.close()
Rainer Hubovsky wrote:
> Hello Python-Gurus,
>
> ==
> f = open(LOGFILE,'w')
> f.write(time + '\n')
> f.close
>
> command = 'ping -n 20' + target + '>>' + LOGFILE
> system(command)
> ==
>
> produces an error saying that a file cannot be accessed bec
Hello Python-Gurus,
==
f = open(LOGFILE,'w')
f.write(time + '\n')
f.close
command = 'ping -n 20' + target + '>>' + LOGFILE
system(command)
==
produces an error saying that a file cannot be accessed because it is used
by another process. I asume it