27 points · by coderdude · 15y ago · 1 comment
>>> class Person:
... x = "lol"
... y = "right?"
...
>>> "{0.x} {0.y}".format(Person())
'lol right?'
Also this function: http://stackoverflow.com/questions/610406/javascript-printf-... adding it to the String objects would be cool too.