gh-115808: Add is_none and is_not_none operators#115814
Conversation
Sorry, something went wrong.
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Sorry, something went wrong.
|
Please, update the documentation for this module (Doc/library/operator.rst) |
Sorry, something went wrong.
|
@Eclips4 Thank you for the suggestion, updated it accordingly. |
Sorry, something went wrong.
AlexWaygood
left a comment
There was a problem hiding this comment.
Thanks! In order for this to be merged, it would also need:
- Documentation to be added in
Doc/library/operator.rst - An entry in
Doc/whatsnew/3.13.rst - An additional implementation written in C in https://github.com/python/cpython/blob/main/Modules/_operator.c
Here's the most recent PR that added a new function to the operator module, which you could use as a reference:
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
AlexWaygood
left a comment
There was a problem hiding this comment.
Thanks! This looks pretty good to me now. We'll need to wait a while to see if anybody voices any objections on the issue before we can consider merging this, though.
Sorry, something went wrong.
|
No problem, take your time! And thank you very much for your valuable comments. They helped me shape my first PR here such that it fits your needs! |
Sorry, something went wrong.
sobolevn
left a comment
There was a problem hiding this comment.
Thank you! I have several nitpicks :)
Sorry, something went wrong.
Eclips4
left a comment
There was a problem hiding this comment.
Looks very good for me. Good job @ThexXTURBOXx 👍
Sorry, something went wrong.
434bc8b to
354acfb
Compare
March 4, 2024 14:07
|
Rebased on |
Sorry, something went wrong.
|
Rebased on |
Sorry, something went wrong.
|
Rebased on |
Sorry, something went wrong.
|
Thanks for the comments - fixed! |
Sorry, something went wrong.
Looks good, thanks. However, what is about I think it should be implemented, and I think that it is okay to do so in this PR, since these things are related. |
Sorry, something went wrong.
You are right. I haven't seen this comment yet. I have also added an appropriate |
Sorry, something went wrong.
|
If there are no outstanding concerns I'll look to merge this in the next few days (cc @Eclips4 if you have any final comments) A |
Sorry, something went wrong.
Eclips4
left a comment
There was a problem hiding this comment.
LGTM. Thanks @ThexXTURBOXx for your efforts!
Sorry, something went wrong.
|
You're more than welcome, thanks for the reviews! :) |
Sorry, something went wrong.
|
Thanks all! A |
Sorry, something went wrong.
…ython#115814) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
This PR adds an
is_noneoperator and an appropriate test.I hope I did not forget to update/reference it anywhere else.
Fixes #115808