Discussion:
[omniORB] How to convert a CORBA.Any into a Python string
EntonH
2008-02-29 15:29:18 UTC
Permalink
Hello,

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?

I'm getting an error message from C++ which is copied into the CORBA.Any
before giving it back to Python.

Greetings,
EntonH
--
View this message in context: http://www.nabble.com/How-to-convert-a-CORBA.Any-into-a-Python-string-tp15754962p15754962.html
Sent from the OmniORB - User mailing list archive at Nabble.com.
Duncan Grisby
2008-03-01 21:53:28 UTC
Permalink
Post by EntonH
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 --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...