here document

Roland Heiber roland.heiber at web.de
Tue Jan 11 12:07:20 CET 2005


harold fellermann wrote:

> f = open("/bin/exe.x","w")
> print >>f , """CategoryY = GRIB
> etc.
> """

This would overwrite the existing /bin/exe.x ...

HtH, Roland



More information about the Python-list mailing list