Skip to content

Mix & match behavior of array objects from different libraries #773

Answered by rgommers
leofang asked this question in Q&A
Discussion options

You must be logged in to vote

In https://data-apis.org/array-api/latest/purpose_and_scope.html#out-of-scope it says:

Non-goals for the API standard include:
...
Making it possible to mix multiple array libraries in function calls.
Most array libraries do not know about other libraries, and the functions they implement may try to convert “foreign” input, or raise an exception. This behaviour is hard to specify; ensuring only a single array type is used is best left to the end user.

We have tended to not specify exception types and other such things that are out of scope, undefined behavior, etc. TypeError seems clearly the correct exception type, but I'm not sure it's a good idea to document this under the Python opera…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kgryte
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Question General question.
3 participants
Converted from issue

This discussion was converted from issue #399 on April 04, 2024 00:45.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy