but estr types must be implemented so the evaluate with the current scope (locals and globals),
not the score they were defined it, so unless you want to do nasty tricks with sys._getframe,
which doesn't work on all implementations of python, you'll need it as a builtin
-tomer
On 4/20/06, Josiah Carlson <
[EMAIL PROTECTED]> wrote:
"tomer filiba" < [EMAIL PROTECTED]> wrote:
> the evaluated string will be evaluated based on the current scope (locals
> and globals), just like
> normal expressions. the difference is, the results of the expressions will
> be str()ed into the
> evaluated string directly. these expressions will be embedded into the
> string surrounded by
-1 You are basically suggesting that e"..." be a replacement for
"..."%locals() . That doesn't seem to me to be sufficiently compelling
(yes, I do use string interpolation).
- Josiah
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com