[Python-ideas] os.listdir default to '.'
Masklinn
masklinn at masklinn.net
Thu Jan 12 21:00:32 CET 2012
On 2012年01月12日, at 19:46 , Mathias Panzenböck wrote:
>> But anyway, under any OS Python 2 returns something else whether you pass a unicode or str object to listdir (a list of unicode or string objects). Under Python 3 there is no unicode because str is what under Python 2 was unicode.
>> So under Python 2 os.listdir() would be not good. What should it return? strs or unicodes?
I understand Python 2 is in maintenance-only status anyway, so there's no way
python-ideas will apply to it.
And since Python 3 seems to already have os.listdir default to '.'...
More information about the Python-ideas
mailing list