[omniORB] omniORBpy and sequence<octet>

Duncan Grisby dgrisby@uk.research.att.com
Thu, 25 Nov 1999 15:00:21 +0000


On Thursday 25 November, Robert Sander wrote:
> On Thu, Nov 25, 1999 at 09:32:15AM +0000, Duncan Grisby wrote:
> > 
> > The draft CORBA->Python mapping says that sequence of octet maps to
> > Python string. I think it's loopy, but I follow the spec anyway.
> 
> Thank You for this info, but I thought I read it too and it stated octet
> is mapped to integer. So I thought sequence<octet> is mapped to
> a list of integer... 

Nope. Unfortunately, octet is mapped to integer but sequence<octet> is
mapped to string. It makes sense when sequence<octet> is used to
transmit large quantities of binary data since strings are far more
efficient than lists in Python.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --