Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Python style support for keywords or dictionaires #40

Open
rakeshvar opened this issue Jul 25, 2017 · 0 comments
Open

Python style support for keywords or dictionaires #40

rakeshvar opened this issue Jul 25, 2017 · 0 comments

Comments

@rakeshvar
Copy link

In Python one can do this:

geopoint = {'latitude':41.123,'longitude':71.091}
'{latitude} {longitude}'.format(**geopoint)

One can even do this apparently. Which does not look very hygienic.

'{0[latitude]} {0[longitude]}'.format(geopoint)
'The title is {0.title}s'.format(a)

I want to replicate the geopoint example from the top (my Dict has a lot more entries). Is there support for it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant