From: Martin W. <mar...@gm...> - 2006-09-19 15:43:35
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?".
Thanks,
Martin.
From: Travis O. <oli...@ie...> - 2006-09-19 18:37:25
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
It is basically the same as Py_ssize_t (which is not available until
Python 2.5).
-Travis
From: Martin W. <mar...@gm...> - 2006-09-19 23:07:46
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
> Num...@li...
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion