[I18n-sig] Re: Patch 101320: doc strings
Martin von Loewis
loewis@informatik.hu-berlin.de
Mon, 4 Sep 2000 15:11:41 +0200 (MET DST)
[Martin v. L=F6wis]
> > The textual domain of a module will relate to what _ binds to. Doc
> > strings won't be wrapped into _(), as a result, you can't use the
> > binding of _.
[Fran=E7ois Pinard]
> "_(__doc__)" should work if the docstring shares the textual domain of
> the rest of the module, which looks like the correct thing to do in
> my eyes.
I don't see how this could work for doc strings of classes, methods
and functions. Do you propose to write
def foo():
_("This does the foo thing.")
pass
That won't work; the parser won't recognize it as a doc string.
Regards,
Martin