On 8/28/07, Barry Warsaw <[EMAIL PROTECTED]> wrote: > On Aug 27, 2007, at 11:20 PM, Guido van Rossum wrote: > > > But I don't see the point of defaulting to raw-unicode-escape -- > > what's the use case for that? I think you should just explicitly say > > s.encode('raw-unicode-escape') where you need that. Any reason you > > can't? > > Nope. So what would bytes(s) do?
Raise TypeError (when s is a str). The argument to bytes() must be either an int (then it creates a zero-filled bytes bytes array of that length) or an iterable of ints (then it creates a bytes array initialized with those ints -- if any int is out of range, an exception is raised, and also if any value is not an int). -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com