On May 19, 2012 11:04 PM, "Tim Cera" <t...@cerazone.net> wrote:
> A user would then install a language kit, maybe something like scikits
and access the translated docstring with a new 'np.info'.  As near as I can
figure, Python 'help' command can't be replaced by something else, so
'help' would always display the English docstring.

help() just returns the __doc__ attribute, but a large number of numpy's
__doc__ attributes are set up by code at import time, so in principle even
these could be run through gettext pretty easily.

-n
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to