[issue12104] os.path.join('/some/path', '') adds extra slash at end of result

2011-05-19 Thread R. David Murray
R. David Murray added the comment: See also #9921. -- nosy: +r.david.murray resolution: rejected -> duplicate superseder: -> os.path.join('x','') behavior ___ Python tracker __

[issue12104] os.path.join('/some/path', '') adds extra slash at end of result

2011-05-19 Thread Brian Curtin
Brian Curtin added the comment: This is intentional. See the implementation of join in Lib/posixpath.py and the Windows implementation in Lib/ntpath.py which also includes a comment explaining why. # path is not empty and does not end with a backslash, # but b is empty; since, e.g., split('a/

[issue12104] os.path.join('/some/path', '') adds extra slash at end of result

2011-05-18 Thread Марк Коренберг
New submission from Марк Коренберг : os.path.join('/some/path', '') adds extra slash at end of result. I expect in that case return value should be '/some/path' but not '/some/path/' -- components: Library (Lib) messages: 136258 nosy: mmarkk priority: normal severity: normal status: ope