Tabs versus Spaces in Source Code ('semantic' vs. arbitrary indentation)

Andy Sy andy at neotitans.com
Wed May 17 14:40:27 EDT 2006


Carl J. Van Arsdall wrote:

>> Next major objection then, how can one practically use 'tabs as
>> semantic indentation' without screwing up formatting of code like
>> the below??
>>
>>
>>   def sqlcall():
>>       cursor.execute('select id, item, amount, field4, field5, field6'+
>>                      'from table1 where amount>100')
>>
>>   
> Why couldn't you tab your third line over as close as possible to the 
> start of the quote then use a couple spaces?  Then the tabs would work 
> just fine and you could still have your pretty line.


This will break if someone tries to view my code using different
tab settings from the one I'm using.



-- 
It's called DOM+XHR and it's *NOT* a detergent!




More information about the Python-list mailing list