42**1000000 is CPU time free

Steven D'Aprano steve at pearwood.info
Sun Jul 26 00:52:56 EDT 2015


On Sat, 25 Jul 2015 07:35 am, candide wrote:

> Thanks to all for your response, I was not aware that the interpreter
> evaluated  pure litteral expressions at compile time.

This is an implementation-dependent optimization, so different versions of
Python may do more, or less, or even no, optimization.




-- 
Steven




More information about the Python-list mailing list