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 SkyLined
Recipients SkyLined, georg.brandl
Date 2008-11-06.10:39:39
SpamBayes Score 6.832928e-09
Marked as misclassified No
Message-id <1225967980.7.0.461107867511.issue4269@psf.upfronthosting.co.za>
In-reply-to
Content
Part of the text of the online documentation for the string.split() method:

<snip>
If sep is not specified or is None, a different splitting algorithm is
applied. First, whitespace characters (spaces, tabs, newlines, returns,
and formfeeds) are stripped from both ends. Then, words are separated by
arbitrary length strings of whitespace characters. Consecutive
whitespace delimiters are treated as a single delimiter ("'1 2
3'.split()" returns "['1', '2', '3']"). Splitting an empty string or a
string consisting of just whitespace returns an empty list.
</snip>

As you may have noticed, there should be multiple spaces in ("'1 2
3'.split()". If you look at the HTML source you will see that they are
there. However, because browsers rendering HTML by default replace
multiple space with a single space, they are not visible in the
documentation. This should be addressed by either using <PRE></PRE>
around the text to preserve formatting or by replacing all instances of
multiple spaces with instances of "&nbsp;". I suspect this problem may
be elsewhere in the documentation as well.
History
Date User Action Args
2008-11-06 10:39:40SkyLinedsetrecipients: + SkyLined, georg.brandl
2008-11-06 10:39:40SkyLinedsetmessageid: <1225967980.7.0.461107867511.issue4269@psf.upfronthosting.co.za>
2008-11-06 10:39:40SkyLinedlinkissue4269 messages
2008-11-06 10:39:39SkyLinedcreate