[Python-Dev] PEP 550 v3
Yury Selivanov
yselivanov.ml at gmail.com
Tue Aug 22 02:12:45 EDT 2017
On Tue, Aug 22, 2017 at 2:06 AM, Koos Zevenhoven <k7hoven at gmail.com> wrote:
[..]
>> There will be an optimization: if the LC is empty, we will push NULL
>> to the stack, thus avoiding the cost of allocating an object.
>>
> But if LCs are immutable, there needs to be only one empty-LC instance. That
> would avoid special-casing NULL in code.
Yes, this is true.
Yury
More information about the Python-Dev
mailing list