Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why does exponentiation result in a memory leak?

The code

for i in range(17000000):
   10^(1/4)
input("Press enter to finish")

results in a 1GB memory leak. Why? In particular, why doesn't garbage collection deal with this?