Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are rich comparisons (PEP 207) implemented? #2390

Closed
dbischof90 opened this issue May 20, 2024 · 0 comments
Closed

Are rich comparisons (PEP 207) implemented? #2390

dbischof90 opened this issue May 20, 2024 · 0 comments

Comments

@dbischof90
Copy link

Hi,

I’m currently evaluating whether using Python.NET can yield an ergonomic solution for a problem at work.

I’m essentially dealing with some form of an array type and would like to do operations that are comparable to numpy, e.g.

c = a > b
assert type(c) ==MyArrayType

I can’t really find a conclusive answer to that in the source code - you mention “rich comparisons” in a few type definitions, however your tests (TestOperator.cs) only cover simple comparisons.

Is it possible to implement those in the client code?

@pythonnet pythonnet locked and limited conversation to collaborators May 20, 2024
@lostmsu lostmsu converted this issue into discussion #2391 May 20, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant