If you subclass strings you have to do your magic in __new__ rather than __init__. It receives the same arguments as you would normally expect to go to __init__.
(Except cls rather than self). Best Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list