Closed CypressVillage closed 1 year ago
The harm is in the maintenance burden. Giving people lots of freedom results in more people submitting bugs when they do bad things with this freedom. Also, there are already too many features in PySnooper, and as we add more features, the possibility for features to clash with each other grows exponentially. PySnooper is intentionally designed to be a small, simple tool.
If you want to do this, you should probably edit your local copy of PySnooper, or monkeypatch it.
Thank you for bringing us such a powerful and convenient program. š
I want users to be able to customize the behavior when pysnooper catches the right frame. This allows pysnooper to do more than output information in the console. To achieve it we just need to leave a simple interface for the user, like this:
Then we can add the corresponding empty function, so that programmers who need it can implement it:
The same is true elsewhere
I'm probably new to the programming world, so I don't really understand the potential harm that such a modification can do to the project (at least not in my opinion). I sincerely hope you will consider my suggestion. If you allow it, I'll submit pull requests after I've made the changes.