Sha256: 02e137c3d79e8f1236c41f9a16859dc2cd3b3b8ca178d0b7c777e40314904ebc

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

.. meta::
   :robots: index,follow
   :description: ndtypes
   :keywords: ndtypes, buffer protocol

.. sectionauthor:: Stefan Krah <skrah at bytereef.org>


Buffer protocol
===============

ndtypes supports conversion from PEP-3118 format strings to datashape:

.. doctest::

   >>> from ndtypes import ndt
   >>> ndt.from_format("T{<b:a:Q:b:}")
   ndt("{a : <int8, b : uint64}")


Note that there are a couple of open issues around the buffer protocol,
e.g. https://bugs.python.org/issue26746 .





Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ndtypes-0.2.0dev8 ext/ruby_ndtypes/ndtypes/doc/ndtypes/buffer-protocol.rst
ndtypes-0.2.0dev6 ext/ruby_ndtypes/ndtypes/doc/ndtypes/buffer-protocol.rst
ndtypes-0.2.0dev5 ext/ruby_ndtypes/ndtypes/doc/ndtypes/buffer-protocol.rst
ndtypes-0.2.0dev4 ext/ruby_ndtypes/ndtypes/doc/ndtypes/buffer-protocol.rst