[issue21336] ntpath.splitdrive fails on None argument

2014-04-25 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this as "not a bug". Feel free to reopen it if there's use case for passing in None. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue21336] ntpath.splitdrive fails on None argument

2014-04-23 Thread Eric V. Smith
Eric V. Smith added the comment: Why are you passing None, and what would you expect the result to be? The function is documented as taking a string. -- nosy: +eric.smith type: crash -> behavior ___ Python tracker

[issue21336] ntpath.splitdrive fails on None argument

2014-04-23 Thread Ben Ma
New submission from Ben Ma: >>> import ntpath >>> ntpath.splitdrive(None) Traceback (most recent call last): File "", line 1, in File "E:\python3\lib\ntpath.py", line 159, in splitdrive if p and len(p) > 1: TypeError: object of type 'NoneType' has no len() Solution: (that I've found) L