[Python-Dev] Attribute strings?

Edward K. Ream edreamleo at charter.net
Sun Aug 8 22:58:24 CEST 2004


Has anyone suggested the following?

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

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

Pros: Open ended possibilities, might quiet dissent, could be placed before
function or inside it.

Biggest drawback: something that looks like a string will affect generated
code.

thinking-inside-the-string'ly yours,

Edward
--------------------------------------------------------------------
Edward K. Ream   email:  edreamleo at charter.net
Leo: Literate Editor with Outlines
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------





More information about the Python-Dev mailing list