Promoting Python
Marko Rauhamaa
marko at pacujo.net
Wed Apr 6 14:50:40 EDT 2016
Random832 <random832 at fastmail.com>:
> On Wed, Apr 6, 2016, at 14:23, Marko Rauhamaa wrote:
>> Chris Angelico <rosuav at gmail.com>:
>> > Plus, anyone could implement a Python interpreter with TCE.
>>
>> Tricky in practice because None is the default return value.
>>
>> If the programmer were careful to return the value of the tail call,
>> it can be eliminated.
>
> Well, the interpreter can know that the calling function doesn't
> return anything (returns None). Maybe it could pass a secret argument
> to the called function telling it not to return its value and to
> return None instead.
Oh, I forgot about the secret whisper-with-a-wink channel...
Marko
More information about the Python-list
mailing list