[Python-Dev] bytes type discussion
Nick Coghlan
ncoghlan at gmail.com
Wed Feb 15 10:01:21 CET 2006
More information about the Python-Dev mailing list
Wed Feb 15 10:01:21 CET 2006
- Previous message: [Python-Dev] bytes type discussion
- Next message: [Python-Dev] bytes type discussion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 | ncoghlan at gmail.com | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org
- Previous message: [Python-Dev] bytes type discussion
- Next message: [Python-Dev] bytes type discussion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list