Idea for alternative use for @

Colin J. Williams cjw at sympatico.ca
Fri Aug 13 13:38:53 EDT 2004



Bernhard Herzog wrote:
> "Paul McGuire" <ptmcg at austin.rr._bogus_.com> writes:
> 
> 
>>I thought it might be useful to include some sort of compiler directive like
>>a C++ pragma to represent this kind of compile-time meta information.  And
>>it struck me that '@' would be an excellent marker for such a statement,
>>something like:
>>@tabsize 8
> 
> 
> FWIW, that particular directive already exists.  To set the tab width to
> 4 you can do either
> 
> # :ts=4
> 
> or if you prefer emacs style:
> 
> # tab-width:4
> 
> It's an undocumented (mis-)feature of CPython, though, IIRC.
> 
>    Bernhard
> 
tabs are a pain.  The recommended approach is to replace them with spaces.

Colin W.




More information about the Python-list mailing list