Inada Naoki <songofaca...@gmail.com> added the comment:

> If docstring is not in co_consts, all co_consts are empty tuple. The empty 
> tuple is nearly zero-cost because its a singleton.

My wrong. Two setters will have `(None,)` tuple. But such tuple can be merged 
at compile time for now. And "common const" [1] approach will make them empty 
tuple.

[1] https://github.com/iritkatriel/cpython/pull/27

----------

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

Reply via email to