Prevent function overriding in Python [duplicate]

You are right: what you are attempting is contrary to Python’s structure and its culture.

Document your API, and educate your users how to use it. It’s their program, so if they still want to override your function, who are you to prevent them?

Leave a Comment