[issue46848] Use optimized string search function in mmap.find()

2022-02-24 Thread Stefan Tatschner
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/issu

[issue46848] Use optimized string search function in mmap.find()

2022-02-24 Thread Stefan Tatschner
Stefan Tatschner added the comment: Sorry, I mean memmem(3). :) -- ___ Python tracker <https://bugs.python.org/issue46848> ___ ___ Python-bugs-list mailin

[issue46848] Use optimized string search function in mmap.find()

2022-02-24 Thread Stefan Tatschner
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(). -- mes

[issue42653] Expose ISO-TP Contants for Linux >= 5.10

2020-12-16 Thread Stefan Tatschner
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

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Stefan Tatschner
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 a

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Stefan Tatschner
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/issue25

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Stefan Tatschner
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/issue25

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Stefan Tatschner
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 ___

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2015-12-02 Thread Stefan Tatschner
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,

[issue24423] Fix wrong indentation in Doc/whatsnew/3.5.rst

2015-06-10 Thread Stefan Tatschner
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

[issue22631] Feature Request CAN_RAW_FD_FRAMES

2014-10-15 Thread Stefan Tatschner
Changes by Stefan Tatschner : -- title: Feature Request CAN_RAW_FD_FRAME -> Feature Request CAN_RAW_FD_FRAMES ___ Python tracker <http://bugs.python.org/issu

[issue22631] Feature Request CAN_RAW_FD_FRAME

2014-10-14 Thread Stefan Tatschner
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

[issue21920] Fixed missing colon in the docs

2014-07-05 Thread Stefan Tatschner
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