Re: Mixing Decimal and float

2010-06-04 Thread B.V.
On Jun 2, 10:35 pm, I V wrote: > On Wed, 02 Jun 2010 05:17:11 -0700, B.V. wrote: > > But trying to be open to other languages, the server implements also an > > XMLRPC interface (and also a JSONRPC-like interface). That's the key > > point: Decimal is python specific.

Re: Mixing Decimal and float

2010-06-04 Thread B.V.
On Jun 3, 2:00 am, Chris Rebert wrote: > On Wed, Jun 2, 2010 at 4:11 PM, Steven D'Aprano > > wrote: > > On Wed, 02 Jun 2010 17:17:11 -0400, Nathan Rice wrote: > >> My apologies if someone already mentioned this and I missed it but... > > >> class.__instancecheck__(self, instance) - Return true if

Re: Mixing Decimal and float

2010-06-02 Thread B.V.
On 2 juin, 17:08, Terry Reedy wrote: > On 6/2/2010 8:17 AM, B.V. wrote: > > > A contributor filed an issue on the bug tracker (https:// > > bugs.tryton.org/roundup/issue1575) and because he's a nice guy (ok > > it's a friend of mine), he made a patch proposal (

Re: Mixing Decimal and float

2010-06-02 Thread B.V.
On Jun 2, 12:22 pm, Mark Dickinson wrote: > On Jun 2, 9:24 am, "B.V." wrote: > > > Hi, > > > In order to solve some issues due to operations between Decimal and > > float, we wanted to implement a class that inherits from both float > > and Decimal. &

Mixing Decimal and float

2010-06-02 Thread B.V.
Hi, In order to solve some issues due to operations between Decimal and float, we wanted to implement a class that inherits from both float and Decimal. Typically, we wrote: class Float(Decimal, float): ... This can not be achieved because of a TypeError exception (with message "multiple bases h