Re: Python 2.7 issue with decimal value 0.0

2015-03-25 Thread Larry Martell
On Wed, Mar 25, 2015 at 10:44 AM, Ian Kelly wrote: > On Wed, Mar 25, 2015 at 8:36 AM, Larry Martell > wrote: >> On Wed, Mar 25, 2015 at 8:26 AM, Grant Edwards >> wrote: >>> On 2015-03-25, Larry Martell wrote: I have an app that works with 2.6, but in 2.7 it is failing. I traced it d

Re: Python 2.7 issue with decimal value 0.0

2015-03-25 Thread Ian Kelly
On Wed, Mar 25, 2015 at 8:36 AM, Larry Martell wrote: > On Wed, Mar 25, 2015 at 8:26 AM, Grant Edwards > wrote: >> On 2015-03-25, Larry Martell wrote: >>> I have an app that works with 2.6, but in 2.7 it is failing. I traced >>> it down to an issue with decimal.Decimal being passed a value of 0

Re: Python 2.7 issue with decimal value 0.0

2015-03-25 Thread Tim Golden
On 25/03/2015 14:29, Oscar Benjamin wrote: > On 25 March 2015 at 14:20, Larry Martell wrote: >> I have an app that works with 2.6, but in 2.7 it is failing. I traced >> it down to an issue with decimal.Decimal being passed a value of 0.0. >> It 2.6 this is fine, but in 2.7 it throws an exception:

Re: Python 2.7 issue with decimal value 0.0

2015-03-25 Thread Larry Martell
On Wed, Mar 25, 2015 at 8:26 AM, Grant Edwards wrote: > On 2015-03-25, Larry Martell wrote: >> I have an app that works with 2.6, but in 2.7 it is failing. I traced >> it down to an issue with decimal.Decimal being passed a value of 0.0. >> It 2.6 this is fine, but in 2.7 it throws an exception:

Re: Python 2.7 issue with decimal value 0.0

2015-03-25 Thread Oscar Benjamin
On 25 March 2015 at 14:20, Larry Martell wrote: > I have an app that works with 2.6, but in 2.7 it is failing. I traced > it down to an issue with decimal.Decimal being passed a value of 0.0. > It 2.6 this is fine, but in 2.7 it throws an exception: > > TypeError: Cannot convert float to Decimal.

Re: Python 2.7 issue with decimal value 0.0

2015-03-25 Thread Grant Edwards
On 2015-03-25, Larry Martell wrote: > I have an app that works with 2.6, but in 2.7 it is failing. I traced > it down to an issue with decimal.Decimal being passed a value of 0.0. > It 2.6 this is fine, but in 2.7 it throws an exception: > > TypeError: Cannot convert float to Decimal. First conve

Python 2.7 issue with decimal value 0.0

2015-03-25 Thread Larry Martell
I have an app that works with 2.6, but in 2.7 it is failing. I traced it down to an issue with decimal.Decimal being passed a value of 0.0. It 2.6 this is fine, but in 2.7 it throws an exception: TypeError: Cannot convert float to Decimal. First convert the float to a string This is easy enough