This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jftuga
Recipients jftuga
Date 2012-09-19.16:12:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348071122.36.0.302681706423.issue15972@psf.upfronthosting.co.za>
In-reply-to
Content
import os.path
a = [ r'c:\Windows\notepad.exe' ]
print( os.path.getsize(a) )

Under Python 3.2.3, this error message is returned:
  File "c:\python32\lib\genericpath.py", line 49, in getsize
    return os.stat(filename).st_size
TypeError: Can't convert 'list' object to str implicitly


Under Python 3.3.0rc2, this error message is returned:
  File "c:\Python33\lib\genericpath.py", line 49, in getsize
    return os.stat(filename).st_size
TypeError: an integer is required


I feel like the 3.2.3 behavior is more accurate and would like to propose that the 3.3 error message says something about a list instead of an integer.
History
Date User Action Args
2012-09-19 16:12:02jftugasetrecipients: + jftuga
2012-09-19 16:12:02jftugasetmessageid: <1348071122.36.0.302681706423.issue15972@psf.upfronthosting.co.za>
2012-09-19 16:12:01jftugalinkissue15972 messages
2012-09-19 16:12:00jftugacreate