[Tutor] Documentation concerns.
Bob Gailer
bgailer@alum.rpi.edu
Wed May 21 13:36:27 2003
At 12:23 PM 5/21/2003 +0200, Michael Janssen wrote:
>On Tue, 20 May 2003, Bob Gailer wrote:
>[snip]
> > 2-expandtabs "tab characters are expanded" expanded is not defined. It
> > takes an experiment to find out what this means.
>
>It is already explained:
>"Return a copy of the string where all tab characters are expanded using
>spaces". "Expand" means "replace one with many". I believe this is clear.
So one would expect 'a\tab\tabc\tabcd\t'.expandtabs() to produce
'a ab abc adcd ' where there are 8 spaces
between each word? But that's NOT what happens. So the definition is not
explicit enough.
Bob Gailer
bgailer@alum.rpi.edu
303 442 2625