tip n tricks 1: dot notation access to dictionary attribute

Опубликовано: 29 Октябрь 2024
на канале: Anuj shah
2,502
33

This video shows how we can have a dot notation access to dictionary attributes. i.e instead of dict_name['key'] use dict_name.key.
This video also shows how we can load json and yaml file as object and use dot notation instead of dictionary like notation

Github code of this video - https://github.com/anujshah1003/tips_...

The code snippet to do this is from the stackoverflow answer by farrell
and derek- https://stackoverflow.com/questions/2...