prePEP: Decimal data type

Aahz aahz at pythoncraft.com
Thu Nov 6 15:37:52 EST 2003


In article <vqlaif4imh9k98 at news.supernews.com>,
John Roth <newsgroups at jhrothjr.com> wrote:
>
>AFAICS, there are only two solutions:
>
><decimal>.add(<number>, [<result spec>])
>
>and
>
><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 pythoncraft.com)           <*>         http://www.pythoncraft.com/

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




More information about the Python-list mailing list