Richard Johnson writes:

 > I tried this just now, adding "%(user_address)" to the footer,

Executive summary: Try adding "s" to the end of that.

The format string is "%s", which in very old Pythons needed to be
referred to according to its position in the string.  More modern
Pythons allow you to interpolate "(user_address)" which looks up the
variable user_address in a dictionary.  But you still need the "s" at
the end to tell Python to format the variable's value is expected to
be a string, not an integer or something like that.

The error message seems unclear.  I'm not sure if it's easy to do
anything about it though.  The format string language is complex, and
I'm not sure it's easy for the program to diagnose the error more
precisely.

Regards,

Steve

-- 
Associate Professor              Division of Policy and Planning Science
http://turnbull.sk.tsukuba.ac.jp/     Faculty of Systems and Information
Email: turnb...@sk.tsukuba.ac.jp                   University of Tsukuba
Tel: 029-853-5175                 Tennodai 1-1-1, Tsukuba 305-8573 JAPAN
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to