diff options
author | Guido van Rossum <guido@dropbox.com> | 2016-08-15 09:12:52 -0700 |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2016-08-15 09:12:52 -0700 |
commit | 0a891d70ded5fa8b1e6491529a3b531f521b5ae1 (patch) | |
tree | e26a1c826888bbd3c40b7775406062ab1b32cca5 /Modules/cmathmodule.c | |
parent | 6349612a8e5d5fcb3405e59242b6a2df3127585a (diff) | |
download | cpython-git-0a891d70ded5fa8b1e6491529a3b531f521b5ae1.tar.gz |
Issue #12345: Add mathemathcal constant tau to math and cmath.
Patch by Lisa Roach. See also PEP 628.
Diffstat (limited to 'Modules/cmathmodule.c')
-rw-r--r-- | Modules/cmathmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c index cba42a7257..0e7d4db96d 100644 --- a/Modules/cmathmodule.c +++ b/Modules/cmathmodule.c @@ -1239,6 +1239,7 @@ PyInit_cmath(void) PyModule_AddObject(m, "pi", PyFloat_FromDouble(Py_MATH_PI)); PyModule_AddObject(m, "e", PyFloat_FromDouble(Py_MATH_E)); + PyModule_AddObject(m, "tau", PyFloat_FromDouble(Py_MATH_TAU)); /* 2pi */ /* initialize special value tables */ |