Kevin Keating added the comment:

I agree that None is an unwise value to pass in.  Of the four different abspath 
implementations, though, one will treat None (or any falsey value) as an empty 
string, while the other three will raise an exception unless passed an actual 
str or bytes object.  I think the ideal solution would be to have abspath(None) 
raise a TypeError regardless of operating system, which would make it 
consistent with normcase (http://bugs.python.org/issue9018).  It's conceivable 
that some Windows-only code might rely on the current behavior of 
abspath(None), though.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22587>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to