Re: [Numpy-discussion] Questions about the array interface.
8 Apr
2005
8 Apr
'05
2:46 a.m.
Oops, sent too fast. Quick correction...
In the world where some of these attributes are optional: If an attribute like __array_offset__ or __array_shape__ isn't present, the C code will know to use zero or the default C-contiguous layout. So the check failed, but the failure case is probably very fast (since a temporary tuple object doesn't have to be built by the array on the fly).
I meant to say "__array_offset__ or __array_stides___". The __array_shape__ attribute would always be required for arrays... Cheers, -Scott
6952
Age (days ago)
6952
Last active (days ago)
0 comments
1 participants
participants (1)
-
Scott Gilbert