[IPython-user] Unable to delete files accessed by iPython
Dr. Phillip M. Feldman
pfeldman@verizon....
Thu Jul 30 14:09:23 CDT 2009
Try the following:
f= open('junk','w')
f.write('testing')
f.close()
f
This last command should generate something like the following:
Out[4]: <closed file 'junk', mode 'w' at 0x023FEB18>
Then try to delete the file junk from outside Python. This should work.
Phillip
nyguy wrote:
>
> Perhaps this either a Python or iPython newbie question, but I am unable
> to delete a File that was created by a py file. I follow the
> file.open(blah) and blah.close() conventions within the file.
>
> I am able to delete the file if I close out the instance of iPython.
>
> Thanks in advance,
>
> nyguy
>
--
View this message in context: http://www.nabble.com/Unable-to-delete-files-accessed-by-iPython-tp24227522p24745482.html
Sent from the IPython - User mailing list archive at Nabble.com.
More information about the IPython-user
mailing list