Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python

Name: Anonymous 2009-04-30 16:27

"%d %d %d" % (1,2,3)

vs

"{0} {1} {2}".format(1,2,3)

?

Name: Anonymous 2009-05-01 0:57

The largest benefits with the new formatting are named/numbered fields, more flexible support for more advanced types, and not using special syntax. That's besides looking, IMO, a bit nicer.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List