functions, optional parameters

Chris Angelico rosuav at gmail.com
Sun May 10 10:39:57 EDT 2015


On Sun, May 10, 2015 at 9:25 PM, Dave Angel <davea at davea.name> wrote:
> On 05/09/2015 11:33 PM, Chris Angelico wrote:
>> What you could have is "late-binding semantics, optional early binding
>> as an optimization but only in cases where the result is
>> indistinguishable". That would allow common cases (int/bool/str/None
>> literals) to be optimized, since there's absolutely no way for them to
>> evaluate differently.
>>
>
> Except for literals, True, False and None, I can't see any way to optimize
> such a thing.

I did specifically say "literals" :)

ChrisA



More information about the Python-list mailing list