Deprecate tabs for indenting (was Re: Indenting with tabs vs spaces)
Steve Lamb
grey at despair.dmiyu.org
Mon Dec 3 18:51:27 EST 2001
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'}
}
What if I use 4 and you use 8?
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'}
}
The other way around?
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'}
}
You get it yet? You finally understand that preference SCREWS UP THE
INTENT AND READABILITY OF THE ABOVE EXAMPLE WHICH IS NOT ALL THAT UNCOMMON?
Yeesh. 3 days now and you still haven't address that real and valid concern!
--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
ICQ: 5107343 | main connection to the switchboard of souls.
To email: Don't despair! | -- Lenny Nero, Strange Days
-------------------------------+---------------------------------------------
More information about the Python-list
mailing list