Skip to content

only init basestring in python2#49

Open
commutecat wants to merge 1 commit into
axiak:masterfrom
commutecat:patch-1
Open

only init basestring in python2#49
commutecat wants to merge 1 commit into
axiak:masterfrom
commutecat:patch-1

Conversation

@commutecat

Copy link
Copy Markdown

python3 will load this module first and throw exception on basestring before loading re2.pyx

python3  will load this module first and throw exception on basestring before loading re2.pyx
@rmax

rmax commented Jan 26, 2017

Copy link
Copy Markdown

The re2.cpp file is generated via cython from the re2.pyx file. Check if regenerating the file with cython fixes your issue by running make.

@zedeus

zedeus commented Feb 11, 2017

Copy link
Copy Markdown

I encountered this issue as well. This pull request fixes it.

@leewz

leewz commented Feb 4, 2018

Copy link
Copy Markdown

The real problem is that src/re2.pyx was updated to support Python 3 (updated 2015 June), but src/re2.cpp wasn't regenerated (updated 2015 May). #49 modifies an outdated auto-generated file.

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

Successfully merging this pull request may close these issues.

4 participants