Archived
This forum has been archived. Please start a new discussion on GitHub.
Adding ice_staticId() to Python servant classes
Just as Java classes have a static ice_staticId() method, it would be useful to have the Python class have similar ice_staticId() method. Here's the current methods on a Python servant class:
All the ice_* methods are instance methods. It would be nice to be able to say Clock.ice_staticId().
Thanks,
Blair
interface Clock { /* * Return the current time on the server as measured in the * number of microseconds since 00:00:00 January 1, 1970 UTC. * * @return a long containing the number of microseconds since * 00:00:00 January 1, 1970 UTC * @throws ::SpiIce::SpiIceException */ idempotent long getCurrentTimeMicros() throws ::SpiIce::SpiIceException; };
>>> dir(Clock) ['__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__', '_op_getCurrentTimeMicros', '_op_ice_id', '_op_ice_ids', '_op_ice_isA', '_op_ice_ping', 'ice_id', 'ice_ids', 'ice_isA', 'ice_ping', 'ice_type']
All the ice_* methods are instance methods. It would be nice to be able to say Clock.ice_staticId().
Thanks,
Blair
0
Comments
-
Thanks, we will put this on our todo list for the next release.0
-
That's great!
Thank you,
Blair0 -
Thanks!
I see this feature got into 3.3b!
Thanks!
Blair0