Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-129719: Restore missing socket.CAN_RAW_ERR_FILTER on Linux#129721

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
gh-129719: Restore missing socket.CAN_RAW_ERR_FILTER on Linux
  • Loading branch information
@jbogers
jbogers committedFeb 6, 2025
commit9dba4b7db370319006758731d09866c42518c27d
3 changes: 3 additions & 0 deletionsDoc/library/socket.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -473,6 +473,9 @@ Constants
.. versionchanged:: 3.11
NetBSD support was added.

.. versionchanged:: 3.14
Restored missing ``CAN_RAW_ERR_FILTER`` on Linux.

.. data:: CAN_BCM
CAN_BCM_*

Expand Down
7 changes: 7 additions & 0 deletionsDoc/whatsnew/3.14.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1113,6 +1113,13 @@ pty
Use :func:`pty.openpty` instead.
(Contributed by Nikita Sobolev in :gh:`118824`.)

socket
------

* Fix missing CAN_RAW_ERR_FILTER constant in the :mod:`socket` module on Linux systems.
It was missing since Python 3.11.
(Contributed by Jeroen Bogers in :gh:`129719`.)

sqlite3
-------

Expand Down
2 changes: 1 addition & 1 deletionModules/socketmodule.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8223,7 +8223,7 @@ socket_exec(PyObject *m)
#endif
#if defined(HAVE_LINUX_CAN_RAW_H) || defined(HAVE_NETCAN_CAN_H)
ADD_INT_MACRO(m, CAN_RAW_FILTER);
#ifdefCAN_RAW_ERR_FILTER
#ifdefHAVE_LINUX_CAN_RAW_H
ADD_INT_MACRO(m, CAN_RAW_ERR_FILTER);
#endif
ADD_INT_MACRO(m, CAN_RAW_LOOPBACK);
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp