Deprecate tabs for indenting (was Re: Indenting with tabs vs spaces)
Erik de Castro Lopo
nospam at mega-nerd.com
Tue Dec 4 03:25:23 EST 2001
Steve Lamb wrote:
>
> On Mon, 03 Dec 2001 20:46:10 GMT, Erik de Castro Lopo <nospam at mega-nerd.com>
> wrote:
> > You really ought to try using nothing but tabs for indentation and setting
> > the tab width in your editor to whatever you prefer.
>
> > This is so easy and works **SO** well.
>
> Until you answer it here is the only reply you will get because I am tired
> of reiterating that it is NOT "style" and "preference".
>
> 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'}
> }
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!!!!
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo nospam at mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
"I think there is a world market for maybe five computers."
-- Thomas Watson, Chairman of IBM, 1943
More information about the Python-list
mailing list