Message147222
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. |
|
Date |
User |
Action |
Args |
2011-11-07 14:23:05 | john.feuerstein | set | recipients:
+ john.feuerstein, docs@python |
2011-11-07 14:23:05 | john.feuerstein | set | messageid: <1320675785.8.0.972158739581.issue13365@psf.upfronthosting.co.za> |
2011-11-07 14:23:05 | john.feuerstein | link | issue13365 messages |
2011-11-07 14:23:05 | john.feuerstein | create | |
|