Message186363
Yes, the behavior is by design. I think you are misunderstanding how exandtabs() works. The "tabsize" argument indicates the number of columns each tab position occupies. So, with a tabsize of 4, the tab positions occur every four columns; the tab positions are where the characters immediately following the tab character start. Perhaps this example will make the behavior clearer:
>>> '1\t2'.expandtabs(4)
'1 2'
>>> '12\t3'.expandtabs(4)
'12 3'
>>> '123\t4'.expandtabs(4)
'123 4' |
|
Date |
User |
Action |
Args |
2013-04-09 00:49:53 | ned.deily | set | recipients:
+ ned.deily, asolano |
2013-04-09 00:49:53 | ned.deily | set | messageid: <1365468593.3.0.74100049937.issue17670@psf.upfronthosting.co.za> |
2013-04-09 00:49:53 | ned.deily | link | issue17670 messages |
2013-04-09 00:49:52 | ned.deily | create | |
|