Class Function::Parameter

A parameter. Either a Tuple or a Name (always a Name for Python 3)

Direct supertypes

Indirect supertypes

Predicates

asName

Gets this parameter if it is a Name (not a Tuple)

asTuple

Gets this parameter if it is a Tuple (not a Name)

getDefault
getLocation
getName

Gets the name of this parameter

getPosition

Gets the position of this parameter

getVariable
isKwargs

Holds if this parameter is a ‘kwargs’ parameter. The kwargs in f(a, b, **kwargs).

isSelf

Holds if this parameter is the first parameter of a method. It is not necessarily called “self”

isVarargs

Holds if this parameter is a ‘varargs’ parameter. The varargs in f(a, b, *varargs).

Inherited predicates

Charpred