Larry Hastings <la...@hastings.org> added the comment:

Hmm.  If o.__annotations__ is None, should this function set the empty dict on 
the object?  That seems slightly too opinionated to me.  On the other hand, the 
user would probably expect that they could change the dict they got back.  (If 
Python shipped with a builtin "frozen dict", I suppose I could safely return 
one of those.)


Note that the danger of this happening should drop to about zero, assuming I 
push through my other small patch:

https://bugs.python.org/issue43901

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43817>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to