Re: Mixing Decimal and float

2010-06-04 Thread B.V.
On Jun 3, 2:00 am, Chris Rebert c...@rebertia.com wrote: On Wed, Jun 2, 2010 at 4:11 PM, Steven D'Aprano steve-remove-t...@cybersource.com.au 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...

Re: Mixing Decimal and float

2010-06-04 Thread B.V.
On Jun 2, 10:35 pm, I V ivle...@gmail.com 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. So

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

Re: Mixing Decimal and float

2010-06-02 Thread B.V.
On Jun 2, 12:22 pm, Mark Dickinson dicki...@gmail.com wrote: On Jun 2, 9:24 am, B.V. bv.try...@gmail.com 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. Typically, we wrote

Re: Mixing Decimal and float

2010-06-02 Thread B.V.
On 2 juin, 17:08, Terry Reedy tjre...@udel.edu 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 (http