CVS: 'python/dist/src/Modules regexmodule.c'

Guido van Rossum guido@monty.CNRI.Reston.Va.US
Mon, 12 May 1997 12:04:12 -0400


Update of /projects/cvsroot/python/dist/src/Modules
In directory monty:/usr/people/guido/python/src/Modules

Modified Files:
	regexmodule.c 
Log Message:
Fix big ineficciency in regobj.search/match (introduced by Barry in an
otherwise laudible attempt to rationalize the argument parsing): it
would save a copy of the original string instead of a reference to it.
Go back to saving a reference, but keep the "s#" format (using a hack
that involves two argument parsing steps, first using "O", then using
"s#").

--Guido van Rossum (home page: http://www.python.org/~guido/)