>> import rpyc
>> c = rpyc.classic.connect("localhost")
>> c.execute("import wx")
>> c.eval("wx.cvar")
The server crashes. Apparently this has to do with the boxing/
unboxing of wx.cvar. Any chance of handling such cases more
gracefully?
Thanks.
The problem occurs in Connection._unbox:
cls = getattr(obj, "__class__", type(obj))
wx.cvar.__class__ raises a NameError and not an AttributeError as it
should (this is a bug on wx's part). As a result _unbox fails.
The workaround which would make rpyc more forgiving to such bugs would
be to replace the getattr statement with the following:
try:
cls = obj.__class__
except:
cls = type(obj)
Could you please implement this small change?