Message 189983 - Python tracker (original) (raw)

Please expose this as an attribute of the class or module, not as a function. A function is orders of magnitude slower than attribute access, and the entire point of exposing this is to allow caches to be invalidated.

-1. Exposing a function allows to modify the underlying implementation without breaking any API.