Fwd: dict.get_deep()

Albert-Jan Roskam sjeik_appie at hotmail.com
Mon Apr 4 13:37:23 EDT 2022


   ---------- Forwarded message ----------
   From: Marco Sulla <Marco.Sulla.Python at gmail.com>
   Date: Apr 2, 2022 22:44
   Subject: dict.get_deep()
   To: Python List <>
   Cc:

     A proposal. Very often dict are used as a deeply nested carrier of
     data, usually decoded from JSON. 

     data["users"][0]["address"]["street"]

   I have been using jsonpath expressions for that kind of stuff lately.
   Works really well.
   https://pypi.org/project/jsonpath-ng/


More information about the Python-list mailing list