[pyicu-dev] Subclassing Transliterators
cburgmer at ira.uka.de
Wed Mar 10 09:27:40 PST 2010
Hi list, Andi Vajda
I'm pretty new to PyICU, so please bear with me if this has come up before.
Starting to play around with the Transliterator class, I've seen it has been
exposed pretty recently. Now I'd like to implement my own subclass. In Python.
Implementing means overriding handleTransliterate(). Am I correct if this is
not easily implemented in PyICU?
If I am not mistaken, overriding a C function with Python needs the basic C
implementation to be aware and call the Python function. SWIG calls this
"Cross language polymorphism".
Is there a reasonable way to implement this kind of subclassing? I've been
digging around in the source but can't think of any easy solution.
Cheers and thanks for this wonderful module!
More information about the pyicu-dev