prePEP: Decimal data type

Aahz aahz at
Thu Nov 6 21:37:52 CET 2003

In article <vqlaif4imh9k98 at>,
John Roth <newsgroups at> wrote:
>AFAICS, there are only two solutions:
><decimal>.add(<number>, [<result spec>])
><context>.add(<decimal>, <number>)

Both are too inconvenient for casual users.  I think that for the Money
subclass, it'll probably make sense to require users to specify an
explicit Context before the first operation (raising an exception if not
initialized).  For Decimal, using the same defaults as Rexx will
probably work just fine.
Aahz (aahz at           <*>

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan

More information about the Python-list mailing list