[Python-Dev] Attribute strings? (original) (raw)

Guido van Rossum guido at python.org
Sun Aug 8 23:04:11 CEST 2004


Has anyone suggested the following?

Not AFAIK.

Create a new kind of string, not a docstring, to hold annotations, etc.

"""@annotate whatever""" or even ""@" whatever"""

The first is a valid string literal now, and thus gets the same fate as [decorators] -- lots of people get very uncomfortable at the ambiguity of assigning a new meaning to something that was legal syntax before (even if it was meaningless).

The second is not a valid string literal now -- doesn't that cause the same problems for Leo as @decorators?

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list