[omniORB] native python fixed point in omniORBpy

Luke Deller ldeller at xplantechnology.com
Thu Dec 14 17:54:54 GMT 2006


Hi,

Are there any plans to deprecate omnipyFixed in favour of
decimal.Decimal (which has been in the standard library since Python 2.4
released in 2004)?

I realise that such a change would deviate from the Python language
mapping.  It seems to me though that the Python language mapping is so
far out of date that it no longer conforms to the CORBA requirements for
language mappings: 
the CORBA 2.6 spec says in 3.10.3.4: "the fixed data type will be mapped
to the native fixed point capability of a programming language, if
available".

Strictly speaking decimal.Decimal is a floating-point type rather than a
fixed-point type because the scale can be modified by arithmetic
operations.  This is also true for omnipyFixed.  I suspect that this
does match what the CORBA specification intended for the "fixed-point"
type though, because this floating-point behaviour for arithmetic is
explicitly defined for evaluation of IDL constant expressions in section
3.9.2 of the CORBA 2.6 spec.

Regards,
Luke.

**********************************************************************************************

Important Note
This email (including any attachments) contains information which is
confidential and may be subject to legal privilege.  If you are not
the intended recipient you must not use, distribute or copy this
email.  If you have received this email in error please notify the
sender immediately and delete this email. Any views expressed in this
email are not necessarily the views of XPlan Technology.

It is the duty of the recipient to virus scan and otherwise test the
information provided before loading onto any computer system.
Xplan Technology does not warrant that the
information is free of a virus or any other defect or error.
**********************************************************************************************




More information about the omniORB-list mailing list