[issue1282] re module needs to support bytes / memoryview well

2014-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is easy to fix with small (but non zero) cost, but I don't see a reason too. So I don't reopen this issue. -- ___ Python tracker ___ __

[issue1282] re module needs to support bytes / memoryview well

2014-11-08 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, I don't see a reason why the *pattern* should be a bytearray or memoryview, only the string it is searching. But if you fixed it by casting it to bytes I won't stop you. :-) -- ___ Python tracker

[issue1282] re module needs to support bytes / memoryview well

2014-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually non-hashable patterns are not supported. >>> re.match(bytearray(b'.'), b'x') Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/Lib/re.py", line 163, in match return _compile(pattern, flags).match(string) F

[issue1282] re module needs to support bytes / memoryview well

2009-02-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: re has supported bytes for a while now. -- nosy: +benjamin.peterson resolution: accepted -> out of date status: open -> closed ___ Python tracker ___

[issue1282] re module needs to support bytes / memoryview well

2008-09-28 Thread Jeffrey C. Jacobs
Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>: -- nosy: +timehorse ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list ma

[issue1282] re module needs to support bytes / memoryview well

2007-11-24 Thread Georg Brandl
Changes by Georg Brandl: -- type: rfe -> behavior __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1282] re module needs to support bytes / memoryview well

2007-11-08 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +py3k priority: -> normal resolution: -> accepted type: -> rfe __ Tracker <[EMAIL PROTECTED]> __ __

[issue1282] re module needs to support bytes / memoryview well

2007-10-15 Thread Guido van Rossum
New submission from Guido van Rossum: Once PEP 3137 is fully implemented, the re module needs to be fixed so that the regex argument, the substitution argument, and the argument being searched/replaced are allowed to be arbitrary bytes arrays; where hashing is needed a copy in an immutable bytes