KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible to do partial string formatting with the advanced string formatting methods, similar to the string template safe_substitute() function? For example: s = '{foo} {bar}' s.format(foo='FOO') #Problem: raises KeyError 'bar'
Tags (comma-separated)
Save Edits
Cancel