[Python-3000] Conventions for annotation consumers (was: Re: Draft pre-PEP: function annotations)

Paul Prescod paul at prescod.net
Tue Aug 15 01:18:14 CEST 2006

On 8/14/06, Collin Winter <collinw at gmail.com> wrote:
> What would the rule be about top-level types? Would you have to use a
> list, or could a set or dict be used?

I argue to restrict to a list for the following reasons:

1. Better to just pick something for visual consistency (someone said they
liked tuples but I find all of the rounded parens confusing)

 2.  May want to use other types for other meanings in the future.

 3. What do you do with the keys of the dictionary? Is this back to
connecting decorators to annotations by name or something? The string
namespace is not very managable.

 Paul Prescod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20060814/4deed1fd/attachment.htm 

More information about the Python-3000 mailing list