> Thanks for replying, I have thought about subclassing but how to do it > dynamically. The only one way I can think of is dynamically generate Python is entirely dynamic. :-) You can declare a class anywhere. -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/twitter