[Python-Dev] Decimal construction
Raymond Hettinger
python at rcn.com
Thu May 19 18:04:37 CEST 2005
> Not sure what the "right" answer is, but I wanted to stick my oar in
to
> say that I think that Decimal has not been in the field long enough or
> widely-enough used that we should feel that the API has been set in
> stone. If there's agreement that a mistake was made, let's fix it!
There is not agreement. I prefer the current behavior and think
changing it would introduce more problems than it would solve. Further,
the API currently provides both context aware and context free
construction -- all the tools needed are already there. Let's leave
this alone and simply document the best practices (using unary plus
after a precision change and constructing using create_decimal whenever
context is important to construction).
Raymond
More information about the Python-Dev
mailing list