Closed GoogleCodeExporter closed 9 years ago
I'm not familiar with that package.
What is the regex that it's using? What is the string that it's trying to match?
Original comment by re...@mrabarnett.plus.com
on 18 Oct 2012 at 3:03
ply is a yacc/lex implementation in pure python that I wanted to try and speed
up using regex instead of the regular re (with concurrency). The regular
expressions are constructed from a user defined token/grammar definition so
it's not trivial to figure out in the general case.
In this case I guess it should be possible, but I don't know the exact string
that's passed to re(gex).compile(). I might have time to track it down in the
coming days.
Original comment by greger.c...@gmail.com
on 18 Oct 2012 at 3:09
It looks like the problem is that the re module raises re.error("unbalanced
parenthesis") whereas the regex module raises regex.error("missing )").
I'm not sure what the proper solution is, whether to make regex's message match
that of re, or just warn that you shouldn't rely on the phrasing of messages to
detect what kind of error occurred!
Original comment by re...@mrabarnett.plus.com
on 18 Oct 2012 at 3:19
Ah, good!
I suggest the latter; close this issue and I'll open one in ply :-)
Thanks!
Original comment by greger.c...@gmail.com
on 18 Oct 2012 at 3:21
Original comment by re...@mrabarnett.plus.com
on 25 Oct 2012 at 12:48
Original issue reported on code.google.com by
greger.c...@gmail.com
on 18 Oct 2012 at 6:25