Promoting Python

Random832 random832 at fastmail.com
Wed Apr 6 14:44:23 EDT 2016


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.



More information about the Python-list mailing list