Re: [xml] I'm lost in generator.py...



I wonder if the correct handling for this is not to simply populate
all the related classes with the associated methods, 1/ that sounds
more othogonal dropping an arbitrary selection when both class could
perfectly claim the method as useful 2/ it sounds like the implementation
would be trivial, simply by removing "if found == 1: break" from the
loop forcing to go over all entries.

 I tried it here, libxml2.py grew from 213077 bytes to 238581 bytes
indicating that some functions were now dispatched to more classes
and the regression tests were still okay. Can you try this, I'm sure
it's the best way to proceed,

Hm. rngs.RelaxNGSetSchema(reader) looks somewhat bizarre to me,
but okay, that's a matter of taste. The fix is trivial indeed. I'll upload
the binaries.

Thanks.

-sbi





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