Re: [Python-Dev] Decimal floats as default (was: discussion aboutPEP239 and 240)

2005-06-30 Thread Fredrik Johansson
Should I write a PEP? - Fredrik ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Decimal floats as default (was: discussion aboutPEP239 and 240)

2005-06-27 Thread Facundo Batista
On 6/27/05, Fredrik Johansson <[EMAIL PROTECTED]> wrote: > The context (as I envision it) would not be just a "binary float > context", but a universal float context that lets you choose between > binary and decimal precision at run time. You mean something like this? >>> from __future__ import

Re: [Python-Dev] Decimal floats as default (was: discussion aboutPEP239 and 240)

2005-06-27 Thread Fredrik Johansson
On 6/27/05, Michael Chermside <[EMAIL PROTECTED]> wrote: > Fredrik Johansson writes: > > In either case, compatibility can be ensured by allowing both n-digit > > decimal and hardware binary precision for floats, settable via a float > > context. > > Perhaps you can show me a design (or working co

Re: [Python-Dev] Decimal floats as default (was: discussion aboutPEP239 and 240)

2005-06-27 Thread Aahz
On Mon, Jun 27, 2005, Michael Chermside wrote: > > If, by this, you mean adding a "binary float context" modeled after > the Decimal float context and providing access to the underlying FP > flags and traps and generally enhancing the use of binary FP, then > I think it's a great idea. It's probabl

Re: [Python-Dev] Decimal floats as default (was: discussion aboutPEP239 and 240)

2005-06-27 Thread Michael Chermside
Fredrik Johansson writes: > In either case, compatibility can be ensured by allowing both n-digit > decimal and hardware binary precision for floats, settable via a float > context. Perhaps you can show me a design (or working code) that proves me wrong, but I don't believe that such a design coul