On Tue, Dec 1, 2009 at 12:09 AM, Robert Bradshaw
<[email protected]> wrote:
>
>> BTW, I wouldn't mind extending the string input argument conversion
>> support
>> to everything that supports the buffer protocol.
>
> That might be interesting, though one difficulty is that buffers in
> general don't have a intrinsic notion of length. (Technically, nor do
> strings, null terminated strings encoded with null-free encodings are
> common enough to make char* useable.)
>

I see, then in the near future I'll be able to create a numpy array
with "unsigned char" dtype (let say, for storing a 8-bit image?). But
at some point, I'll mistakenly pass these arrays to something
accepting 'bytes'... No, -1, do not do that please. Explicit is better
than exlicit. Error should never pass silently.



-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to