-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Feature Request CAN_RAW_FD_FRAMES #66821
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
Comments
CAN support was introduced with issue bpo-10141. Python still seems to lack support for CAN FD which is available with the socket option CAN_RAW_FD_FRAMES, see here (chapter 4.1.5): https://www.kernel.org/doc/Documentation/networking/can.txt |
Annoying. |
I have added a patch to update this with conditional compilation. |
To show where I got my sources: torvalds/linux@e2d265d There does not appear to be any new structures needed other than supporting the constant. |
LGTM, just adding Antoine (the expert for the socket module). I'm ready to commit over here. |
The new constant should probably be added to https://docs.python.org/3/library/socket.html#constants (with a .. versionadded:: 3.5 directive) |
I am not going to be able to write docs on this because I am not totally sure how you would use this; There is an entry in the docs for CAN_* so that might be enough. I have a line now saying that this particular flag is available as of 3.5 though. |
Follow the instructions in this: https://docs.python.org/devguide/docquality.html And make it look something like this: https://docs.python.org/3/library/socket.html#socket.CAN_BCM |
I tried to provide a summary of the Linux page on the topic and then said that it was fully documented there. |
New changeset 03ff92b26fa9 by Larry Hastings in branch 'default': |
Patch committed. Thanks, Joe! |
it would be nice to have these constants backported to both 2.7 and 3.4. It may be good to check for other missing consgtants in this module in 2.7 and 3.4. |
So I think the patch could be applied to 3.4; I will look into moving the other back sometime this week. |
Isn't this a "new feature"? 2.7 is maybe fair game, but 3.4 arguably is not. It should be odd to have a field marked in the documentation as "New in 3.4.4." |
It is a new feature. |
Benjamin, would you like CAN_RAW_FD_FRAMES in the next 2.7? |
There is no CAN support in 2.7, so no. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: