Message230348
It may be unexpected, but it's not a bug. From the documentation:
"""Return a copy of the string with trailing characters removed. The chars argument is a string specifying the set of characters to be removed. If omitted or None, the chars argument defaults to removing whitespace. **The chars argument is not a suffix; rather, all combinations of its values are stripped**.""" (emphasis mine)
https://docs.python.org/3/library/stdtypes.html#str.rstrip
(if you wonder why that is, think about e.g. the use case of stripping certain whitespace characters: s.rstrip(" \t")) |
|
Date |
User |
Action |
Args |
2014-10-31 14:58:35 | pitrou | set | recipients:
+ pitrou, SzieberthAdam |
2014-10-31 14:58:35 | pitrou | set | messageid: <1414767515.45.0.26879311609.issue22774@psf.upfronthosting.co.za> |
2014-10-31 14:58:35 | pitrou | link | issue22774 messages |
2014-10-31 14:58:35 | pitrou | create | |
|