Skip to content

Simplify lambdify #215

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

Merged
merged 1 commit into from
Feb 9, 2018
Merged

Simplify lambdify #215

merged 1 commit into from
Feb 9, 2018

Conversation

isuruf
Copy link
Member

@isuruf isuruf commented Feb 7, 2018

No description provided.

@@ -4447,7 +4447,7 @@ cdef class _Lambdify(object):
raise ValueError("Size of out incompatible with number of exprs.")
self.unsafe_complex(inp, out)

def __call__(self, inp, *, out=None):
def __call__(self, *args, out=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will stop us from adding a second positional argument in the future. I suppose that's alright since kw-only arguments work well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, any new arguments can be made keyword only.

@bjodah
Copy link
Contributor

bjodah commented Feb 9, 2018

I think it looks good, and I can't think of any cases where this would brake anything.

@isuruf isuruf merged commit ef54593 into symengine:master Feb 9, 2018
@isuruf isuruf deleted the lambdify branch February 9, 2018 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants