This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author woparry
Recipients babou, r.david.murray, woparry
Date 2013-05-16.18:43:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368729807.41.0.22163186635.issue17545@psf.upfronthosting.co.za>
In-reply-to
Content
I started working on a patch for this, but the more I think about it the less I am convinced it is wanted.

The issue requests that os.listdir('') be equal to os.listdir('.')

The given example of os.path.join doesn't follow this:

>>> os.path.join('','aaa')
'aaa'
>>> os.path.join('.','aaa')
'.\\aaa'

This makes sense: prepending an empty path should be a no-op, while prepending the current directory has a different meaning.

It seems consistent in this case that listing an empty path and listing the current directory should have different meanings.

Is there any other traction/use case for this change?
History
Date User Action Args
2013-05-16 18:43:27woparrysetrecipients: + woparry, r.david.murray, babou
2013-05-16 18:43:27woparrysetmessageid: <1368729807.41.0.22163186635.issue17545@psf.upfronthosting.co.za>
2013-05-16 18:43:27woparrylinkissue17545 messages
2013-05-16 18:43:27woparrycreate