[Python-Dev] Byte string class hierarchy

M.-A. Lemburg mal at egenix.com
Thu Aug 19 16:49:27 CEST 2004


Neil Schemenauer wrote:
> On Thu, Aug 19, 2004 at 11:21:38AM +0200, M.-A. Lemburg wrote:
> 
>>I assume the picture will look more like this:
>>
>>basesequence
>>   mutable
>>      basebytes
>>	   bytes
>>	   array
>>	   cStringIO
>>	   mmap
>>   immutable
>>      unicode
>>      tuple
>>basenumber
>>   integer
>>   float
>>   decimal
>>   complex
> 
> 
> Inheritance is overrated. :-)  For example, I think mutability may
> be an orthogonal property.  Also, I don't think cStringIO is
> sequence-like, it's more like a file.

This was just a rough sketch.

I agree that inheritance is overrated, but in absence of well-defined
interfaces, it often helps :-)

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Aug 19 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 mailing list