[Python-Dev] Re: Update PEP 292

Andrew Durdin adurdin at gmail.com
Thu Aug 12 08:05:56 CEST 2004


One thing the PEP doesn't make clear: do these templates only
interpolate string variables, or will they handle anything with a
__str__ method?

e.g., will the following raise an exception:

print Template("I am ${height} centimetres tall.") % {height: 183}


More information about the Python-Dev mailing list