Xiang Zhang added the comment: I tried to write a patch to make mmap behave like bytearray more. Making iteration returns int is easy. But I am trapped in the contains operation. To support operation like b'aa' in b'aabbcc', we have to do a str in str search. I don't find any portable way except writing my own. bytes and bytearray use stringlib_find, but that is not reachable in a c module. Any advice?
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26358> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com