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 oulenz
Recipients Dimitri Papadopoulos Orfanos, docs@python, ezio.melotti, joel.johnson, jwilk, nitishch, oulenz
Date 2018-04-11.14:49:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1523458158.22.0.682650639539.issue25433@psf.upfronthosting.co.za>
In-reply-to
Content
Slightly tangential, but it would be great if the documentation of lstrip() and rstrip() could include an equivalent definition in terms of re.sub(), e.g.:

lstrip(foo) == re.sub(r'(?u)\A\s*', '', foo)
rstrip(foo) == re.sub(r'(?u)\s*\Z', '', foo)

(Or whatever else is correct.)
History
Date User Action Args
2018-04-11 14:49:18oulenzsetrecipients: + oulenz, jwilk, ezio.melotti, docs@python, Dimitri Papadopoulos Orfanos, nitishch, joel.johnson
2018-04-11 14:49:18oulenzsetmessageid: <1523458158.22.0.682650639539.issue25433@psf.upfronthosting.co.za>
2018-04-11 14:49:18oulenzlinkissue25433 messages
2018-04-11 14:49:18oulenzcreate