Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re2.compile() fails on Python 3 byte strings #32

Open
andreasvc opened this issue Jul 31, 2015 · 0 comments
Open

re2.compile() fails on Python 3 byte strings #32

andreasvc opened this issue Jul 31, 2015 · 0 comments

Comments

@andreasvc
Copy link
Collaborator

>>> import re2
>>> re2.compile(b'foo')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "re2.pyx", line 771, in re2.compile (src/re2.cpp:10370)
  File "re2.pyx", line 926, in re2._compile (src/re2.cpp:12546)
  File "re2.pyx", line 810, in re2.prepare_pattern (src/re2.cpp:11121)
  File "re2.pyx", line 790, in re2.Tokenizer.__init__ (src/re2.cpp:10603)
  File "re2.pyx", line 796, in re2.Tokenizer.__next (src/re2.cpp:10745)
TypeError: 'int' object is not subscriptable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant