recursive closure
Hello, Can someone explain me why gc(CPython) can not collect recursive closure's cycle reference? There is no __del__ there, why gc can not collect? After many times gc collect, i also see objects like below in gc.garbage. So i ask why gc can not collect them? Thanks a lot. (, ), , , [1], , (, ), , , [1], , (, ), , , [1], , (, ), , , [1], , (, ), , , [1], , (, ), , , [1], , (, ), , The test program is below. #!/usr/bin/env python import ipdb import gc gc.set_debug(gc.DEBUG_LEAK) def A(): N = [1] def aa(n): if n in N: return 1 else: return n * aa(n-1) x = 33 + aa(10) #ipdb.set_trace() print x if __name__ == '__main__': while xrange(1000): A() -- Best Li Tianqing-- https://mail.python.org/mailman/listinfo/python-list
After install python2.7.3 from source code, no module named array
Hello, Right now, i install python2.7.3 from source code, but when use it to run some script. It raises no module exception. Dose `make` not compile array into builtin? -- Best Li Tianqing-- https://mail.python.org/mailman/listinfo/python-list
After install python2.7.3 from source code, no module named array
I am sorry, i do not install, i just make, and then use the python under source code. If you run 'make install' then some lib will compile and then will no problem there. Hello, Right now, i install python2.7.3 from source code, but when use it to run some script. It raises no module exception. Dose `make` not compile array into builtin? -- Best Li Tianqing -- https://mail.python.org/mailman/listinfo/python-list