<br><div><span class="gmail_quote">On 8/13/06, <b class="gmail_sendername">Josiah Carlson</b> <<a href="mailto:jcarlson@uci.edu">jcarlson@uci.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
...<br>If we were to specify anything, I would suggest we define an order of<br>annotation calling, which would also define a chaining order if<br>applicable. Maybe it is completely obvious, but one should never<br>underestimate what kinds of silly things users will do.
<br></blockquote><div><br>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.
<br><br> Paul Prescod<br><br></div></div>