Idea for alternative use for @
Bernhard Herzog
bh at intevation.de
Fri Aug 13 11:23:39 EDT 2004
"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
--
Intevation GmbH http://intevation.de/
Skencil http://sketch.sourceforge.net/
Thuban http://thuban.intevation.org/
More information about the Python-list
mailing list