[Tutor] How to get script to detect whether a file exists?
Richard D. Moores
rdmoores at gmail.com
Tue Aug 3 01:31:13 CEST 2010
On Mon, Aug 2, 2010 at 15:43, Hugo Arts <hugo.yoshi at gmail.com> wrote:
> 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>
> 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
By golly, you're right! Your point led to changes in 4 lines, the ones
Thanks very much, Hugo.
More information about the Tutor