Boštjan Mejak (Pikec) added the comment:

Using Python 3.4.3 on Windows 7 Home Premium 64 bit, Service Pack 1:

>>> import os
>>> os.path.join([1, 2, 3])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Python 3.4\lib\ntpath.py", line 108, in join
    result_drive, result_path = splitdrive(path)
  File "C:\Program Files\Python 3.4\lib\ntpath.py", line 161, in splitdrive
    normp = p.replace(_get_altsep(p), sep)
AttributeError: 'list' object has no attribute 'replace'

I think this atribute error should be handled differently, like informing the 
programmer that you cannot use a list in the join method.

----------
nosy: +Boštjan Mejak (Pikec)

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

Reply via email to