[issue12325] regex matches incorrectly on literal dot (99.9% confirmed)

2011-06-13 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue12325] regex matches incorrectly on literal dot (99.9% confirmed)

2011-06-13 Thread Cal Leeming
Cal Leeming added the comment: Oh jeez, you're going to think I'm such an idiot. I just ran a completely fresh test in the cli (away from the original source), and the issue disappeared (it was caused by caching - apparently). I'm really sorry to have bothered you guys, I should have thought

[issue12325] regex matches incorrectly on literal dot (99.9% confirmed)

2011-06-13 Thread Robert Lehmann
Robert Lehmann added the comment: I can not reproduce either of your findings. Could you provide us with your version information? re version 2.2.1, _sre 2.2.2, Python 2.6.6, Debian sid here. Also tested with Python 2.7.2rc1 (same RE). >>> import re >>> re.compile(r"\.co\.uk", re.DEBUG) li

[issue12325] regex matches incorrectly on literal dot (99.9% confirmed)

2011-06-13 Thread Cal Leeming
Cal Leeming added the comment: Take particular notice to the following: \.co\.uk or literal 99 literal 111 literal 46 literal 117 literal 107 >>> map(lambda x: chr(x), [99,111,46,117,107]) ['c', 'o', '.', 'u', 'k'] It would appear it is ignoring the first \

[issue12325] regex matches incorrectly on literal dot (99.9% confirmed)

2011-06-13 Thread Cal Leeming
Changes by Cal Leeming : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12325] regex matches incorrectly on literal dot (99.9% confirmed)

2011-06-13 Thread Cal Leeming
New submission from Cal Leeming : I believe I might have found a bug in the Python re libraries. Here is a complete debug of what is happening (my apologies for the nature of the actual text). I have ran this regex through RegexBuddy (and a few other tools), and all of them do the correct acti