Message195269
I don't understand why str % list and str % dict behaves differently than str % int:
>>> 'abc' % [1]
'abc'
>>> 'abc' % ([1],)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: not all arguments converted during string formatting
>>> 'abc' % 1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: not all arguments converted during string formatting
>>> 'abc' % {1:2}
'abc'
>>> 'abc' % ({1:2},)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: not all arguments converted during string formatting |
|
Date |
User |
Action |
Args |
2013-08-15 18:18:01 | vstinner | set | recipients:
+ vstinner, r.david.murray, asvetlov |
2013-08-15 18:18:01 | vstinner | set | messageid: <1376590681.49.0.306870634329.issue18750@psf.upfronthosting.co.za> |
2013-08-15 18:18:01 | vstinner | link | issue18750 messages |
2013-08-15 18:18:00 | vstinner | create | |
|