[issue13365] str.expandtabs documentation is wrong

2011-11-11 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 84f803fdc0d2 by Eli Bendersky in branch '3.2':
Issue #13365: correct an error in the documentation of str.expandtabs
http://hg.python.org/cpython/rev/84f803fdc0d2

New changeset 25191fe10da9 by Eli Bendersky in branch 'default':
Issue #13365: correct an error in the documentation of str.expandtabs. Patch by 
John Feuerstein
http://hg.python.org/cpython/rev/25191fe10da9

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13365
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13365] str.expandtabs documentation is wrong

2011-11-11 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

Committed. Thanks for contributing.

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13365
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13365] str.expandtabs documentation is wrong

2011-11-07 Thread John Feuerstein

New submission from John Feuerstein j...@feurix.com:

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.

--
assignee: docs@python
components: Documentation
files: expandtabs_doc.diff
keywords: patch
messages: 147222
nosy: docs@python, john.feuerstein
priority: normal
severity: normal
status: open
title: str.expandtabs documentation is wrong
versions: Python 3.3
Added file: http://bugs.python.org/file23625/expandtabs_doc.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13365
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13365] str.expandtabs documentation is wrong

2011-11-07 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

While we're at it, wouldn't it be clearer to say ... where each tab character 
is replaced by...?

--
nosy: +eli.bendersky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13365
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13365] str.expandtabs documentation is wrong

2011-11-07 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

Other than that, the patch looks good.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13365
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com