Closed soyacz closed 3 years ago
What you're observing is Python reusing objects internally hence producing the same id for multiple instance creations. This is perfectly normal and not Pyro related.
To make it more clear, I've added a line to the instancemode server that reports when the server object gets constructed, and what (Python) object id it got. You'll see that for instancemode=single, a new object will be created every call. Commit: e0d8d8609d876df82cb66a140d785875461e4426
(thanks for the precise issue description btw)
Thanks Irmen for explanation!
I've just copied example https://github.com/irmen/Pyro5/tree/master/examples/instancemode and It looks like per call instance behaves like session instance:
As you can see, there are repetitions in each session.
My env: Python 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0] on linux pyro5 5.11 Remote object communication library, fifth major version robotframework 3.2.2 Generic automation framework for acceptance testing and robotic process automation (RPA) serpent 1.30.2 Serialization based on ast.literal_eval