News for hackers. Stuff that matters.
Re:Show HN: Mandala – Automatically save, query and version ... by dangrie158 on Friday July 12, 2024 @12:12PM (#40946881)
You can directly hash the code using inspect: https://docs.python.org/3/library/inspect.html#inspect.getso...

And do something similar for the arguments (maybe pickling to get a bytes object you can hash without relying on specific types). Using just the hash function could come with footguns for mutable objects

There are no comments on this comment yet.