from gettext import gettext as _
__doc__ = _("""module docstrings""")
class test:
__doc__ = _("""class docstrings""")
def __setattr__(self, attr_name, value):
_("""class method docstrings""")
But I found when the module and class docstrings take effect(must use
__doc__ to specify it), the class-method gettext docstrings takes no effect,
only:
def __setattr__(self, attr_name, value):
"""class method only english docstrings"""
has effect.
So any suggestions?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list