Bob Ippolito wrote:
> On Feb 14, 2006, at 4:17 PM, Guido van Rossum wrote:
>> (Why would you even think about views here? They are evil.)
> 
> I mention views because that's what numpy/Numeric/numarray/etc.  
> do...  It's certainly convenient at times to have that functionality,  
> for example, to work with only the alpha channel in an RGBA image.   
> Probably too magical for the bytes type.

The key difference between numpy arrays and normal sequences is that the 
length of a sequence can change, but the shape of a numpy array is essentially 
fixed.

So view behaviour can be reserved for a dimensioned array type (if the numpy 
folks ever find the time to finish writing their PEP. . .)

Cheers,
Nick.

-- 
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to