expandtabs acts unexpectedly
Xavier Ho
contact at xavierho.com
Wed Aug 19 04:10:49 EDT 2009
On Wed, Aug 19, 2009 at 5:57 PM, digisatori at gmail.com
<digisatori at gmail.com>wrote:
> Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
> [GCC 4.3.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> ' test\ttest'.expandtabs(4)
> ' test test'
> >>> 'test \ttest'.expandtabs(4)
> 'test test'
>
> Is it a bug or something, please advice.
> --
It is completely working as intended. What were you expecting instead?
Regards,
-Xav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090819/e709291a/attachment-0001.html>
More information about the Python-list
mailing list