Message239315
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. |
|
Date |
User |
Action |
Args |
2015-03-26 08:41:01 | PedanticHacker | set | recipients:
+ PedanticHacker, serhiy.storchaka, The Compiler |
2015-03-26 08:41:01 | PedanticHacker | set | messageid: <1427359261.28.0.585696368614.issue23780@psf.upfronthosting.co.za> |
2015-03-26 08:41:01 | PedanticHacker | link | issue23780 messages |
2015-03-26 08:41:00 | PedanticHacker | create | |
|