Commit eb38d241 authored by Guido van Rossum's avatar Guido van Rossum

DECREF pi and e after inserting in symbol table.

parent 33049756
......@@ -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);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment