Message139449
| Author |
petere |
| Recipients |
petere |
| Date |
2011年06月29日.20:56:36 |
| SpamBayes Score |
4.7974225e-08 |
| Marked as misclassified |
No |
| Message-id |
<1309380997.61.0.864474637719.issue12444@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It appears to be a pretty common mistake to think that the argument of str.strip/lstrip/rstrip is a substring rather than a set of characters. To allow a more clearer notation, it would be nice if these functions also accepted an argument other than a string, for example a set or any collection. Then you could write, for example:
a.strip({'a', 'b', 'c'})
I suggest to either add support for sets specifically, or more generally anything that supports the "in" operator.
I can try to code it up if it sounds acceptable. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年06月29日 20:56:37 | petere | set | recipients:
+ petere |
| 2011年06月29日 20:56:37 | petere | set | messageid: <1309380997.61.0.864474637719.issue12444@psf.upfronthosting.co.za> |
| 2011年06月29日 20:56:36 | petere | link | issue12444 messages |
| 2011年06月29日 20:56:36 | petere | create |
|