Skip to main content
Ctrl+K
This is documentation for an unstable development version.Switch to stable version
NumPy v2.3.dev0 Manual - Home NumPy v2.3.dev0 Manual - Home
  • User Guide
  • API reference
  • Building from source
  • Development
  • Release notes
  • Learn
    • NEPs
dev2.2 (stable)2.12.01.261.251.241.231.221.211.201.191.181.171.161.151.141.13
  • GitHub
  • User Guide
  • API reference
  • Building from source
  • Development
  • Release notes
  • Learn
  • NEPs
dev2.2 (stable)2.12.01.261.251.241.231.221.211.201.191.181.171.161.151.141.13
  • GitHub

Section Navigation

  • NumPy’s module structure
  • Array objects
    • The N-dimensional array (ndarray)
    • Scalars
    • Data type objects (dtype)
      • numpy.dtype
      • numpy.dtype.type
      • numpy.dtype.kind
      • numpy.dtype.char
      • numpy.dtype.num
      • numpy.dtype.str
      • numpy.dtype.name
      • numpy.dtype.itemsize
      • numpy.dtype.byteorder
      • numpy.dtype.fields
      • numpy.dtype.names
      • numpy.dtype.subdtype
      • numpy.dtype.shape
      • numpy.dtype.hasobject
      • numpy.dtype.flags
      • numpy.dtype.isbuiltin
      • numpy.dtype.isnative
      • numpy.dtype.descr
      • numpy.dtype.alignment
      • numpy.dtype.base
      • numpy.dtype.metadata
      • numpy.dtype.newbyteorder
      • numpy.dtype.__reduce__
      • numpy.dtype.__setstate__
      • numpy.dtype.__class_getitem__
      • numpy.dtype.__ge__
      • numpy.dtype.__gt__
      • numpy.dtype.__le__
      • numpy.dtype.__lt__
    • Data type promotion in NumPy
    • Iterating over arrays
    • Standard array subclasses
    • Masked arrays
    • The array interface protocol
    • Datetimes and timedeltas
  • Universal functions (ufunc)
  • Routines and objects by topic
  • Typing (numpy.typing)
  • Packaging
  • NumPy C-API
  • Array API standard compatibility
  • CPU/SIMD optimizations
  • Thread Safety
  • Global Configuration Options
  • NumPy security
  • Status of numpy.distutils and migration advice
  • numpy.distutils user guide
  • NumPy and SWIG
  • NumPy reference
  • Array objects
  • Data type objects (dtype)
  • numpy.dtype.__setstate__

numpy.dtype.__setstate__#

method

dtype.__setstate__()#

previous

numpy.dtype.__reduce__

next

numpy.dtype.__class_getitem__

On this page
  • dtype.__setstate__

© Copyright 2008-2025, NumPy Developers.

Created using Sphinx 7.2.6.

Built with the PyData Sphinx Theme 0.16.1.