Re: Create a variable "on the fly"

2005-07-28 Thread Paul D.Smith
Bruno, FYI, notes in-line... Cheers, Paul DS > > a look instantiate Python variables of the appropriate type. > > What do you mean "of the appropriate type" ? You want to typecast (eg. > from string to numeric) ? Then you need to know what env var must be > casted to what type ? Then you don't n

Create a variable "on the fly"

2005-07-27 Thread Paul D.Smith
Can Python create a variable "on-the-fly". For example I would like something like... make_variable('OSCAR', 'the grouch'); print OSCAR; ...to output... the grouch Anything like this in Python? And in case anyone is interested, I want to instantiate a set of variables based on environment var