Say I\'ve got a dictionary with dots in the name of fields, like {\'person.name\': \'Joe\'}. If I wanted to use this in str.format, is it possible
{\'person.name\': \'Joe\'}
str.format
One way to work around this is to use the old % formatting (which has not been deprecated yet):
%
>>> print 'Name: %(person.name)s' % {'person.name': 'Joe'} Name: Joe