Changing filenames from Greeklish => Greek (subprocess complain)

Chris Angelico rosuav at gmail.com
Mon Jun 3 05:05:28 EDT 2013


On Mon, Jun 3, 2013 at 7:00 PM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
> On 03/06/2013 07:11, Νικόλαος Κούρας wrote:
>>
>> Thankls Michael,
>>
>> are these two behave the same in your opinion?
>>
>> sys.stdout = os.fdopen(1, 'w', encoding='utf-8')
>>
>> which is what i have now
>> opposed to this one
>>
>> import ocdecs
>> sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
>>
>> Which one should i keep and why?
>>
>
> import ocdecs?
>
> Sums up perfectly the amount of effort you put in.

If he imported a little more OCD, it might help a lot.

ChrisA



More information about the Python-list mailing list