Message275162
Agreed with Stéphane. Since count() returns 1, resulting string should contain 1 replacement.
Using regular expressions:
>>> re.sub('', 'x', '')
'x'
>>> re.sub('', 'x', '', 1)
'x' |
|
Date |
User |
Action |
Args |
2016-09-08 21:26:07 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, ericvw, SilentGhost, Stéphane Henriot |
2016-09-08 21:26:07 | serhiy.storchaka | set | messageid: <1473369967.22.0.611421019211.issue28029@psf.upfronthosting.co.za> |
2016-09-08 21:26:07 | serhiy.storchaka | link | issue28029 messages |
2016-09-08 21:26:07 | serhiy.storchaka | create | |
|