I had thought there was an obvious class in the standard library to assist with this, but I must have been wrong.
buffer is the closest current contender, but I believe it's on the outer due to some problems with its implementation.
I think the intention is to eventually have a 'bytes' type, but I don't recall if that was going to be mutable or immutable.
Cheers, Nick.
-- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://boredomandlaziness.skystorm.net -- http://mail.python.org/mailman/listinfo/python-list