Stefan Behnel wrote:
But remember that a bytestring can contain a zero byte (chr(0) in Python 2.x).Aaron Brady wrote:I see. Do I read correctly that 's' is only useful when the argument's position is known?I assume you meant "length".Otherwise you can't know its length or change its reference count.The internal representation of Python byte strings is 0 terminated, so strlen() will work.
-- http://mail.python.org/mailman/listinfo/python-list