From: aa8vb at vislab.epa.gov (Randall Hopper)
Date: Thu, 22 Apr 1999 12:14:03 -0400
Subject: Pointers to variables
Message-ID: <19990422121403.A279051@vislab.epa.gov>
X-UID: 774                                                  

This doesn't work:


    for ( var, str ) in [( self.min, 'min_units' ),
                         ( self.max, 'max_units' )]:
      if cnf.has_key( str ):
        var = cnf[ str ]
        del cnf[ str ]


It doesn't assign values to self.min, self.max (both integers).  The values
of these variables are inserted into the tuples and not references to the
variables themselves, which is the problem.

How can I cause a reference to the variables to be stored in the tuples
instead of their values?

Thanks,

Randall





