Skip to content

Improve subs and msubs #100

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 4 commits into from
Sep 30, 2016
Merged

Improve subs and msubs #100

merged 4 commits into from
Sep 30, 2016

Conversation

isuruf
Copy link
Member

@isuruf isuruf commented Sep 29, 2016

No description provided.

Copy link
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

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

Otherwise that looks good. Thanks!

@@ -365,6 +365,21 @@ class DictBasic(_DictBasic, collections.MutableMapping):
def __repr__(self):
return self.__str__()

def get_dict(*args):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a docstring explaining what this function is doing?

d[K.thisptr] = V.thisptr
return c2py(symengine.ssubs(self.thisptr, d))
#TODO: deprecate this
def subs_dict(Basic self not None, *args):
Copy link
Contributor

Choose a reason for hiding this comment

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

Just add the deprecation warnings in this PR, that way we don't need to revisit in the future.


#TODO: deprecate this
Copy link
Contributor

Choose a reason for hiding this comment

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

The same here.

@certik
Copy link
Contributor

certik commented Sep 30, 2016

Thank you, I think it looks good now. +1 to merge.

@certik certik merged commit 1df763b into symengine:master Sep 30, 2016
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