Description
The "Conformance" section states:
A conforming implementation of the array API standard must provide and support all the functions, arguments, data types, syntax, and semantics described in this specification.
A conforming implementation of the array API standard may provide additional values, objects, properties, data types, and functions beyond those described in this specification.
This seems to leave a bit of gray area. For instance, can implementations of functions defined in the standard accept additional arguments not defined by the standard (as long as the default behavior complies with the standard)?
Let's take numpy.asarray
as an example implementation of asarray
.
I know that the fact that the positional arguments are not positional-only is non-conformant: "When a function signature includes a /, positional parameters must be positional-only parameters." Likewise, dtype
should be keyword only. That aside....
Is NumPy's inclusion of an additional positional argument order
considered non-conformant? How about the keyword-only argument like
?