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

Tiny changes to tiny changes 2 #995

Merged

Conversation

rocky
Copy link
Member

@rocky rocky commented Feb 7, 2024

Remove want_sorting parameter. This was added when we had a bug in Mathics3 regarding not resetting decimal digits listing precision in a LRU caching.

Also perform some linting:

* remove unused import
* Reinstate "." at the end of a sentence

@rocky rocky changed the base branch from master to doc-code-another-round-of-tiny-changes-2 February 7, 2024 14:48
@rocky rocky requested a review from mmatera February 7, 2024 14:48
@rocky rocky force-pushed the tiny-changes-to-tiny-changes-2 branch 2 times, most recently from b2dde03 to 46a2dc8 Compare February 7, 2024 14:52
The `want_sorting` parameter was added when we had a bug in Mathics3 regarding not resetting decimal digits listing precision in a LRU caching.

Also perform some linting:

    * remove unused import
    * Reinstate "." at the end of a sentence
@rocky rocky force-pushed the tiny-changes-to-tiny-changes-2 branch from 46a2dc8 to 1cd7ae3 Compare February 7, 2024 14:52
want_sorting = True
if want_sorting:
module_collection_fn = lambda x: sorted(
def module_collection_fn(_) -> list:
Copy link
Contributor

Choose a reason for hiding this comment

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

why does this function need to have an argument that in the end is not used?

Copy link
Member Author

@rocky rocky Feb 7, 2024

Choose a reason for hiding this comment

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

You are right.

This is a holdover from the stuff that came before where the "module" parameter was passed in but later it was taken from by the closure from a surrounding variable.

Is removed. now.

@@ -608,21 +605,6 @@ def main():
action="store_true",
help="print cache statistics",
)
# FIXME: historically was weird interacting going on with
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah!

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 the comment about module_collection_fn(_) LGTM

@rocky rocky force-pushed the tiny-changes-to-tiny-changes-2 branch from a66ab4e to d79a6e1 Compare February 7, 2024 16:30
@rocky rocky merged commit 575fae4 into doc-code-another-round-of-tiny-changes-2 Feb 7, 2024
7 checks passed
@rocky rocky deleted the tiny-changes-to-tiny-changes-2 branch February 7, 2024 16:46
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