[Python-Dev] Re: [Python-checkins] python/dist/src/Objects stringobject.c,2.171,2.172
Greg Ewing
greg@cosc.canterbury.ac.nz
Mon, 29 Jul 2002 14:13:23 +1200 (NZST)
Neal Norwitz <neal@metaslash.com>:
> The intent was to convert an int/long to a double in the case of
> '%g' et al and from a double to an int in the case of '%d'.
Are you sure the latter part of that is a good idea? As a general
principle, I don't think float->int conversions should be done
automatically. What is the Python philosophy on that?
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg@cosc.canterbury.ac.nz +--------------------------------------+