._variable, according to the posts above and PEP-8, is not only a convention: "from M import * does not import objects whose names start with an underscore.". However, in the presented case showing it as a class attribute, it doesn't change anything.
Yes this answer is helpful ; the gettext module describes this pattern "gettext works by looking up literal strings in a database of translations, and pulling out the appropriate translated string. The usual pattern is to bind the appropriate lookup function to the name “_” (a single underscore character) so that the code is not cluttered with a lot of calls to functions with longer names." Maybe that's what sphinx is doing "under the hood"; soemthing like the examplet = gettext.translation('example_domain', 'locale', fallback=True); _ = t.gettext
Highly active question. Earn 10 reputation (not counting the association bonus) in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.
Not the answer you're looking for? Browse other questions tagged