[Python-ideas] Was: Annotations (and static typing), Now:Sharing __annotations__

Cem Karan cfkaran2 at gmail.com
Mon Aug 25 04:04:18 CEST 2014


On Aug 24, 2014, at 9:22 PM, Chris Angelico <rosuav at gmail.com> wrote:

> On Mon, Aug 25, 2014 at 11:15 AM, Cem Karan <cfkaran2 at gmail.com> wrote:
>> Because of this, using 'annotizer' as a key is meaningless; there could be many instances live at the same time.
> 
> But that's exactly my point! You don't use "annotizer" as the key, you
> use annotizer. You use the object itself, not the string.

And now I feel dumb... You're right of course, by passing in the object itself, there are no namespace conflicts, inter-project coordination is nil, and on top of it all, you can perform introspection of the annotizer object itself to find out more information about it.  UUIDs aren't required at all.  Right-o, with your permission Chris, I'd like to amend my proposal so that instead of using UUIDs, the annotizer object itself is used as the key.  Depending on what work is like this week, I'll modify my code to do this.

Thanks,
Cem Karan



More information about the Python-ideas mailing list