> Changing static methods is not going to fix that.
My plan for the _pyio module is:
(1) Make static methods callable
(2) Decorate _pyio.open() with @staticmethod
That would only fix the very specific case of _pyio.open(). But open() use case seems to be common enough to became the example in the @staticmethod documentation!
https://docs.python.org/dev/library/functions.html#staticmethod
Example added in bpo-31567 "Inconsistent documentation around decorators" by:
commit 03b9537dc515d10528f83c920d38910b95755aff
Author: Éric Araujo <merwok@users.noreply.github.com>
Date: Thu Oct 12 12:28:55 2017 -0400
bpo-31567: more decorator markup fixes in docs (GH-3959) (#3966) |