On 11/4/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > I'm beginning to settle on the following: > > > > 1. concrete types: bytes (immutable) and bytearray (mutable) > > 2. their common ABC: ByteString (derives from Sequence) > > I prefer ByteSequence. Bytes and buffer are a sequence of bytes.
Well, a string is a sequence with additional behavior (the set of methods common to PyUnicode, PyString, PyBuffer). So ByteString is more specific. > > 3. the ABC corresponding to buffer-API objects: MemoryBlock > > What do you think about RawData, RawBlock, RawView or RawSequence? From > my point of view a PyBuffer allows me to access the raw data of a > PyString or PyBytes. "Raw" has lots of different connotations (e.g. raw_input() in 2.x). I like "Memory" best since it indicates directly that it's connected to the computer's (primary) memory. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ 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
