Fredrik Lundh <[EMAIL PROTECTED]> wrote:

> Max Erickson wrote:
> 
>>> # w is for writing
>>> myfile = open('theoutfile',w)
>> 
>> That won't work, the second argument to open needs to be a string:
> 
> w = 'w'
> 
> </F>
> 

Is it inappropriate to call the w on the left side of the equal's sign 
a string? I.e., w refers to a string(object) that contains 'w'?

My goal was to point out that the code would not work as posted.

max

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to