Message189401
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? |
|
Date |
User |
Action |
Args |
2013-05-16 18:43:27 | woparry | set | recipients:
+ woparry, r.david.murray, babou |
2013-05-16 18:43:27 | woparry | set | messageid: <1368729807.41.0.22163186635.issue17545@psf.upfronthosting.co.za> |
2013-05-16 18:43:27 | woparry | link | issue17545 messages |
2013-05-16 18:43:27 | woparry | create | |
|