Question about math.pi is mutable

wangq at travelsky.com wangq at travelsky.com
Thu Nov 5 21:33:58 EST 2015


Hello, python-list guys:

    I am a newbie of python from Beijing. China. 
    I have a question about "math.pi". 
    As you can see in the attachment, why i can modify "math.pi"?
    (in "mathmodule.c" "pi" is a "static const double")
    
Thank you in advance!

Best Wishes!


More information about the Python-list mailing list