how to destruct a hashlib object? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: News and Discussions (https://python-forum.io/forum-31.html) +--- Thread: how to destruct a hashlib object? (/thread-35663.html) |
how to destruct a hashlib object? - Skaperen - Nov-29-2021 how is it intended to destruct a hashlib object when done with it? 1. object.destruct() with whatever method intended2, del object 3. 100% dereferencing it like returning from a function that used it with only a local variable referencing it RE: how to destruct a hashlib object? - Gribouillis - Nov-29-2021 Methods 2 and 3 should work. Why would it be different from other Python instances? RE: how to destruct a hashlib object? - Skaperen - Nov-29-2021 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. |