Future division patch available (PEP 238)
Paul Winkler
slinkp23 at yahoo.com
Fri Jul 27 12:40:31 EDT 2001
Stephen Horne wrote:
>
> On Wed, 25 Jul 2001 16:31:38 GMT, Paul Winkler
> <paul at calendargalaxy.com> wrote:
>
> >> - Just a wild idea: the problem you want to solve is that the existing
> >> division operator mixes two totally different meanings and thus
> >> leads to nasty surprises.
(snip)
I didn't write that, that was Christian Tanzer's idea.
I did write this:
> >thought the whole point of the PEP was to make division behave consistently -
> >that is, always return the same type of result regardless of the operands.
>
> No - that would require many more division operators. Consider complex
> division, division with classes (such as matrix division) etc.
OK, thanks for the clarification.
Perhaps I should have just said "...make division behave MORE consistently."
--
................... paul winkler ....................
custom calendars & printing: http://www.calendargalaxy.com
A member of ARMS: http://www.reacharms.com
home page: http://www.slinkp.com
More information about the Python-list
mailing list