(-1)**1000

ast nomail at invalid.com
Wed Oct 22 04:27:34 EDT 2014


Hello

If i am writing (-1)**1000 on a python program, will the
interpreter do (-1)*(-1)*...*(-1) or something clever ?

In fact i have (-1)**N with N an integer potentially big.

I do some tests that suggest that Python is clever

thx




More information about the Python-list mailing list