SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 304 Python

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)
F
Fredrik Lundh committed
dac58492aa3bf476fa0b4b586edababfe3aaca53
Parent: 0402dd1