[Twisted-Python] Patch for flavors.py?
jasper at peak.org
Fri Apr 11 09:53:41 EDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
On Fri, 11 Apr 2003, Brian Warner wrote:
> Jasper Phillips <jasper at peak.org> writes:
> > I was talking with Kevin Turner at the pub last night after the "Porpig"
> > meeting, and he mentioned having the same problem with circular references I
> > was having, so I offered to post the klu... err, patch I had for the problem.
> Jasper: thanks so much for investigating this one!
I didn't have much choice, as the objects I'm transporting are circular. ;-)
> I think Glyph finally nailed this bug in some code that went into CVS a few
> days ago. It should be in the latest release (1.0.4a2). Could you give that a
> try and see if it fixes your original bug? The test case that exarkun added
> now passes, but I'd like to make sure your code is now working too.
Unfortunately it doesn't work for me. :-(
The simple test case at the end of test_newjelly.py _does_ work, but the
orignal more verbose test I posted (using pb) doesn't work, getting the same
__dict__ error as before.
So I tried replacing jelly.py with newjelly.py, with my fingers crossed.
Both the unit test and my "acceptence" test then work, but my code still
doesn't work... Arg!
The error is from the assertion on line 40 of crefutil.py:
class NotKnown: |
def addDependant(self, mutableObject, key): |
assert not self.resolved <---------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----
More information about the Twisted-Python