It's me wrote:

In REXX, for instance, one can do a:

    interpret y' = 4'

Since y contains a, then the above statement amongs to:

a = 4

The direct equivalent in Python would be

        a = 3
        y = 'a'
        exec '%s = 4' % y

The better question would be whether or not this as useful as one might thing in Python; if you find yourself doing this, often there are better ways to accomplish the same thing, such as using dictionaries.

--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
  But the system has no wisdom / The Devil split us in pairs
  -- Public Enemy
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to