indendation question

Sean 'Shaleh' Perry shaleh at speakeasy.net
Tue Jan 6 02:43:23 CET 2004


On Monday 05 January 2004 14:43, Peter Hansen wrote:
> > Well the "official" standard can be seen in the python files distributed
> > with python -- 4 spaces.
> >
> > That said, Python will use any whitespace you want as long as you are
> > consistent.  3 spaces, a tab, whatever.
>
> Well, *almost* any whitespace. :-)
>
> >>> import string
> >>> string.whitespace
>
> '\t\n\x0b\x0c\r '
>
> Of those, only '\t' and ' ' are going to be much help, I think, when trying
> to indent.  Linefeed, carriage return, vertical tab, and form feed are
> most likely not well supported yet. ;-)
>
> -Peter

(-: Point taken, I must remember to be more careful when wearing my teaching 
hat.

Thanks.





More information about the Python-list mailing list