Message170726
| 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:02 | jftuga | set | recipients:
+ jftuga |
| 2012年09月19日 16:12:02 | jftuga | set | messageid: <1348071122.36.0.302681706423.issue15972@psf.upfronthosting.co.za> |
| 2012年09月19日 16:12:01 | jftuga | link | issue15972 messages |
| 2012年09月19日 16:12:00 | jftuga | create |
|