Marc-Andre Lemburg <m...@egenix.com> added the comment: STINNER Victor wrote: > > STINNER Victor <victor.stin...@haypocalc.com> added the comment: > > Le mercredi 09 juin 2010 13:06:53, vous avez écrit : >> "s" accepts bytes via the buffer interface > > No. "s*" and "s#" do accept any buffer compatible object (including bytes and > bytearray), but "s" doesn't. > > I fixed recently the documentation about that.
Hmm, that sounds like an oversight to me. Why should "s" not accept bytes when "s#" and "s*" do ? The only difference between "s" and "s#" is that you work with NUL-terminated strings as opposed to binary or text data with embedded NULs. Even Unicode objects can contain embedded NULs, so from that perspective there's no difference. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8949> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com