[issue46848] Use optimized string search function in mmap.find()
New submission from Stefan Tatschner : The mmap.find() in function uses a naive loop to search string matches. This can be optimized “for free” by using libc's memmap(3) function instead. The relevant file is Modules/mmapmodule.c, the relevant function is mmap_gfind(). -- messages: 413902 nosy: rumpelsepp priority: normal severity: normal status: open title: Use optimized string search function in mmap.find() ___ Python tracker <https://bugs.python.org/issue46848> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46848] Use optimized string search function in mmap.find()
Stefan Tatschner added the comment: Sorry, I mean memmem(3). :) -- ___ Python tracker <https://bugs.python.org/issue46848> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46848] Use optimized string search function in mmap.find()
Change by Stefan Tatschner : -- keywords: +patch pull_requests: +29675 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31554 ___ Python tracker <https://bugs.python.org/issue46848> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42653] Expose ISO-TP Contants for Linux >= 5.10
New submission from Stefan Tatschner : Linux >= 5.10 gained a new SocketCAN module called ISOTP. This is an implementation of ISO 15765-2 which is mainly used in vehicle CAN networks. Expose the constants from linux/can/isotp.h in the socket module. These constants are not entirely new. Previously there was an out of tree kernel module available and a subset of these constants are already available in CPyton. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/can/isotp.h [2]: https://github.com/hartkopp/can-isotp -- components: Library (Lib) messages: 383126 nosy: rumpelsepp priority: normal pull_requests: 22652 severity: normal status: open title: Expose ISO-TP Contants for Linux >= 5.10 type: enhancement versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue42653> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21920] Fixed missing colon in the docs
New submission from Stefan Tatschner: Hi, i just discovered a missing colon in the docs. I have created a patch for this. Stefan -- assignee: docs@python components: Documentation files: fixed-missing-colon.patch keywords: patch messages: 222341 nosy: docs@python, rumpelsepp priority: normal severity: normal status: open title: Fixed missing colon in the docs versions: Python 3.4 Added file: http://bugs.python.org/file35865/fixed-missing-colon.patch ___ Python tracker <http://bugs.python.org/issue21920> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22631] Feature Request CAN_RAW_FD_FRAME
New submission from Stefan Tatschner: CAN support was introduced with issue #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 -- components: IO messages: 229289 nosy: rumpelsepp priority: normal severity: normal status: open title: Feature Request CAN_RAW_FD_FRAME type: enhancement versions: Python 3.5 ___ Python tracker <http://bugs.python.org/issue22631> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22631] Feature Request CAN_RAW_FD_FRAMES
Changes by Stefan Tatschner : -- title: Feature Request CAN_RAW_FD_FRAME -> Feature Request CAN_RAW_FD_FRAMES ___ Python tracker <http://bugs.python.org/issue22631> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24423] Fix wrong indentation in Doc/whatsnew/3.5.rst
New submission from Stefan Tatschner: A list item which describes the changes of #22631 is badly indented. The attached (trivial) patch fixes that problem. -- assignee: docs@python components: Documentation files: fix-indentation.patch keywords: patch messages: 245127 nosy: docs@python, rumpelsepp priority: normal severity: normal status: open title: Fix wrong indentation in Doc/whatsnew/3.5.rst versions: Python 3.5 Added file: http://bugs.python.org/file39673/fix-indentation.patch ___ Python tracker <http://bugs.python.org/issue24423> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25780] Add support for CAN_RAW_JOIN_FILTERS
New submission from Stefan Tatschner: Here is a patch, which adds support for CAN_RAW_JOIN_FILTERS which is available since linux 4.1 [1]. My patch fixes trailing whitespace issues as well. Since I have a newer version of autotools, running "autoreconf" generates a lot of changes, so I left that out for the time being. [1]: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a5581ef4c2eac6449188862e903eb46c7233582a -- components: Library (Lib) files: can_raw_join_filters.diff keywords: patch messages: 255723 nosy: rumpelsepp priority: normal severity: normal status: open title: Add support for CAN_RAW_JOIN_FILTERS versions: Python 3.6 Added file: http://bugs.python.org/file41210/can_raw_join_filters.diff ___ Python tracker <http://bugs.python.org/issue25780> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25780] Add support for CAN_RAW_JOIN_FILTERS
Stefan Tatschner added the comment: in case you don't like whitespace cleanups, here is the patch with "git diff --ignore-space-changes". -- Added file: http://bugs.python.org/file41211/can_raw_join_filters-no-whitespace.diff ___ Python tracker <http://bugs.python.org/issue25780> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25780] Add support for CAN_RAW_JOIN_FILTERS
Stefan Tatschner added the comment: Because is the first time I work with this bugtracking system on python.org, how can I update my patch? :) Just upload a new one? -- ___ Python tracker <http://bugs.python.org/issue25780> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25780] Add support for CAN_RAW_JOIN_FILTERS
Stefan Tatschner added the comment: Thanks! Here is an update. -- Added file: http://bugs.python.org/file41218/can_raw_join_filters-no-whitespace-v2.diff ___ Python tracker <http://bugs.python.org/issue25780> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25780] Add support for CAN_RAW_JOIN_FILTERS
Stefan Tatschner added the comment: Hmm. I just adapted this feature request from issue22631 for the new constant and I verified that my patch actually works. I could try to provide a test, but then I would have to open Pandora's box as I am not a CPython developer at all. :/ -- ___ Python tracker <http://bugs.python.org/issue25780> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com