proposed language change to int/int==float (was: PEP0238 lament)
David Bolen
db3l at fitlinxx.com
Wed Jul 25 15:59:26 EDT 2001
"Terry Reedy" <tjreedy at home.com> writes:
> (IMO -- and attempting to be helpful again) This (and similar
> statements) is rhetorically wrong and counter-productive. In PEP238,
> you are NOT proposing to delete integer division (and I hope/presume
> you never will), you are NOT proposing to switch it to C's version
> (ditto), nor are you proposing any other substantive change (ditto).
> From a technical viewpoint, you are merely, in Tim's words, proposing
> to change it's spelling, so that future i//j == current i/j, down to
> the very last bit. (...)
Just for clarification, I don't think that's quite right. // is being
proposed for integer division only. That is, unlike todays /, using
// with two floats, while still yielding a float, would yield the
floor() of what today's / would have yielded, and thus not the same
"down to the very last bit"
--
-- David
--
/-----------------------------------------------------------------------\
\ David Bolen \ E-mail: db3l at fitlinxx.com /
| FitLinxx, Inc. \ Phone: (203) 708-5192 |
/ 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
\-----------------------------------------------------------------------/
More information about the Python-list
mailing list