I want to use the str.format() method like this:
my_str = "Username: {username}, User data: {user_data.attribute}".format(**items)
And apply it to items as shown below:
items = {
"username" : "Peter",
"user_data" : {
"attribute" : "foo"
}}
Is this feasible, and if so, then how? If not, I'm interested in your recommended approach.
Python
in the title, the tag python automatically append "python" to the title) – Tenaculum