Tim Peters added the comment:

+1.  Note that this really can't be done in user-level code.  For example, 
consider matching the pattern

a|ab

against the string

ab

Without being _forced_ to consider the "ab" branch, the regexp will match just 
the "a" branch.  So, e.g., the example code you posted will say "nope, it 
didn't match (the whole thing)".

----------
nosy: +tim_one

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16203>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to