-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-45172: netbsd socketmodule CAN protocol constants addition. #28288
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
This PR is stale because it has been open for 30 days with no activity. |
This looks alright. Perhaps a test would be good. @vstinner could you have a look? |
Modules/socketmodule.c
Outdated
#if defined(HAVE_LINUX_CAN_RAW_H) | ||
PyModule_AddIntMacro(m, CAN_RAW_ERR_FILTER); | ||
#endif |
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.
Maybe move CAN_RAW_ERR_FILTER above in a separated block to avoid nested #if.
b3dd0be
to
799d8e1
Compare
well tests are based on the presence of constants existence and netbsd share the same naming. |
🤖 New build scheduled with the buildbot fleet by @ambv for commit 799d8e13b2653916ced73ee9855ed2a61c841117 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
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.
@devnexen, can you resolve conflicts and address Victor's review?
799d8e1
to
cfff139
Compare
cfff139
to
7113d49
Compare
Please avoid force-pushing PRs. I'm now unable to see the changes between your first version of the PR and the new version. It makes the reviewers job easier if you use |
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.
Looks good to me. If Victor gives a thumbs up, I'll merge in a day or two.
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.
LGTM. @erlend-aasland: you can merge it if you're fine with the current NEWS entry.
Misc/NEWS.d/next/Library/2021-09-11-13-45-47.bpo-45172.T0LUgT.rst
Outdated
Show resolved
Hide resolved
Thanks, I'll merge after the NEWS entry has been amended. |
I updated the entry accordingly. |
It looks like gh-30066 already added support for the |
Ah I did not notice that one, well if this is supported already then my PR is pointless now. |
Nonetheless, thanks for your interest in improving CPython :) |
Well, the important thing is that Python got CAN support on NetBSD ;-) 40fcd16 is part of Python 3.11: you can test the beta1! Yeah, thanks for your interest in enhancing Python! |
https://bugs.python.org/issue45172