OpenGATE / opengate

Gate 10 (beta)
http://www.opengatecollaboration.org
GNU Lesser General Public License v3.0
46 stars 40 forks source link

Remove destructors from classes in python #297

Closed nkrah closed 10 months ago

nkrah commented 11 months ago

We should remove del methods from the class. Most of them do not do anything and in general it is against common practice in python to implement them unless you really need them. Not a good example to contributors, I think.

We can always implement a del method if needed for a specific debugging task, but they should not be there by default ...

dsarrut commented 11 months ago

I agree: it was for debugging purposes of pickle/unpickle. Now can be removed

nkrah commented 11 months ago

Good. will start removing them.

nkrah commented 11 months ago

Done. Will be merged with PR #288