Showing content from http://mail.python.org/pipermail/python-dev/attachments/20060420/cc525a0c/attachment.html below:
just like r"" does the escaping for you.<br>but estr types must be implemented so the evaluate with the current scope (locals and globals),<br>not the score they were defined it, so unless you want to do nasty tricks with sys._getframe,
<br>which doesn't work on all implementations of python, you'll need it as a builtin<br><br>-tomer<br><br><div><span class="gmail_quote">On 4/20/06, <b class="gmail_sendername">Josiah Carlson</b> <<a href="mailto:jcarlson@uci.edu">
jcarlson@uci.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>"tomer filiba" <<a href="mailto:tomerfiliba@gmail.com">
tomerfiliba@gmail.com</a>> wrote:<br>> the evaluated string will be evaluated based on the current scope (locals<br>> and globals), just like<br>> normal expressions. the difference is, the results of the expressions will
<br>> be str()ed into the<br>> evaluated string directly. these expressions will be embedded into the<br>> string surrounded by<br><br>-1 You are basically suggesting that e"..." be a replacement for<br>
"..."%locals() . That doesn't seem to me to be sufficiently compelling<br>(yes, I do use string interpolation).<br><br><br> - Josiah<br><br></blockquote></div><br>
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