[Python-Dev] Re: Decimal data type issues (original) (raw)
Tim Peters tim.one at comcast.net
Thu Apr 22 19:52:50 EDT 2004
- Previous message: [Python-Dev] Re: Decimal data type issues
- Next message: [Python-Dev] Re: Decimal data type issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Tim Delaney]
Perhaps the built-in round should be modified to work with Decimal ...
Eventually, it should -- and many other changes throughout Python, outside of Decimal, should also be made. That won't happen for the first release, though, and possibly never if Decimal doesn't become popular.
Examples:
Float format codes, like %20.6g, make fine sense for Decimal, but feeding them Decimals won't do any good.
A Decimal version of the math module doesn't exist.
Looking up context all the time is expensive, and should eventually become part of CPython's C-level thread state (much as your FPU's context register(s) are part of your C's runtime thread state).
- Previous message: [Python-Dev] Re: Decimal data type issues
- Next message: [Python-Dev] Re: Decimal data type issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]