[New-bugs-announce] [issue15377] os.path.join() error misleading with path1=None
Chris Jerdonek
report at bugs.python.org
Tue Jul 17 10:11:58 CEST 2012
New submission from Chris Jerdonek <chris.jerdonek at gmail.com>:
The error message for os.path.join() is misleading when the first argument is None. The message should probably say something about mixing "None" and strings.
Python 3.3.0b1 (default:f954ee489896, Jul 16 2012, 22:42:29)
[GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] on darwin
>>> import os
>>> os.path.join(None, 'a')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../cpython/Lib/posixpath.py", line 89, in join
"components.") from None
TypeError: Can't mix strings and bytes in path components.
----------
components: Library (Lib)
messages: 165685
nosy: cjerdonek
priority: normal
severity: normal
status: open
title: os.path.join() error misleading with path1=None
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15377>
_______________________________________
More information about the New-bugs-announce
mailing list