commit | dac58492aa3bf476fa0b4b586edababfe3aaca53 | [log] [tgz] |
---|---|---|
author | Fredrik Lundh <fredrik@pythonware.com> | Sun Oct 21 21:48:30 2001 +0000 |
committer | Fredrik Lundh <fredrik@pythonware.com> | Sun Oct 21 21:48:30 2001 +0000 |
tree | 2f5e120eafe2802ebdcd02178af67439c982b84c | |
parent | 0402dd18cb025b7510760142087c97729702e23a [diff] |
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)