[Tutor] odd behavior when renaming a file
Alan Gauld
alan.gauld at btinternet.com
Thu May 10 23:05:57 CEST 2012
On 10/05/12 21:18, Dave Angel wrote:
>> out_file = open('revelex.csv', 'w')
>> # etc.
>>
>> I would expect the open() to fail...
>
> But he's opening it for WRITE, so it gets created just fine.
Ah yes, I didn't spot that. :-)
Too busy looking for a possible cause of a missing file message...
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list