> On 2 Mar 2021, at 23:49, Steven D'Aprano <st...@pearwood.info> wrote:
>
>
> [Barry]
>> All python byte code is interpreted by calling functions. They take
>> time and resources.
>
> That's not entirely correct. Literals such as text strings, ints and
> floats get compiled directly into the byte-code. Now of course there is
> some overhead while executing the byte-code, but that doesn't include
> the heavy cost of a Python function call.
I was thinking of the C functions that are executed in ceval.c to run the
interpreter
for any byte code.
Barry
>
>
> --
> Steve
> _______________________________________________
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/7GTPEGXDAQRKWITBAGYWCU3MNY6JJE6U/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/T25IDROJ7NIUUCQTSVTACMWATH7MBAM3/
Code of Conduct: http://python.org/psf/codeofconduct/