[SciPy-user] floating characters

Matthew Hellman mhellman at mitre.org
Tue Jul 6 14:16:26 EDT 2004


Hi,
  I was wondering if anyone had a method for converting a stringType to
an assignableType using characters.  For instance, if I read in
characters and then wanted to assign mathematical equations to them, 'r'
would be converted to r.  Essentially, I'd want to create an array of
equations as:

array(r, l, t, rl)

not array('r', 'l', 't', 'rl')

after reading in 'r','l','t','rl' where r,l,t,rl have all been assigned
different equations that can be evaluted for different values at
different times.

Thanks,
Matt





More information about the SciPy-User mailing list