here document

Roland Heiber roland.heiber at web.de
Tue Jan 11 06:07:20 EST 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