prePEP: Decimal data type
Aahz
aahz at pythoncraft.com
Fri Nov 7 19:10:33 EST 2003
In article <mailman.503.1068153003.702.python-list at python.org>,
Jp Calderone <exarkun at intarweb.us> wrote:
>On Thu, Nov 06, 2003 at 03:37:52PM -0500, Aahz wrote:
>>
>> 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.
>
> That sounds like it would work, if you are forced to specify the context
>on a per-instance basis. Otherwise, I don't see how two different modules
>which wanted to treat Money differently could ever be used together.
That doesn't make much sense to me. Can you provide an actual use case?
--
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