Thomas Lotze wrote:

> Is there a way for multiple StringIO objects to share a buffer of
> data, or do I have to give up on subclassing StringIO for this
> purpose? (An alternative would be a tokenizer class that has a
> StringIO instead of being one and do the file pointer housekeeping
> in there.)

I'm not sure if I understand the problem right, but there is a rule
of thumb: 
Prefer delegation to inheritance. If you can use delegation, avoid
inheritance. Esp. on python, where (from the point of view of usage)
there is no distinction between delegation or inheritance. 

Mathias
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to