Barry Warsaw <barry at python.org> writes: > On Thu, 2004-08-12 at 02:05, Andrew Durdin wrote: >> 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} > > In the current implementation, this will raise an exception. What, like a NameError for height? :-) Sorry, mwh -- I can't see a conspicuous evolutionary advantage in being good at higher mathematics. -- James Riden, asr
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4