Skip to content

QuadPrecision(1).data raises TypeError #205

@jorenham

Description

@jorenham

on the current main (d90519b):

>>> import numpy as np; from numpy_quaddtype import *
>>> np.longdouble(1).data
<memory at 0x70fe85d56200>
>>> QuadPrecision(1).data
Traceback (most recent call last):
  File "<python-input-2>", line 1, in <module>
    QuadPrecision(1).data
TypeError: NumPy scalar QuadPrecision('1.0e+000', backend='sleef') can only exported as a buffer without format.

I expected it to return an instance of builtins.memoryview, analogous to np.longdouble(1).data

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions