leewz

Results 5 comments of leewz

You can use `s.replace(/ (?= )/g, " \\")`, which puts a backslash between consecutive spaces. But if you're going to call it a sanitization function, it should also handle [other...

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.

I got a similar error: > ImportError: /usr/local/lib/python3.5/dist-packages/re2.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZN3re23RE27ReplaceEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS0_RKNS_11StringPieceE I installed the latest GCC (7,2.0): sudo apt-get install gcc-7 g++-7 Aliased g++: alias g++=g++-7 Re-make'd re2 (the C++...

Quick and very dirty fix: ```py3 >>> __builtins__.basestring = str >>> import re2 >>> ```

I started working on that [in my branch](https://github.com/leewz/pygob/commits/leewz-dump-compound), but I got stuck when it came to nested types. For example 1. You have a custom type X. 2. And a...