On 3/14/07, Talin <[EMAIL PROTECTED]> wrote:
> Then I would call that 'somestring'.expand(), or perhaps 'substitute' or
> 'interpolate' - implying that you are doing an expansion of the named
> fields within the current scope.

'expand' isn't bad.  On the one hand, I really would like the ability
to do automatic locals() and globals() lookup, but on the other hand,
I'm not personally so much hung up on the amount of typing as I am on
the esthetics, so to me,

import string
string.expand('somestring')

would be equally as appealing as having a string expand method, and
would probably be more difficult for someone to do accidentally.

Pat
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to