[Python-3000] Draft pre-PEP: function annotations

Nick Coghlan ncoghlan at gmail.com
Mon Aug 14 03:40:43 CEST 2006


Paul Prescod wrote:
> If we get past the meta-discussion, I don't really see any disagreement 
> left. I'll grit my teeth and avoid commenting on the meta-discussion. ;)

Ah, so I'm not the only one doing that then };>

> My proposed text for the PEP is as follows:

Generally +1, except for this bit:

> "In Python 3000, semantics will be attached to the following types: 
> objects of type string (or subtype of string) are to be used for 
> documentation (though they are not necessarily the exclusive source of 
> documentation about the type). Objects of type list (or subtype of list) 
> are to be used for attaching multiple independent annotations."

Interpretations of string & list subtypes should be up to whoever creates 
those subtypes - it's only the builtins themselves that python-dev should be 
the authority for.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list