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

2005-06-22 Thread Fredrik Johansson
On 6/22/05, Michael McLay [EMAIL PROTECTED] wrote: This idea is dead on arrival. The change would break many applications and modules. A successful proposal cannot break backwards compatibility. Adding a dpython interpreter to the current code base is one possiblity. Is there actually much

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

2005-06-22 Thread Skip Montanaro
Fredrik Is there actually much code around that relies on the Fredrik particular precision of 32- or 64-bit binary floats for Fredrik arithmetic, and ceases working when higher precision is Fredrik available? Umm, yeah... The path you take from one or more string literals

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

2005-06-22 Thread Fredrik Johansson
On 6/22/05, Skip Montanaro [EMAIL PROTECTED] wrote: If nothing else, extension module code that executes f = PyFloat_AsDouble(o); or if (PyFloat_Check(o)) { ... } would either have to change or those functions would have to be rewritten to accept Decimal objects