[omniORB] How to convert a CORBA.Any into a Python string

Duncan Grisby duncan at grisby.org
Sat Mar 1 15:53:39 GMT 2008


On Friday 29 February, EntonH wrote:

> I'm getting back a CORBA.Any from a function call.
> Now I want to cast it into a string so I can print its content.
> It's very easy in C++ because of the overloaded operate <<= and =>>.
> 
> How can I realize this cast in Python?

Call its value() method.

Have you read the Python language mapping specification?  That's where
to find out about this kind of thing:

  http://www.omg.org/cgi-bin/doc?formal/02-11-05

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list