Deprecate tabs for indenting (was Re: Indenting with tabs vs spaces)
Steve Lamb
grey at despair.dmiyu.org
Tue Dec 4 10:34:32 EST 2001
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.
--
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