Python Forum

Full Version: how to destruct a hashlib object?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how is it intended to destruct a hashlib object when done with it?

1. object.destruct() with whatever method intended
2, del object
3. 100% dereferencing it like returning from a function that used it with only a local variable referencing it
Methods 2 and 3 should work. Why would it be different from other Python instances?
they do work. it's just a different way than classic/traditional OOP. i was just wondering if this is the way that was intended. i've been using #3 which makes functional organization a better way in general.