Message 400516 - Python tracker

Message400516

Author methane
Recipients Guido.van.Rossum, gvanrossum, iritkatriel, methane, rhettinger, serhiy.storchaka, terry.reedy
Date 2021-08-29.05:33:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630215184.59.0.679860049291.issue36521@roundup.psfhosted.org>
In-reply-to
Content
> 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
History
Date User Action Args
2021-08-29 05:33:04methanesetrecipients: + methane, gvanrossum, rhettinger, terry.reedy, serhiy.storchaka, Guido.van.Rossum, iritkatriel
2021-08-29 05:33:04methanesetmessageid: <1630215184.59.0.679860049291.issue36521@roundup.psfhosted.org>
2021-08-29 05:33:04methanelinkissue36521 messages
2021-08-29 05:33:04methanecreate