[issue995907] memory leak with threads and enhancement of the timer class

Antoine Pitrou report at bugs.python.org
Sat Feb 14 17:52:20 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

I can't understand problem number 1 either. I suspect it is a
misunderstanding by the poster, since he is talking about a "destructor
of the c++ based library" and there's no c++ code in the interpreter.

As for number 2, it is a legitimate feature request. However, since the
current Timer class is very inefficient (one separate thread for each
timer), it would make sense to rephrase it as a more general suggestion
to re-implement the Timer class using a single background thread and a
heapq-based priority queue. It would be a good project for someone
wanting to start contributing to the interpreter.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue995907>
_______________________________________


More information about the Python-bugs-list mailing list