This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author facundobatista
Recipients amaury.forgeotdarc, benjamin.peterson, facundobatista, georg.brandl, zkfarmer
Date 2008-07-28.12:15:09
SpamBayes Score 0.0001029622
Marked as misclassified No
Message-id <1217247313.38.0.584279691246.issue3455@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2008-07-28 12:15:13facundobatistasetrecipients: + facundobatista, georg.brandl, amaury.forgeotdarc, benjamin.peterson, zkfarmer
2008-07-28 12:15:13facundobatistasetmessageid: <1217247313.38.0.584279691246.issue3455@psf.upfronthosting.co.za>
2008-07-28 12:15:12facundobatistalinkissue3455 messages
2008-07-28 12:15:10facundobatistacreate