Hi,

We have used protocols.datatype.Float because of a limitation of
XML-RPC. Actually, XML-RPC can not represent a Decimal, so we used this
tip to behave transparently a <double> like a float or a Decimal.
But there is some issues in this that will prevent to use the cdecimal
version of Decimal.
So I propose to drop this tip and to use the same design as for json-rpc
which is using a struct for Decimal like this:

        {
        '__class__': 'Decimal',
        'decimal': <value>,
        }

This means that external programs need to be adapted to follow this
convention. Any way, I think it is better than using float/double for
Decimal.

By the way, I think we could also do the same for date.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric.kr...@b2ck.com
Website: http://www.b2ck.com/

Attachment: pgpAPxe7e4Jqh.pgp
Description: PGP signature

Reply via email to