Author Daugeras
Recipients Daugeras
Date 2018-11-28.17:05:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543424742.68.0.788709270274.issue35339@psf.upfronthosting.co.za>
In-reply-to
Content
Hello, I am not sure it is a bug, but it is a very strange behavior of Python, which I do not understand.

I created a class (mainly a structure) and instantiated an object of this class in a first function (Object 1). The function populates Object 1.
In another function, I instantiate another object of the same class (Object 2) , and Object 2 is automatically populated with the data of Object 1. Note than Object 1 and Object 2 have different memory adresses.

This behavior is very strange. Is it normal for Python or is it a Bug ?
History
Date User Action Args
2018-11-28 17:05:42Daugerassetrecipients: + Daugeras
2018-11-28 17:05:42Daugerassetmessageid: <1543424742.68.0.788709270274.issue35339@psf.upfronthosting.co.za>
2018-11-28 17:05:42Daugeraslinkissue35339 messages
2018-11-28 17:05:42Daugerascreate