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).__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 ) . __doc__ = docsdict [ key ] except Exception : print ( 'Bad docstring-entry: %s' % key )
read in docstrings from lang-specific docstring dictionary .