how can I subclass a string (str)?

Martin v. Löwis loewis at informatik.hu-berlin.de
Tue Aug 13 14:22:01 EDT 2002


"Jason R. Coombs" <jaraco at spamblocker.sandia.gov> writes:

> Perhaps my approach to this problem is all wrong.  Are there any
> suggestions for creating an elegant solution to the problem
> described?

If you want a variant of mutable strings, you should inherit from
UserString.MutableString.

Regards,
Martin




More information about the Python-list mailing list