Message10011
Logged In: YES
user_id=3066
Looking at the code, it's not quite so trivial as I'd
thought, but not entirely difficult either. I started by
creating a locator that had a reference to the parser object
from xml.parser.expat, but that of course has references to
the ExpatParser, so the cycle still exists.
As long as we're trying to solve the problem for Python 2.1
and newer, though, we can use a locator object that has a
weakref to the ExpatParser object, thereby breaking the
cycle. I like that. ;-) |
|
Date |
User |
Action |
Args |
2007-08-23 14:00:09 | admin | link | issue535474 messages |
2007-08-23 14:00:09 | admin | create | |
|