[Tutor] How to get script to detect whether a file exists?
Hugo Arts
hugo.yoshi at gmail.com
Tue Aug 3 00:43:59 CEST 2010
On Tue, Aug 3, 2010 at 12:42 AM, Richard D. Moores <rdmoores at gmail.com> wrote:
> On Mon, Aug 2, 2010 at 14:28, Hugo Arts <hugo.yoshi at gmail.com> wrote:
>> On Mon, Aug 2, 2010 at 8:58 PM, Richard D. Moores <rdmoores at gmail.com> wrote:
>>>
>>> OK, here's my attempt: <http://tutoree7.pastebin.com/3YNJLkYc>. Better?
>>>
>>
>> Much better. But why is that F in the argument list of both functions?
>> It's overwritten immediately with the open() call, so it seems
>> unnecessary to include in the arguments.
>
> I need it for lines 36 and 37, don't I?
>
> Here's the latest incarnation: <http://tutoree7.pastebin.com/7tDpX2nT>
>
> Dick
>
Do you? you're just passing in the strings "F_used" and "F_unused",
and you're not even using them inside the function. I'd say cut it all
out.
More information about the Tutor
mailing list