Python Forum
Modifying a dictionary recursively
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modifying a dictionary recursively
#1
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.
[Image: NfRQr9R.jpg]
Reply
#2
Can you show the code?
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply
#3
(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?
« We can solve any problem by introducing an extra level of indirection »
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to return the next page from json recursively? sandson 0 1,244 Apr-01-2022, 11:01 PM
Last Post: sandson
  Help Needed | Read Outlook email Recursively & download attachment Vinci141 1 4,217 Jan-07-2022, 07:38 PM
Last Post: cubangt
Star Recursively convert nested dicts to dict subclass Alfalfa 1 3,015 Jan-22-2021, 05:43 AM
Last Post: buran
  Python script that recursively zips folders WITHOUT nesting the folder inside the zip umkc1 1 3,002 Feb-11-2020, 09:12 PM
Last Post: michael1789
  How to get full path of specified hidden files matching pattern recursively SriRajesh 4 4,108 Jan-18-2020, 07:12 PM
Last Post: SriRajesh
  Find a given file recursively inside a directory alinaveed786 1 2,029 Jul-01-2019, 01:53 PM
Last Post: ichabod801
  Call functions recursively in tree structure using python dubru 1 2,393 Feb-15-2019, 06:43 PM
Last Post: nilamo
  Help on adding two lists recursively Metalman488 3 4,270 Sep-16-2018, 08:10 PM
Last Post: Metalman488
  scandir() recursively and return path + filename malonn 6 17,778 May-09-2018, 03:45 PM
Last Post: wavic
  Recursively create a file digitalquake 19 15,152 Dec-07-2016, 06:08 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020