Guido van Rossum wrote: > there's collusion between the bytes and unicode > types so that this works: > > b = b"abc" > b[1:2] = "X"
Is this intentional? Doesn't it run counter to the idea that text and bytes should be clearly separated? > Unfortunately taking the buffer API away from unicode makes things > fail early If the buffer API distinguishes between text and binary buffers, then the binary streams can just accept binary buffers only, and unicode can keep its buffer API. -- Greg _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
