[Python-Dev] Re: adding a bytes sequence type to Python
mal at egenix.com
Wed Aug 18 11:02:40 CEST 2004
Paul Prescod wrote:
> M.-A. Lemburg wrote:
>> We already have a number of read-write types for storing binary
>> data, e.g. arrays, cStringIO and buffers. Inventing yet another
>> way to spell binary data won't make life easier.
> The point is canonicalize one and start to make APIs that expect it.
> Otherwise we will never make the leap from the bad habit of using
> strings as byte arrays.
> Can you pass arrays to the write() function? Can
> you decode buffers to strings? A byte array type would have a certain
> mix of functions and API compatibility that is missing from the plethora
> of similar thingees.
Wouldn't it be possible to extend the existing buffer type
to meet those standards ?
Professional Python Services directly from the Source (#1, Aug 18 2004)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
More information about the Python-Dev