print('{0.real}'.format('1'))
print('{0.real}'.format(1))
Used when a PEP 3101 format string uses an attribute specifier ({0.length}), but the argument passed for formatting doesn’t have that attribute.