[PyKDE] why pylupdate is written in C++?

Phil Thompson phil at riverbankcomputing.co.uk
Tue Feb 8 10:54:16 GMT 2005


> Hello,
>
> is there any reason why pylupdate was written in C++ rather than in pure
> Python? Would a conversion be welcome?

Because, like pyuic, it is based on the equivalent Qt utility. Yes, a
conversion would be welcome - for Qt 4.

> I had to do some modifies to it to suit my needs (for instance, I use
> UTF-8
> everywhere and I set QTextCodec.setCodecForTr, but pylupdate does not know
> that, nor it has an option to be informed about it), and I ended up doing
> them in a wrapper python script, processing the XML, because it was still
> faster than doing the same in C++.
> --
> Giovanni Bajo

Phil




More information about the PyQt mailing list