[Numpy-discussion] a list of all available integer dtypes

Valentin Haenel valentin@haenel...
Fri Aug 9 17:57:35 CDT 2013


Hi,

* Matthew Brett <matthew.brett@gmail.com> [2013-08-10]:
> On Fri, Aug 9, 2013 at 3:17 PM, Robert Kern <robert.kern@gmail.com> wrote:
> > On Fri, Aug 9, 2013 at 11:06 PM, Valentin Haenel <valentin@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