22 Apr
2004
22 Apr
'04
11:42 p.m.
[Aahz]
Sounds good. If you're going this route, it seems to me that Decimal() would work better if it ends up being a proxy class for an internal implementation that's more closely linked to context, and that most of the Decimal methods simply delegate to the internal implementation through context.
The current implementation is approximately the opposite: most of the Decimal methods have an optional "context" argument, and most the Context methods delegate to Decimal methods (passing context=self). That's fine by me, and I don't see a compelling reason to turn it inside out at this stage. Both classes derive from (only) object.