(lang)
Read in docstrings from lang-specific docstring dictionary.

    Transfer docstrings, translated to lang, from a dictionary-file
    to the methods of classes Screen and Turtle and - in revised form -
    to the corresponding functions.
Read in docstrings from lang-specific docstring dictionary.
Read in docstrings from lang - specific docstring dictionary .
def read_docstrings(lang):
    """Read in docstrings from lang-specific docstring dictionary.

    Transfer docstrings, translated to lang, from a dictionary-file
    to the methods of classes Screen and Turtle and - in revised form -
    to the corresponding functions.
    """
    modname = "turtle_docstringdict_%(language)s" % {'language':lang.lower()}
    module = __import__(modname)
    docsdict = module.docsdict
    for key in docsdict:
        try:
#            eval(key).im_func.__doc__ = docsdict[key]
            eval(key).__doc__ = docsdict[key]
        except Exception:
            print("Bad docstring-entry: %s" % key)
def read_docstrings ( lang ) : modname = "turtle_docstringdict_%(language)s" % { 'language' : lang . lower ( ) } module = __import__ ( modname ) docsdict = module . docsdict for key in docsdict : try : #            eval(key).im_func.__doc__ = docsdict[key] eval ( key ) . __doc__ = docsdict [ key ] except Exception : print ( "Bad docstring-entry: %s" % key )