bpo-4356: Add key function support to the bisect module#20556
Conversation
|
Hmm, I didn't see that PR until after this one was made. Looking at it now, I prefer this one which has cleaner code, better docs updates, and focuses on key and leaves out reversed which was not requested by the OP (if that turns out to be needed, it can be added later; for now, it is better to avoid doubling the code complexity). |
Sorry, something went wrong.
|
I don't care which version gets merged but regarding the reversed argument you said in the review:
|
Sorry, something went wrong.
|
Also, some of the tests should be combined. Both PRs have tests that the others don't. Am unsure about reversed. It seems like a nice to have, but looking at the other PR, it doubles the code complexity and that spills into the docs/tests as well. What do you think? |
Sorry, something went wrong.
|
For reversed, most users that know they need If it's ever needed you could add it later but since it increases the complexity without adding functionality, it may be best not to add it.
Edit: Nevermind, I read the doc better and it's actually here. |
Sorry, something went wrong.
|
BTW, do you know how to appease the buildbots for the doc build. I'm unclear on what they deem "suspicious" and how to clear the blocker. |
Sorry, something went wrong.
|
You can fix the spurious error os "suspicious" by removing lines 114 and 115 of |
Sorry, something went wrong.
|
Thanks. Apologies again for duplicating work. I completely forget about the other PR. |
Sorry, something went wrong.
remilapeyre
left a comment
There was a problem hiding this comment.
Apologies again for duplicating work. I completely forget about the other PR.
Don't worry, at least it's great the issue can be closed!
Sorry, something went wrong.
|
Somehow |
Sorry, something went wrong.
https://bugs.python.org/issue4356