parameters: (target, esc, lspace, next_input=None)
docstring: Prepares a pinfo(2)/psearch call from a target name and the escape
      (i.e. ? or ??)
docstring_summary: Prepares a pinfo(2)/psearch call from a target name and the escape
      (i.e. ? or ??)
docstring_tokens: Prepares a pinfo ( 2 ) / psearch call from a target name and the escape ( i . e . ? or ?? )
function: def _make_help_call(target, esc, lspace, next_input=None):
      """Prepares a pinfo(2)/psearch call from a target name and the escape
      (i.e. ? or ??)"""
      method  = 'pinfo2' if esc == '??' \
                  else 'psearch' if '*' in target \
                  else 'pinfo'
      arg = " ".join([method, target])
      #Prepare arguments for get_ipython().run_line_magic(magic_name, magic_args)
      t_magic_name, _, t_magic_arg_s = arg.partition(' ')
      t_magic_name = t_magic_name.lstrip(ESC_MAGIC)
      if next_input is None:
          return '%sget_ipython().run_line_magic(%r, %r)' % (lspace, t_magic_name, t_magic_arg_s)
      else:
          return '%sget_ipython().set_next_input(%r);get_ipython().run_line_magic(%r, %r)' % \
             (lspace, next_input, t_magic_name, t_magic_arg_s)
function_tokens: def _make_help_call ( target , esc , lspace , next_input = None ) : method = 'pinfo2' if esc == '??' else 'psearch' if '*' in target else 'pinfo' arg = " " . join ( [ method , target ] ) #Prepare arguments for get_ipython().run_line_magic(magic_name, magic_args) t_magic_name , _ , t_magic_arg_s = arg . partition ( ' ' ) t_magic_name = t_magic_name . lstrip ( ESC_MAGIC ) if next_input is None : return '%sget_ipython().run_line_magic(%r, %r)' % ( lspace , t_magic_name , t_magic_arg_s ) else : return '%sget_ipython().set_next_input(%r);get_ipython().run_line_magic(%r, %r)' % ( lspace , next_input , t_magic_name , t_magic_arg_s )