what does this mean....?

Rhodri James rhodri at wildebst.demon.co.uk
Sat Feb 28 06:50:38 CET 2009


On Sat, 28 Feb 2009 05:17:41 -0000, <zaheer.agadi at gmail.com> wrote:

> I am trying to download a file from the server, I am getting this
> error,what does this mean
>
>    localFile = open(localFileName, 'wb')
> TypeError: coercing to Unicode: need string or buffer, type found

The rest of the traceback and enough of your code to make sense of
it would have helped.  Without context, my best guess is that
"localFileName" isn't actually a string.

-- 
Rhodri James *-* Wildebeeste Herder to the Masses



More information about the Python-list mailing list