<s> import sys , textwrap <EOL> rlmain = sys . modules [ "<STR_LIT>" ] <EOL> rl = rlmain . rl <EOL> def get_doc ( rl ) : <EOL> methods = [ ( x , getattr ( rl , x ) ) for x in dir ( rl ) if callable ( getattr ( rl , x ) ) ] <EOL> return [ ( x , m . __doc__ ) for x , m in methods if m . __doc__ ] <EOL> def get_rest ( rl ) : <EOL> q = get_doc ( rl ) <EOL> out = [ ] <EOL> for funcname , doc in q : <EOL> out . append ( funcname ) <EOL> out . append ( "<STR_LIT:\n>" . join ( textwrap . wrap ( doc , <NUM_LIT> , initial_indent = "<STR_LIT:U+0020>" ) ) ) <EOL> out . append ( "<STR_LIT>" ) <EOL> return out </s>
