[Numpy-discussion] what's the difference between npy_intp and size_t?

Martin Wiechert martin.wiechert at gmx.de
Tue Sep 19 17:59:07 CDT 2006


On Tuesday 19 September 2006 20:37, Travis Oliphant wrote:
> Martin Wiechert wrote:
> > Hi list,
> >
> > Please forgive my ignorance: Is there any difference between npy_intp and
> > size_t. Aren't both "ints just big enough to be safe with pointer
> > arithmetics even on 64 bit architectures?".
>
> size_t is unsigned
> npy_intp is signed
>

(!)

Thanks again, Travis.

> It is basically the same as Py_ssize_t (which is not available until
> Python 2.5).

Out now!
http://www.python.org/2.5

>
> -Travis
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys -- and earn
> cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion




More information about the Numpy-discussion mailing list