Problems With stringformating... URGEND

Bill Scherer scherbi at bam.com
Thu Dec 30 09:23:28 EST 1999


It appears to me that you just need to replace:

""" %emailrec, markt_alt, markt, markt, id

with:


""" % (emailrec, markt_alt, markt, markt, id)

After making this change, it works for me.

Kurzmann Martin wrote:

> Hi !
>
> i'm a kind of newbie in python an at now i have following problem:
>
> i will format the follosing text and insert some Variables
> (excerpt of my code)
>
> print "\n BEFORE MSG \n"
>
> msg="""Sehr geehrte/r %s !
>
> Treffer! Diesen Moment sind neue Inserate auf unserem Online-Server im
> Bereich %s eingelangt, die unser Suchagent für Sie aufgespürt hat,
> passend zu Ihrer gespeicherten Suchabfrage.
>
> Genau diese Inserate können Sie unter folgender Adresse abrufen:
> http://xxx.xx.xxx.xx/%s/anzclu_%s.taf?_what=search&suchtyp=6&qid=%d
>
> Wir freuen uns auf Ihren Besuch und wünschen Ihnen viel Erfolg beim
> Suchen und Inserieren!
>
> Mit freundlichen Grüßen,
> das Kleine Zeitung Online Team
>
> PS: Für Anregungen und Kritik in Bezug auf unsere Online-Dienste sind
> wir sehr dankbar.
>
> Mail an den Webmaster (webmaster at kleinezeitung.at) genügt!
>
> Kleine Zeitung Online: http://www.kleinezeitung.at
>
> """ %emailrec, markt_alt, markt, markt, id
>
> print "\n AFTER MSG \n"
> print "\n" + msg + "\n"
>
> ANY IDEA WHATS wrong??
>
> thanks in advance and a happy Y2K !!
>
> Kurzmann Martin
> mkurzmann at carinthia.com
>
> --
> http://www.python.org/mailman/listinfo/python-list

--
William K. Scherer
Sr. Member of Applications Staff
Bell Atlantic Mobile
914 365 7265


-------------- next part --------------
A non-text attachment was scrubbed...
Name: scherbi.vcf
Type: text/x-vcard
Size: 226 bytes
Desc: Card for Bill Scherer
URL: <http://mail.python.org/pipermail/python-list/attachments/19991230/ed3c6c87/attachment.vcf>


More information about the Python-list mailing list