Re: nested dictionaries and functions in data structures.

2014-01-09 Thread Sean Murphy
Thanks for that. I will have a play and see how I can apply your example. On 07/01/2014, at 11:19 PM, Jean-Michel Pichavant wrote: > - Original Message - >> Thanks for that. It resolved the issue and it was so simple compared >> to everything else I saw on the net. >> >> Only outstandi

Re: nested dictionaries and functions in data structures.

2014-01-07 Thread Jean-Michel Pichavant
- Original Message - > Thanks for that. It resolved the issue and it was so simple compared > to everything else I saw on the net. > > Only outstanding thing I have to work out is how to execute functions > from a dictionary. I will continue searching on the net. > > > Sean This may hel

Re: nested dictionaries and functions in data structures.

2014-01-07 Thread Frank Millman
"Sean Murphy" wrote in message news:0cf6151e-e063-4252-9ac3-4fd4698eb...@gmail.com... > Hello all. > > I have some questions again. :-) > > I wish to be able to place a function within a data structure. I would > like to use a dictionary because I could pass it a key and then the > function co

Re: nested dictionaries and functions in data structures.

2014-01-07 Thread Steven D'Aprano
Sean Murphy wrote: > Only outstanding thing I have to work out is how to execute functions from > a dictionary. I will continue searching on the net. I don't quite understand this question. Do you mean something like this? def spam(n): return "spam"*n def eggs(n): return "eggs"*n d =

Re: nested dictionaries and functions in data structures.

2014-01-07 Thread Sean Murphy
Thanks for that. It resolved the issue and it was so simple compared to everything else I saw on the net. Only outstanding thing I have to work out is how to execute functions from a dictionary. I will continue searching on the net. Sean On 07/01/2014, at 9:21 PM, Jean-Michel Pichavant wrote

Re: nested dictionaries and functions in data structures.

2014-01-07 Thread Jean-Michel Pichavant
- Original Message - > Hello all. > > I have some questions again. :-) > > I wish to be able to place a function within a data structure. I > would like to use a dictionary because I could pass it a key and > then the function could be called. I couldn't find anything on the > net to s