data strucutures in python
Matthew Banham
matb at photond.com
Tue Sep 19 16:32:31 EDT 2000
Hi All,
I'm new to Python and I was wondering if anyone new of a way of doing the
following:-
I have a list of tuples of the form (variablename, variableFunction).
In Python, if I type:-
variablename = data then variableFunction gets called with data passed to
it. For example say I have:-
p = 'lambda', ChangeLambdaFunc
and I type the line:-
lambda = 10
then the above line gets implemented as:-
ChangeLambdaFunc(10)
Thanks in advance for any help,
Matthew Banham
----------------------------------------------------------------------------
----
Matthew Banham, MSci
Development Engineer & Technical Support Officer
Photon Design Tel: +44 1865 395480
68 Church Way Fax: +44 1865 395481
Iffley, Oxford Email: matb at photond.com
OX4 4EF Web: www.photond.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Matthew Banham.vcf
Type: text/x-vcard
Size: 515 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20000919/da77adc2/attachment.vcf>
More information about the Python-list
mailing list