Pointers to variables
Randall Hopper
aa8vb at vislab.epa.gov
Thu Apr 22 12:14:03 EDT 1999
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
More information about the Python-list
mailing list