git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Print formatting


On 10/18/19 5:00 PM, D'Arcy Cain wrote:
> Finally, if this is in a loop do this.
> 
> FMT = '{0[0]:<12s}{0[3]:>12s}'.format
> for temp_list in GetLists(): print FMT(temp_list)

Oops.  Time warp.  I meant "print(FMT(temp_list))

-- 
D'Arcy J.M. Cain
Vybe Networks Inc.
http://www.VybeNetworks.com/
IM:darcy at Vex.Net VoIP: sip:darcy at VybeNetworks.com