Hi, I'm trying to build the python bindings from CVS on windows. Everything looks fine with python 2.2, but with python 2.1 the reader6.py test fails complaining that RelaxNGSetSchema is missing. Actually, it's generated but on the relaxNgSchema class instead of xmlTextReader... I interpret the problem as follow: the loop at line 843 in generator.py (for type in ctypes: ...) emits a method for the class when the C type is either the *first or second* argument of the C function. And there lies the problem: some methods have C types that map to python classes both as first and second argument, and thus the class where the method is emitted bacically depends on the order of types in the ctypes list... and that order depends on some dictionary hashing [ouf... 'hope it's more or less clear]. I naively tried the attached patch to give priority to functions where the C type corresponding to the python class comes first, but that breaks tests on relaxNGValidateDoc, reconciliateNs, getBase that all have python mapped types has first and second argument. So, did I miss something entirely? is there an easy fix? I think I'll need some hints to make progress on this. -sbi
Attachment:
generator.py.patch
Description: Binary data