Message360467
Attached is a script I used to test:
* that str.isspace() currently matches the definition given in the docs;
* that string.whitespace contains all whitespace characters, and nothing but whitespace;
* that str.strip() strips off all whitespace characters, and nothing but whitespace;
* that str.split() splits on all whitespace characters, and nothing but whitespace.
I haven't tested the .lstrip rstrip rsplit methods because I'm lazy :-)
The only test that fails is that the string.whitespace is missing some whitespace.
Again, because I'm lazy, I haven't written this as proper unit tests. Besides, it's quite likely all these things are already in the official test suite. (If not, I might re-write the missing parts as unit tests and submit a PR.) |
|
Date |
User |
Action |
Args |
2020-01-22 13:50:08 | steven.daprano | set | recipients:
+ steven.daprano, senji |
2020-01-22 13:50:08 | steven.daprano | set | messageid: <1579701008.21.0.670113404564.issue39418@roundup.psfhosted.org> |
2020-01-22 13:50:08 | steven.daprano | link | issue39418 messages |
2020-01-22 13:50:07 | steven.daprano | create | |
|