Éric Araujo added the comment: > The doc for NullTranslations.install needs the erroneous '()'s removed to > make clear > that the bindings are to bound methods and not the result of calls to bound > methods. > Ie, self.gettest() should be just self.gettext.
The source contains :meth:`self.gettext`, and Sphinx adds the parentheses when creating markup for a function, probably because it’s common to say things like “the len() function”. There is a Sphinx config value to control that. If one wants to keep the parens for most functions but not have them in a few cases, other markup than :meth:/:func: has to be used. ---------- versions: +Python 3.5 -Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18217> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com