print a vs print '%s' % a vs print '%f' a

James Mills prologic at shortcircuit.net.au
Mon Dec 29 22:23:50 EST 2008


On Tue, Dec 30, 2008 at 1:19 PM, David Cournapeau <cournape at gmail.com> wrote:
(... snip ...)

> print '%f' % a # -> print '1.#INF'

Would this not be controlled by:
1. float(a) or a.__float__()
2. tp_print

cheers
James



More information about the Python-list mailing list