Python Forum
Modifying a dictionary recursively - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Modifying a dictionary recursively (/thread-42116.html)



Modifying a dictionary recursively - SpongeB0B - May-12-2024

Hi everyone,

I have a "nested" dictionary that can contain either dict, or list, tuple, string (and all that nested or not)

I create a recursive function and for the str, list,values of the main dict there no problem.

But I can't figure how to process the nested dict..

any idea where to look ?

Thanks.


RE: Modifying a dictionary recursively - menator01 - May-12-2024

Can you show the code?


RE: Modifying a dictionary recursively - Gribouillis - May-12-2024

(May-12-2024, 03:38 PM)SpongeB0B Wrote: I create a recursive function and for the str, list,values of the main dict there no problem.
What is the purpose of the function, what does it do? Also what should the target function do?