speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a memory leak in the Python library


From: Chris Brannon
Subject: a memory leak in the Python library
Date: Sat, 31 Jul 2010 07:31:24 -0500

Rui Batista wrote:
> S??b, 2010-07-31 ??s 05:38 -0500, Chris Brannon escreveu:
> > Also, self._conn should probably be a weak reference. Otherwise, the
> > following snippet of code is not exception-safe.
*SNIP*
> Agreed.

Actually, weak references won't quite work, either.  I think that the
solution is to factor callback handling out of SSIPClient, and into
a _CallbackHandler class.
I'm working on that right now.

> This is good but we might have a problem. Python's with statement is
> present just in python 2.6 and above, if we implement just the methods
> we can be compatible with python 2.5 and bellow,

Exactly.

-- Chris



reply via email to

[Prev in Thread] Current Thread [Next in Thread]