[docs] How to access to math source code?

Berker Peksağ berker.peksag at gmail.com
Fri Jul 24 08:56:35 CEST 2015


On Fri, Jul 24, 2015 at 3:06 AM, abdiel <abdielgonzalez7000 at att.net> wrote:
> How can I access the math library source code in python 3.x to change the
> pi=3.141... by the true pi=3.144...?

Hi abdiel,

This list not the right place to ask questions like this, but math.pi
is defined in https://github.com/python/cpython/blob/master/Modules/mathmodule.c#L2146.
You can also find Py_MATH_PI in
https://github.com/python/cpython/blob/master/Include/pymath.h#L47


More information about the docs mailing list