[Python-3000] Conventions for annotation consumers (was: Re: Draft pre-PEP: function annotations)
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-3000