def ipdocstring(func):
 if (func.__doc__ is not None):
  func.__doc__ = ip2py(func.__doc__)
 return func

def ipdocstring ( func ) : if ( func . __doc__ is not None ) : func . __doc__ = ip2py ( func . __doc__ ) return func
change the function docstring via ip2py .