On 8/13/06, Josiah Carlson <[EMAIL PROTECTED]> wrote:
...
If we were to specify anything, I would suggest we define an order of
annotation calling, which would also define a chaining order if
applicable.  Maybe it is completely obvious, but one should never
underestimate what kinds of silly things users will do.

Annotations are not called. They are not like decorators. Decorators typically "wrap" a function. Annotations are just attached to it. A decorator must be a callable. An annotation could be just the number "5". Decorators build on each other, perhaps changing the function's behaviour. Annotations (should!) just accumulate and typically do not change the parameter's behaviour. The PEP does not say how you would define annotations that just accumulate but it seems common sense to me that it would be through a list syntax. I think that the PEP should just say that.

 Paul Prescod

_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to