[Tutor] "Indenting"

Deirdre Saoirse deirdre@deirdre.net
Tue, 21 Mar 2000 14:00:57 -0800 (PST)

On Tue, 21 Mar 2000, Robin B. Lake wrote:

> I've RTFM'ed and searched in three Python books (Internet, Learning,
> Essential Reference)  --- and only found the issue of indenting mentioned
> in passing.  What DOES constitute an "indent"?  I know from Essential
> Reference (pg 13) that a Tab gets set every 8 spaces within Python, 
> but does a single space constitute an "indent"?

Either a tab or a space (actually, I think it's up to three spaces) is an
indent. I personally prefer a single space indent.

Mixing tabs and spaces will, with newer versions, give a syntax error,
mostly because it can make things appear to be more or less indented
depnding on the tab settings.

_Deirdre   *   http://www.linuxcabal.org   *   http://www.deirdre.net
       "In /dev/null, no one can hear you scream"