[Python-Dev] Adventures with Decimal
Raymond Hettinger
raymond.hettinger at verizon.net
Sat May 21 03:56:28 CEST 2005
[Guido]
> > You know that, but Raymond seems confused. From one of his posts
(point
> (k)):
[Raymond]
> > "Throughout the implementation, the code calls the Decimal
> > constructor to create intermediate values. Every one of those calls
> > would need to be changed to specify a context."
[Facundo]
> The point here, I think, is that intermediate Decimal objects are
> created, and the whole module assumes that the context does not affect
> that intermediate values. If you change this and start using the
> context at Decimal creation time, you'll have to be aware of that in a
> lot of parts of the code.
>
> OTOH, you can change that and run the test cases, and see how bad it
> explodes (or not, ;).
Bingo!
That is point (k) from the big missive.
Raymond
More information about the Python-Dev
mailing list