Message151002
>>> 'abcd'.endswith(['a', 'b'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Can't convert 'list' object to str implicitly
>>>
it would be nice like in str.join
>>> ''.join(('a', 'b'))
'ab'
>>> ''.join(['a', 'b'])
'ab'
>>> ''.join({'a', 'b'})
'ab'
>>> ''.join({'a': 1, 'b': 2})
'ab'
>>> |
|
Date |
User |
Action |
Args |
2012-01-10 04:09:29 | py.user | set | recipients:
+ py.user |
2012-01-10 04:09:29 | py.user | set | messageid: <1326168569.6.0.720816160315.issue13755@psf.upfronthosting.co.za> |
2012-01-10 04:09:28 | py.user | link | issue13755 messages |
2012-01-10 04:09:28 | py.user | create | |
|