Re: [xml] Release of libxml2-2.5.3

On Sun, Feb 16, 2003 at 01:20:23PM +0100, Stephane Bidoul wrote:
I think the problem is due to the addition of relaxNgValidCtxt
to the reference_keepers list. That reveals a bug that
was there before: as suggested in a previous post, ref is
not in scope at that place.

  yeah, I didn't really looked closely, but that's the only
change I can suspect to produce this.

With python 2.1 it (now?) raises an exception, and with
python 2.2 it seems it reuses the ref variable previously used
in a for loop... but in that case, the generated result
is wrong. In previous releases, it was correct because there
was only one item in reference_keepers (???).

To me, the strangest in that story is python's behaviour...

  Seems local variable scope rules changed, really strange I agree.

Here's the patch I suggest.

  I trust you :-), sounds correct too, applied, thanks !


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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