From: Martin <md...@md...> - 2003-01-09 12:07:49
|
tor 2003-01-09 klockan 10.38 skrev Zoltan Felleg: > thanks, i'll give it a try not using class methods/attributes for the=20 > context/verifycb. (stupid me, the last thing i would think about were=20 > cyclic references). I just had an idea, and it worked out. A simple way to avoid the problem is to make verifycb a static method: def verifycb(conn, cert, errnum, depth, ok): return ok verifycb =3D staticmethod(verifycb) The static method has no reference to any instance objects and will therefore not create a cycle. /Martin |