Deprecate tabs for indenting (was Re: Indenting with tabs vs spaces)

Erik de Castro Lopo nospam at mega-nerd.com
Tue Dec 4 21:16:57 CET 2001


Steve Lamb wrote:
> 
> On Tue, 04 Dec 2001 08:25:23 GMT, Erik de Castro Lopo <nospam at mega-nerd.com>
> wrote:
> > Easy. Tabs everywhere:
> 
> > some_dict = {
> >       'Jane':{'Age':'21', 'Dept':'0001', 'Ext':'1234'},
> >       'John':{'Age':'22', 'Dept':'0010', 'Ext':'5678'},
> >       'Jeff':{'Age':'23', 'Dept':'0100', 'Ext':'9009'},
> >       'Jody':{'Age':'24', 'Dept':'1000', 'Ext':'8765'},
> >       'Jeny':{'Age':'25', 'Dept':'0110', 'Ext':'4321'}
> >       }
> 
> > Beautiful!!!!
> 
>     Uh, no, rather nasty in fact.  Face it, that's the one case where tabs
> fail and is so common as to prevent tabs from being ever used in code.

Please explian to us rational people why that is nasty.

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo  nospam at mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
Perl  : executable line noise
Python: executable pseudo-code



More information about the Python-list mailing list