Idea for alternative use for @

Bernhard Herzog bh at
Fri Aug 13 17:23:39 CEST 2004

"Paul McGuire" <ptmcg at> 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.


Intevation GmbH                       

More information about the Python-list mailing list