Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

> This PR moves the constant for the name from `co_names` to `co_consts`. There 
> is no duplication.

But if there is an initializer, the name is left in `co_names` too.

I don't think this (as well as possible performance difference) is important. 
My only concerns are about subtle behavior differences.

For example, is the name always interned (even if long or non-ASCII)? Does any 
code depend on interning keys in __annotations__? (There is a code that depends 
on interning keys in type.__dict__).

----------

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

Reply via email to