Mark Dickinson <dicki...@gmail.com> added the comment:

> 1) c = Decimal64Context
> 
> 2) c = Context(Decimal64)

Rather that complicating the Context constructor, I'd prefer a separate factory 
function.  I was thinking of something like:

def IEEEContext(n):
    """Return the decimal<n> IEEE 754 context.  n should be a multiple
    of 32."""
    ...

Again, it's clear with this that you get a new context object (I agree that 
there are problems with (1) and the mutability of Contexts).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8540>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to