[Python-Dev] Attribute strings? (original) (raw)
Guido van Rossum guido at python.org
Sun Aug 8 23:04:11 CEST 2004
- Previous message: [Python-Dev] Attribute strings?
- Next message: [Python-Dev] re: Attribute Strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/)
- Previous message: [Python-Dev] Attribute strings?
- Next message: [Python-Dev] re: Attribute Strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]