[Numpy-discussion] a list of all available integer dtypes
Valentin Haenel
valentin at haenel.co
Fri Aug 9 18:57:35 EDT 2013
Hi,
* Matthew Brett <matthew.brett at gmail.com> [2013-08-10]:
> On Fri, Aug 9, 2013 at 3:17 PM, Robert Kern <robert.kern at gmail.com> wrote:
> > On Fri, Aug 9, 2013 at 11:06 PM, Valentin Haenel <valentin at haenel.co> wrote:
> >> I have a quick question: Is there a way to get a list of all available
> >> Numpy integer dtypes programatically?
> >
> > [~]
> > |8> def all_dtypes(cls):
[snip
> or (at least for the standard int dtypes):
>
> np.sctypes['int'] + np.sctypes['uint']
Thanks Matthew and Robert. That was very helpful.
V-
More information about the NumPy-Discussion
mailing list