Author edmundselliot@gmail.com
Recipients Dimitri Papadopoulos Orfanos, docs@python, edmundselliot@gmail.com, ezio.melotti, joel.johnson, jwilk, nitishch, oulenz
Date 2018-08-28.18:25:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535480707.66.0.56676864532.issue25433@psf.upfronthosting.co.za>
In-reply-to
Content
Not sure how helpful it would be to have the re.sub expressions for lstrip and rstrip, but I think it would look like:

l_stripped = re.sub(r'^\s*', '', foo)
r_stripped = re.sub(r'\s*$', '', foo)
History
Date User Action Args
2018-08-28 18:25:07edmundselliot@gmail.comsetrecipients: + edmundselliot@gmail.com, jwilk, ezio.melotti, docs@python, Dimitri Papadopoulos Orfanos, nitishch, joel.johnson, oulenz
2018-08-28 18:25:07edmundselliot@gmail.comsetmessageid: <1535480707.66.0.56676864532.issue25433@psf.upfronthosting.co.za>
2018-08-28 18:25:07edmundselliot@gmail.comlinkissue25433 messages
2018-08-28 18:25:07edmundselliot@gmail.comcreate