diff options
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r-- | Modules/mathmodule.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 93b24fc2a7..218658f448 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -153,6 +153,8 @@ initmath() m = initmodule("math", math_methods); d = getmoduledict(m); - dictinsert(d, "pi", newfloatobject(atan(1.0) * 4.0)); - dictinsert(d, "e", newfloatobject(exp(1.0))); + dictinsert(d, "pi", v = newfloatobject(atan(1.0) * 4.0)); + DECREF(v); + dictinsert(d, "e", v = newfloatobject(exp(1.0))); + DECREF(v); } |