#NEWLINE# def get_function_parameters( callDef ) : #NEWLINE# #INDENT# '  Return list function parameters, prepared for sublime completion.\n    Tuple contains parameter name and default value\n\n    Parameters list excludes: self, *args and **kwargs parameters\n\n    :type callDef: jedi.api_classes.CallDef\n    :rtype: list of (str, str or None)\n    ' #NEWLINE# if ( not callDef ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# params = [ ] #NEWLINE# for param in callDef . params : #NEWLINE# #INDENT# if ( not param . name ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# cleaned_param = param . description . rstrip ( ',' ) #NEWLINE# if ( ( '*' in cleaned_param ) or ( cleaned_param in [ 'self' , '...' ] ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# params . append ( [ s . strip ( ) for s in cleaned_param . split ( '=' ) ] ) #NEWLINE# #UNINDENT# return params