]> granicus.if.org Git - python/commit
fixed character set description in docstring (SRE uses Python
authorFredrik Lundh <fredrik@pythonware.com>
Sun, 21 Oct 2001 21:48:30 +0000 (21:48 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Sun, 21 Oct 2001 21:48:30 +0000 (21:48 +0000)
commitdac58492aa3bf476fa0b4b586edababfe3aaca53
tree2f5e120eafe2802ebdcd02178af67439c982b84c
parent0402dd18cb025b7510760142087c97729702e23a
fixed character set description in docstring (SRE uses Python
strings, not C strings)

removed USE_PYTHON defines, and related sre.py helpers

skip calling the subx helper if the template is callable.
interestingly enough, this means that

def callback(m):
    return literal
result = pattern.sub(callback, string)

is much faster than

result = pattern.sub(literal, string)
Lib/sre.py
Modules/_sre.c