[Tutor] Replacing the string in a file

Shashwat Anand anand.shashwat at gmail.com
Fri Jan 22 10:28:33 CET 2010


and there is the everlasting  : http://xkcd.com/353/ :D

On Fri, Jan 22, 2010 at 2:16 PM, Stefan Behnel <stefan_ml at behnel.de> wrote:

> Stefan Lesicnik, 22.01.2010 09:11:
> > I have used the fileinput module for this quiet alot. It has an inplace
> > option which does what you want and a backup option that keeps a backup.
> >
> > http://docs.python.org/library/fileinput.html
> > http://www.doughellmann.com/PyMOTW/fileinput/index.html
>
> Ah, right, I almost forgot about this one:
>
> http://xkcd.com/413/
>
> Stefan
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100122/649bdb28/attachment-0001.htm>


More information about the Tutor mailing list