fromfile error on windows, not mac

Manu Hack manuhack at gmail.com
Wed Jul 23 16:09:28 EDT 2008


On Wed, Jul 23, 2008 at 3:37 PM, jadamwil <jadamwilson2 at gmail.com> wrote:

> I found the problem: I thought it was opening in binary mode on BOTH
> windows and the mac, but on windows I passed "rb" with double quotes,
> not 'rb' with single quotes to the open file function. Changing it to
> 'rb' fixed it.
>
>

by the way, anyone could explain why changing to single quote makes a
difference?

>>> "rb" == 'rb'
True
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080723/057b908b/attachment.html>


More information about the Python-list mailing list