• Gustavo Niemeyer's avatar
    Applied patch #725106, by Greg Chapman, fixing capturing groups · c34f2555
    Gustavo Niemeyer yazdı
    within repeats of alternatives. The only change to the original
    patch was to convert the tests to the new test_re.py file.
    
    This patch fixes cases like:
    
    >>> re.match('((a)|b)*', 'abc').groups()
    ('b', '')
    
    Which is wrong (it's impossible to match the empty string),
    and incompatible with other regex systems, like the following
    examples show:
    
    % perl -e '"abc" =~ /^((a)|b)*/; print "$1 $2\n";'
    b a
    
    % echo "abc" | sed -r -e "s/^((a)|b)*/\1 \2|/"
    b a|c
    c34f2555
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...