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 john.feuerstein
Recipients docs@python, john.feuerstein
Date 2011-11-07.14:23:04
SpamBayes Score 9.2036395e-08
Marked as misclassified No
Message-id <1320675785.8.0.972158739581.issue13365@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation for str.expandtabs([tabsize]) is wrong:
 
"Return a copy of the string where all tab characters are replaced by one or more spaces, depending on the current column and the given tab size. [...]"

This should read "zero or more spaces":

>>> 'a\tb'.expandtabs(0)
'ab'
>>> 'a\tb'.expandtabs(-1)
'ab'

The description in Objects/unicodeobject.c does not include this error.
History
Date User Action Args
2011-11-07 14:23:05john.feuersteinsetrecipients: + john.feuerstein, docs@python
2011-11-07 14:23:05john.feuersteinsetmessageid: <1320675785.8.0.972158739581.issue13365@psf.upfronthosting.co.za>
2011-11-07 14:23:05john.feuersteinlinkissue13365 messages
2011-11-07 14:23:05john.feuersteincreate