Facundo Batista <[EMAIL PROTECTED]> added the comment:
zkfarmer, please try the following from your IDLE:
>>> myfilename = r"c:\tmp\test.txt"
>>> fh = open(myfilename, "w")
>>> fh.write("test\n")
>>> fh.close()
>>> fh = open(myfilename)
>>> import os
>>> os.remove(myfilename)
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
os.remove(myfilename)
WindowsError: [Error 32] The process cannot access the file because it
is being used by another process: 'c:\\tmp\\test.txt'
>>>
...and copy here what happened.
Thanks!
----------
nosy: +facundobatista
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3455>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com