News for hackers. Stuff that matters.
Re:Improving your (Python) code with modern idioms by vladev on Tuesday May 08, 2012 @04:28AM (#3942764)
2012: Python

    "{:10.2f}".format(x)
Re:Improving your (Python) code with modern idioms by pestaa on Tuesday May 08, 2012 @09:29AM (#3943478)
Yes and no. You still need to print it.
Re:Improving your (Python) code with modern idioms by rbanffy on Tuesday May 08, 2012 @10:09AM (#3943671)
Fine. This is the equivalent of sprintf.