os.lisdir, gets unicode, returns unicode... USUALLY?!?!?

"Martin v. Löwis" martin at v.loewis.de
Fri Nov 17 20:05:37 EST 2006


Leo Kislov schrieb:
> How about returning two lists, first list contains unicode names, the
> second list contains undecodable names:
> 
> files, troublesome = os.listdir(separate_errors=True)
> 
> and make separate_errors=True by default in python 3.0 ?

That would be quite an incompatible change, no?

Regards,
Martin



More information about the Python-list mailing list