[Python-checkins] r54732 - python/trunk/Lib/decimal.py

Facundo Batista facundobatista at gmail.com
Tue Apr 10 19:31:53 CEST 2007


2007/4/10, Raymond Hettinger <python at rcn.com>:

> I don't think patches like this are a good idea.  For almost
> zero benefit, we've lost the clean info in "svn ann" and lost
> having the code in Py2.6 exactly match Py2.5 and Py2.4
> (so it will now be more difficult to backport and validate
> real bug fixes).

Well. This is the first step in "me started working on decimal again".
The Decimal spec changed: it has new operations, but also changed the
behaviour of some already-present operations (right now I'm pulling my
hair because of a corner case of rounding that must behave different
in quantize).

What I don't know is: these changes will be considered as "bugs" and
backported to <2.6, or it will be considered as little changes that
will join the bigger changes in 2.6?

If the former, I agree with you that this change should be reversed
(note that I didn't realize these losses at its moment, but everybody
learns, ;).

What do you think?


> When the exceptions were changed to new-style, I hope there
> was a speed-up, that there is no change in semantics, and
> that the code still runs under Py2.3 as promised in the header.

It changed from "ValueError, 'foo'" to "ValueError('foo')". Don't
remember when this was introduced in the language, though (didn't find
it overlooking the "What's new" docs...).

Thank you!

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/


More information about the Python-checkins mailing list