ice icon indicating copy to clipboard operation
ice copied to clipboard

Add Ice.compileSlice public method to Ice for Python

Open pepone opened this issue 3 weeks ago • 1 comments

This is useful to dynamically compile Slice to Python, instead of loadSlice

https://github.com/zeroc-ice/ice/blob/54e6c6d0b9e9d5208b600da21c061b7aa05d2ed9/scripts/Util.py#L30-L40

loadSlice is problematic when you load the same file multiple times, as classes get redefined and it can result in marshall exceptions, because the isinstance checks fail. For example a instance create for the previous definition.

pepone avatar Dec 09 '25 20:12 pepone

We should document the difference between compileSlice and loadSlice, as it's not obvious from their names.

bernardnormier avatar Dec 09 '25 21:12 bernardnormier

We decide not to add this new method, and to improve loadSlice see #4733

pepone avatar Dec 11 '25 07:12 pepone