[Python-3000] Fwd: Conventions for annotation consumers (was: Re: Draft pre-PEP: function annotations) (original) (raw)
Collin Winter collinw at gmail.com
Thu Aug 17 15:01:13 CEST 2006
- Previous message: [Python-3000] Fwd: Conventions for annotation consumers (was: Re: Draft pre-PEP: function annotations)
- Next message: [Python-3000] Fwd: Conventions for annotation consumers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 8/16/06, Paul Prescod <paul at prescod.net> wrote:
Okay, you're the boss. The conversation did go pretty far afield but the main thing I wanted was just that if a user wanted to have annotations from framework 1 and framework 2 they could reliably express that as
def foo(a: [Anno1, Anno2]): All that that requires is a statement in the spec saying: "If you're processing annotations and you see an annotation you don't understand, skip it. And if you see a list, look inside it rather than processing it in some proprietary fashion."
So, time for an embarrassing confession: I had a bit of a eureka moment this morning, and I think I finally understand where you were coming from with this idea. I honestly don't know what I thought you were proposing, but now that I get it, my old conception seems like rubbish. Consider the dict-based proposal withdrawn.
Apologies for my part in dragging this discussion into a triple-digit comment count : )
Collin Winter
- Previous message: [Python-3000] Fwd: Conventions for annotation consumers (was: Re: Draft pre-PEP: function annotations)
- Next message: [Python-3000] Fwd: Conventions for annotation consumers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]