-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Docs: Add note regarding "reversed" flag in heapq.merge #300
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
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow these steps to rectify the issue:
Thanks again to your contribution and we look forward to looking at it! |
e70a6f5
to
8792226
Compare
Thanks Adam, I believe the core dev expect all Pull-Requests to be backed by an issue on http://bugs.python.org/ you might have to create one and link it from here. +1 otherwise. |
I would think this would be obvious and it has never been a source of confusion. But I don't mind the additional wording. |
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.
"To achieve similar behavior to" -> "To achieve behavior similar to"
The docs for `heapq.merge` are a little misleading. Iterables passed into heapq.merge with the reversed flag enabled must be sorted from largest to smallest to achieve the desired sorting effect, but the previous paragraph states that they should be sorted from smallest to largest.
… and "sys.setprofile" - Don't call the audit hooks when switching tasklets. - Add calls to tasklet_set_trace_function(), tasklet_set_profile_function() and tasklet_setstate().
The docs for
heapq.merge
are a little ambiguous. Iterables passedinto heapq.merge with the reversed flag enabled must be sorted from
largest to smallest to achieve the desired sorting effect, but the
previous paragraph states that they should be sorted from smallest
to largest.