You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seem like there is no way to access the __doc__ or __annotations__ objects of a method or any other objects that is behind the Proxy directly, because it is instead using the value of the Proxy.
importPyro5.apiimporttyping@Pyro5.api.exposeclassModel:
defecho(self, message: str) ->str:
""" Hello ! I am a docstring. :param messages: a message :return: the same message """returnmessagedaemon=Pyro5.api.Daemon(port=9555)
daemon.register(Model, objectId="model")
daemon.requestLoop()
hello !
<Pyro5.client._RemoteMethod object at 0x000002196F3C4350>
method call abstraction
It would be better if the Proxy was also redirecting theses attributes through a kind of property or some specials attributes ?
This is a very minor issue, there are just some case where it would help make some rare program a bit cleaner (in my case it help with an API that get its own documentation from theses classes that are exposed) and for the sake of completion.
The text was updated successfully, but these errors were encountered:
It seem like there is no way to access the
__doc__
or__annotations__
objects of a method or any other objects that is behind the Proxy directly, because it is instead using the value of the Proxy.It would be better if the Proxy was also redirecting theses attributes through a kind of property or some specials attributes ?
This is a very minor issue, there are just some case where it would help make some rare program a bit cleaner (in my case it help with an API that get its own documentation from theses classes that are exposed) and for the sake of completion.
The text was updated successfully, but these errors were encountered: