-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Tiny changes to tiny changes 2 #995
Conversation
b2dde03
to
46a2dc8
Compare
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
46a2dc8
to
1cd7ae3
Compare
mathics/doc/common_doc.py
Outdated
want_sorting = True | ||
if want_sorting: | ||
module_collection_fn = lambda x: sorted( | ||
def module_collection_fn(_) -> list: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah!
There was a problem hiding this 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
a66ab4e
to
d79a6e1
Compare
575fae4
into
doc-code-another-round-of-tiny-changes-2
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: