This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients SzieberthAdam, pitrou
Date 2014-10-31.14:58:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414767515.45.0.26879311609.issue22774@psf.upfronthosting.co.za>
In-reply-to
Content
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"))
History
Date User Action Args
2014-10-31 14:58:35pitrousetrecipients: + pitrou, SzieberthAdam
2014-10-31 14:58:35pitrousetmessageid: <1414767515.45.0.26879311609.issue22774@psf.upfronthosting.co.za>
2014-10-31 14:58:35pitroulinkissue22774 messages
2014-10-31 14:58:35pitroucreate