bloody freshman question regarding strings
Erik Max Francis
max at alcyone.com
Sun Jun 23 15:08:03 EDT 2002
Max M wrote:
> A few approaches:
>
> def mailmsg(severity, message, opts, target, recipient):
> # first create the message body
> msgbody = "computer: %s\n" % COMPUTER)
> "system: %s\n" % SYSTEMTYPE)
> "cpu: %s\n" % CPUTYPE)
...
Huh? Syntax errors.
> def mailmsg(severity, message, opts, target, recipient):
> # first create the message body
> bodyParts = []
> a = body.append
You meant a = bodyParts.append.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ See the son in your bad day / Smell the flowers in the valley
\__/ Chante Moore
Bosskey.net: Aliens vs. Predator 2 / http://www.bosskey.net/avp2/
A personal guide to Aliens vs. Predator 2.
More information about the Python-list
mailing list