Converting text file to different encoding.

Dave Angel d at davea.name
Fri Apr 17 10:57:26 EDT 2015


On 04/17/2015 10:48 AM, Dave Angel wrote:
> On 04/17/2015 09:19 AM, subhabrata.banerji at gmail.com wrote:

>>     >>> target = open("target", "w")
>
> It's not usually a good idea to use the same variable for both the file
> name and the opened file object.  What if you need later to print the
> name, as in an error message?

Oops, my error.  Somehow my brain didn't notice the quote marks, until I 
reread my own message online.



-- 
DaveA



More information about the Python-list mailing list