Author PedanticHacker
Recipients PedanticHacker, The Compiler, serhiy.storchaka
Date 2015-03-26.08:41:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427359261.28.0.585696368614.issue23780@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-03-26 08:41:01PedanticHackersetrecipients: + PedanticHacker, serhiy.storchaka, The Compiler
2015-03-26 08:41:01PedanticHackersetmessageid: <1427359261.28.0.585696368614.issue23780@psf.upfronthosting.co.za>
2015-03-26 08:41:01PedanticHackerlinkissue23780 messages
2015-03-26 08:41:00PedanticHackercreate