Message315193
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.) |
|
Date |
User |
Action |
Args |
2018-04-11 14:49:18 | oulenz | set | recipients:
+ oulenz, jwilk, ezio.melotti, docs@python, Dimitri Papadopoulos Orfanos, nitishch, joel.johnson |
2018-04-11 14:49:18 | oulenz | set | messageid: <1523458158.22.0.682650639539.issue25433@psf.upfronthosting.co.za> |
2018-04-11 14:49:18 | oulenz | link | issue25433 messages |
2018-04-11 14:49:18 | oulenz | create | |
|