Skip to content
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

Two postponed TODOs in recent PRs... #1148

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

rocky
Copy link
Member

@rocky rocky commented Oct 27, 2024

  • Move eval functions to mathics.eval.numbers.numbers
  • Move "no_doc" after imports

@rocky rocky requested a review from davidar October 27, 2024 15:37
* Move eval functions to mathics.eval.numbers.numbers
* Move "no_doc" after imports
@@ -140,25 +222,11 @@ def cancel(expr):
return expr


def cancel(expr):
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens with this function? Is it not needed anymore?

Copy link
Member Author

Choose a reason for hiding this comment

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

The function is duplicated. This is easier to see in the master branch right now:

https://github.com/Mathics3/mathics-core/blob/master/mathics/eval/numbers/numbers.py#L122-L149

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the clarification!

Copy link
Contributor

@mmatera mmatera left a comment

Choose a reason for hiding this comment

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

Apart from my comment about the apparently unused cancel function, LGTM

Copy link
Collaborator

@davidar davidar left a comment

Choose a reason for hiding this comment

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

LGTM

@rocky rocky merged commit dcc607e into master Oct 28, 2024
12 checks passed
@rocky rocky deleted the two-todos-from-other-PRs branch October 28, 2024 11:34
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.

3 participants