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

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


gabor schrieb:
> i also recommend this approach.
> 
> also, raising an exception goes well with the principle of the least
> surprise imho.

Are you saying you wouldn't have been surprised if that had been
the behavior? How would you deal with that exception in your code?

Regards,
Martin



More information about the Python-list mailing list