-
Notifications
You must be signed in to change notification settings - Fork 199
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
Additional lifted operators #2945
Comments
Side-note: I wonder if there is some way to support the following behavior using a similar approach: from parsl import python_app
@python_app
def test(a, b):
c = a + 1
d = b + 1
return c, d
c_future, d_future = test(1, 2) I wonder if users might expect this to be possible... |
I don't think this case is distinguishable from returning a tuple |
from parsl import python_app
@python_app
def test(a, b):
c = a + 1
d = b + 1
return (c, d)
future = test(1, 2) The above always works, of course. But in "normal Python", one might expect to be able to do Unless you meant something else? |
I think it would need the appfuture to be iterable (so as to generate Futures for each possible future element, to them be assigned to the receiving |
Ah, that is a good point. You're right. The |
Hello @benclifford , can I be assigned this task. It seems interesting, kindly provide any resources that can be of help in resolving this. Thank you. |
hello @benclifford , can i work on this issue? |
I think you can go ahead @mirembe-mariam since I got occupied with some other stuffs. |
Is your feature request related to a problem? Please describe.
Following up #2904, we should consider adding additional "lifted" operators based on the special method names list.
Describe the solution you'd like
More lifted operators!
Describe alternatives you've considered
No more lifted operators, but that would be sad 😢
Additional context
We need to decide which methods to implement and which to not implement. Actually implementing it and adding tests is trivial. I am happy to do that.
The main category to look at, in my opinion, is the list of numeric types. Which of these should we be implementing? There are a lot, and not all of them are necessarily worthwhile to include.
My proposal at the moment is to include the following:
with the following potentially also being worthwhile:
But at the same time, this then raises questions to the user: how do they know what will and won't work? Maybe we just add documentation somewhere with a table?
The text was updated successfully, but these errors were encountered: