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 Dimitri Papadopoulos Orfanos
Recipients Dimitri Papadopoulos Orfanos, docs@python
Date 2015-10-18.12:15:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445170536.34.0.94220475409.issue25433@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation of strip() / lstrip() / rstrip() should define "whitespace" more precisely.

The Python 3 documentation refers to "ASCII whitespace" for bytes.strip() / bytes.lstrip() / bytes.rstrip() and "whitespace" for str.strip() / str.lstrip() / str.rstrip(). I suggest the following improvements:
* add a link from "ASCII whitespace" to string.whitespace or bytes.isspace(),
* define plain "whitespace" more precisely (possibly with a link to str.isspace()).

The Python 2 documentation refers to plain "whitespace". As far as I know strip() removes ASCII whitespaces only. If so, please:
* add a link to string.whitespace or str.isspace(),
* improve the string.whitespace documentation and explain that it is locale-dependent (see documentation of str.isspace()).
History
Date User Action Args
2015-10-18 12:15:36Dimitri Papadopoulos Orfanossetrecipients: + Dimitri Papadopoulos Orfanos, docs@python
2015-10-18 12:15:36Dimitri Papadopoulos Orfanossetmessageid: <1445170536.34.0.94220475409.issue25433@psf.upfronthosting.co.za>
2015-10-18 12:15:36Dimitri Papadopoulos Orfanoslinkissue25433 messages
2015-10-18 12:15:35Dimitri Papadopoulos Orfanoscreate