Issue1724

classification
Title: posixpath: join: exception if *p is empty
Type: Severity: normal
Components: Library Versions: 2.5.2rc
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: Chow, pjenvey
Priority: Keywords:

Created on 2011-03-25.06:50:48 by Chow, last changed 2011-04-10.22:22:59 by pjenvey.

Messages
msg6457 (view) Author: Yolkfull (Chow) Date: 2011-03-25.06:50:47
def join(a, *p):
    """Join two or more pathname components, inserting '/' as needed"""
    path = a
    for b in p:
        if b is None:            <<<<<<< below two lines is added by me
            return path
        if b.startswith('/'):
            path = b
        elif path == '' or path.endswith('/'):
            path +=  b
        else:
            path += '/' + b
    return path
msg6475 (view) Author: Philip Jenvey (pjenvey) Date: 2011-04-10.22:22:59
This is just how os.path.join API works, you're not supposed to pass it None values.

Also, Jython generally doesn't change behavior like this without CPython doing it first.
History
Date User Action Args
2011-04-10 22:22:59pjenveysetstatus: open -> closed
resolution: wont fix
messages: + msg6475
nosy: + pjenvey
2011-03-25 06:50:48Chowcreate