Comment by codethief
1 day ago
It probably would but it'd likely not be trivial. Because how do you recognize monkey-patching in a dynamically typed language? I can think of many edge cases here.
That being said, you might be interested in https://docs.python.org/3/reference/datamodel.html#slots
No comments yet
Contribute on Hacker News ↗