Emacs has eaten my python tabs!!!

Sean 'Shaleh' Perry shalehperry at attbi.com
Sun Jan 26 18:49:55 CET 2003

On Sunday 26 January 2003 07:57, Skip Montanaro wrote:
>     Mongryong> Doesn't python rely on tabs?
> Nope.  It relies on indentation.  I believe TAB characters advance the
> indentation to the next multiple of eight columns.
> Skip

more explicitly it relies on whitespace characters.  2 spaces, one tab, it 
does not matter as long as each block is consistent in the type and amount of 
whitespace used.

Because a tab can be redefined to mean different amounts of whitespace and 
generally causes confusion it is standard practice in the Python community to 
only use spaces for indentation.  Emacs usually follows this convention.  
However if the file you load has tabs in it already Eamcs will use tabs 

More information about the Python-list mailing list