module for sed, the stream editor
moshez at math.huji.ac.il
Fri Feb 18 13:31:59 EST 2000
On Fri, 18 Feb 2000, Benyang Tang wrote:
> Is there a python module to do sed, the stream editor?
Well, there isn't a whole lot that sed can do that a combination of the
fileinput module, the string module and the re module can't do. Try
looking at the documentation of those modules and see if it helps any.
If, specifically, you are asking if there is a module to parse sed
commands and transform them to a function taking a line and returning a
line, then I know of no such module, and suspect there isn't one.
Moshe Zadka <mzadka at geocities.com>.
INTERNET: Learn what you know.
Share what you don't.
More information about the Python-list