[Python-Dev] Re: Update PEP 292 (original) (raw)
Andrew Durdin adurdin at gmail.com
Thu Aug 12 08:05:56 CEST 2004
- Previous message: [Python-Dev] Re: Update PEP 292
- Next message: [Python-Dev] Re: Update PEP 292
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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}
- Previous message: [Python-Dev] Re: Update PEP 292
- Next message: [Python-Dev] Re: Update PEP 292
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]