On Fri, Aug 23, 2013 at 8:11 AM, Sebastian Berg <sebast...@sipsolutions.net> wrote: >> So this is giving us a 64 bit int--not a bad compromise, but not a >> python long--I've got to wonder why the alias is there at all. >> > It is there because you can't remove it :).
sure we could -- not that we'd want to.... >> So while np.long is an alias to python long--it apparently is >> translated internally as 64 bit -- everywhere? >> > Not sure how a python long is translated... The big mystery! > An np.int_ is a platform long, since the python ints are C longs. It is > a bit weird naming, but it is transparent. Check > http://docs.scipy.org/doc/numpy-dev/reference/arrays.scalars.html#built-in-scalar-types cool, thanks. > you got everything platform dependend there really. `intc` is an int, > `int_` is a long, and you got `longlong`, as well as `intp` which is an > ssize_t, etc. great, thanks. That's helpful. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion