[omniORB] omniidl and Python 2.3

Visscher, Bruce VISSCHB at RJRT.com
Fri Jun 4 16:26:25 BST 2004


What is the status of omniidl and Python 2.3?

I found the following patch necessary in order to build using Python 2.3:

===================
      28      28  |
      29      29  |# $Id: main.py,v 1.27.2.16 2001/04/27 11:03:56 dpg1 Exp $
+             30  |# $Log:   S:/archives/omniORB/omniORB_304/src/lib/omniORB2/omniidl_be/cxx/skel/main..py-arc  $
+             31  |#
+             32  |#    Rev 1.2   Jun 04 2004 14:50:02   visschb
+             33  |# Compatibility with Python 2.3.
-     30          |# $Log: main.py,v $
      31      34  |# Revision 1.27.2.16  2001/04/27 11:03:56  dpg1
      32      35  |# Fix scoping bug in MSVC work-around for external constant linkage.
===================
     903     906  |        decl_scopedName = id.Name(decl.scopedName())
     904     907  |        decl_name = decl_scopedName.simple()
+            908  |        isDefault = int(defaultCase == c)
-    905          |        isDefault = defaultCase == c
     906     909  |
     907     910  |        for l in c.labels():
===================

Here, I'm using PVCS on omniORB 3.0.4, but from browsing the CVS repository,
it looks like the relevant line of code has survived as in the omniORB 3.0.4.

The above conversion to int causes the Python "str" built in to insert "1"
or "0" instead of "True" or "False" (respectively) into the C++ skeleton file.

Even after this patch there are warnings such as the following:

d:\omniORB\omniORB_304\lib\python\omniidl_be\cxx\skel\mangler.py:364: FutureWarning: x<<y losing bits or changing sign will return a
long in Python 2.4 and up
  return x << distance
d:\omniORB\omniORB_304\lib\python\omniidl_be\cxx\skel\mangler.py:382: FutureWarning: hex()/oct() of negative int will return a
signed string in Python 2.4 and up
  x = hex(x)[2:]

Is there an easy way to suppress this?  Are there other problems I should be
aware of?

Thanks,

Bruce

-----------------------------------------
CONFIDENTIALITY NOTE:  This e-mail message, including any
attachment(s), contains information that may be confidential,
protected by the attorney-client or other legal privileges, and/or
proprietary non-public information.  If you are not an intended
recipient of this message or an authorized assistant to an intended
recipient, please notify the sender by replying to this message and
then delete it from your system.  Use, dissemination, distribution,
or reproduction of this message and/or any of its attachments (if
any) by unintended recipients is not authorized and may be unlawful.




More information about the omniORB-list mailing list