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 steven.daprano
Recipients senji, steven.daprano
Date 2020-01-22.13:50:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579701008.21.0.670113404564.issue39418@roundup.psfhosted.org>
In-reply-to
Content
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.)
History
Date User Action Args
2020-01-22 13:50:08steven.dapranosetrecipients: + steven.daprano, senji
2020-01-22 13:50:08steven.dapranosetmessageid: <1579701008.21.0.670113404564.issue39418@roundup.psfhosted.org>
2020-01-22 13:50:08steven.dapranolinkissue39418 messages
2020-01-22 13:50:07steven.dapranocreate