rope.base.pynamesdef

Classes

DefinedName

References to PyObject inside python programs

AssignedName

References to PyObject inside python programs

UnboundName

References to PyObject inside python programs

ParameterName

References to PyObject inside python programs

AssignmentValue

An assigned expression

EvaluatedName

A name whose object will be evaluated later

ImportedModule

References to PyObject inside python programs

ImportedName

References to PyObject inside python programs

Module Contents

class rope.base.pynamesdef.DefinedName(pyobject)

Bases: rope.base.pynames.DefinedName

References to PyObject inside python programs

pyobject
get_object()

Return the PyObject object referenced by this PyName

get_definition_location()

Return a (module, lineno) tuple

class rope.base.pynamesdef.AssignedName(lineno=None, module=None, pyobject=None)

Bases: rope.base.pynames.AssignedName

References to PyObject inside python programs

lineno = None
module = None
assignments = []
pyobject
get_object()

Return the PyObject object referenced by this PyName

get_definition_location()

Returns a (module, lineno) tuple

invalidate()

Forget the PyObject this PyName holds

class rope.base.pynamesdef.UnboundName(pyobject=None)

Bases: rope.base.pynames.UnboundName

References to PyObject inside python programs

pyobject = None
get_object()

Return the PyObject object referenced by this PyName

get_definition_location()

Return a (module, lineno) tuple

class rope.base.pynamesdef.ParameterName(pyfunction, index)

Bases: rope.base.pynames.ParameterName

References to PyObject inside python programs

pyfunction
index
get_object()

Return the PyObject object referenced by this PyName

get_objects()

Returns the list of objects passed as this parameter

get_definition_location()

Return a (module, lineno) tuple

class rope.base.pynamesdef.AssignmentValue(ast_node, levels=None, evaluation='', assign_type=False, type_hint=None)

Bases: rope.base.pynames.AssignmentValue

An assigned expression

ast_node
evaluation = ''
assign_type = False
type_hint = None
get_lineno()
class rope.base.pynamesdef.EvaluatedName(callback, module=None, lineno=None)

Bases: rope.base.pynames.EvaluatedName

A name whose object will be evaluated later

module = None
lineno = None
callback
pyobject
get_object()

Return the PyObject object referenced by this PyName

get_definition_location()

Return a (module, lineno) tuple

invalidate()

Forget the PyObject this PyName holds

class rope.base.pynamesdef.ImportedModule(importing_module: rope.base.pyobjectsdef.PyModule | rope.base.pyobjectsdef.PyPackage, module_name=None, level=0, resource=None)

Bases: rope.base.pynames.ImportedModule

References to PyObject inside python programs

importing_module
module_name = None
level = 0
resource = None
pymodule
get_object()

Return the PyObject object referenced by this PyName

get_definition_location()

Return a (module, lineno) tuple

class rope.base.pynamesdef.ImportedName(imported_module, imported_name)

Bases: rope.base.pynames.ImportedName

References to PyObject inside python programs

imported_module
imported_name
get_object()

Return the PyObject object referenced by this PyName

get_definition_location()

Return a (module, lineno) tuple