On Nov 15, 2007 12:52 PM, amaury.forgeotdarc <[email protected]> wrote: > Question 1: Should the interpreter register all types with PyType_Ready()? > Many types seem to avoid it.
This is because for many static types it barely matters. It would be better if we could initialize all of them explicitly, but I'm not looking forward to the ream of extra Init functions that will need. Feel free to contribute though. :-) > Question 2: To reproduce the problem, run the following code: > def f(): > while True: > for a in iter(range(0,1,10**20)): > pass > f() > And watch the memory used by the process. > How do we test this in a unittest? Write a short test that will leak when run by a debug interpreter using "python Lib/test/regrtest.py -R:: <testname>". That's how we find most leaks. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000-checkins mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000-checkins
