[issue17670] expandtabs() weirdness

2013-04-09 Thread Alfredo Solano Martínez
Alfredo Solano Martínez added the comment: It does, thank you. Maybe hat example could be added to the docuentation? -- ___ Python tracker <http://bugs.python.org/issue17

[issue17670] expandabs() weirdness

2013-04-08 Thread Alfredo Solano Martínez
New submission from Alfredo Solano Martínez: I stumbled upon this by chance. Is the following behaviour by design? >>> s = 'a\tb' >>> s.expandtabs(1) == s.expandtabs(2) True In fact: >>> s.expandtabs(1) 'a b' # 1 space >>> s.expandtabs(