4 Jun
2002
4 Jun
'02
10:09 a.m.
On Tue, Jun 04, 2002 at 12:19:03AM +0100, Peter Bengtsson wrote:
suppose you have a File object with id "myfile.txt" Then::
data = getattr(container, "myfile.txt").data
if day=="tuesday": data = "%s\nToday is tuesday"
Sorry, Python newbie here, but shouldn't that read data = "%s\nToday is tuesday" % data ? Regards, Uwe -- Uwe Schuerkamp Tel: +49 (0)5241 / 80 10 66, FAX: - / 6 23 38 Uwe.Schuerkamp@nionex.net Nionex GmbH, IWN5 (http://www.nionex.de/) GnuPG KeyID: 5887047D Avenwedder Str. 55, 33311 Guetersloh GnuPG Fingerprint: 2E 13 20 22 9A 3F 63 7F 67 6F E9 B1 A8 36 A4 61