Apr-20-2021, 04:31 PM
(Apr-20-2021, 04:12 PM)ndc85430 Wrote: You don't say why you want to do this in the first place.
I guess you're right; in the case I'm currently working on, I'm facing to different difficulties:
- for a function (i.e. as argument), I need to provide a list of dictionnaries
- Dictionnaries names have been previously (dynamically) reccorded in a list, and I cannot use explicit names and numbers accordingly (but use a variable instead)
- in the main code, I'm using exec(s) to replace the name by its variable; if a want to rewrite it in a function, well "goto" item 1
(Apr-20-2021, 04:12 PM)ndc85430 Wrote: can't you just use a dictionary to map the names to the dictionaries?
Well it seems I do not know how to proceed
Thanks for your interest