[Python-Dev] Attribute strings?

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant