[Python-ideas] Python3.3 Decimal Library Released

Zachary Ware zachary.ware+pyideas at gmail.com
Mon Mar 3 19:23:58 CET 2014


On Mon, Mar 3, 2014 at 11:54 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> If it's worth having a decimal maths library, its probably worth having
> it in 3.5 or 3.6.

Agreed.

I'm -1 on a decimal-specific math library, though.  What I would
rather see is a type-agnostic math library, that does what (IIRC) the
new statistics module does: take in numbers of any type, coerce only
as is strictly necessary, calculate, and return an answer of the same
type as the input with the goal of correctness over performance.  If
all input is float (or complex), calculation could be delegated to the
existing math (or cmath) libraries, and performance wouldn't be too
much worse than using those libraries directly.

-- 
Zach


More information about the Python-ideas mailing list