rope.refactor.wildcards

Classes

Wildcard

Suspect

DefaultWildcard

The default restructuring wildcard

Functions

parse_arg(arg)

Module Contents

class rope.refactor.wildcards.Wildcard
get_name()

Return the name of this wildcard

matches(suspect, arg)

Return True if suspect matches this wildcard

class rope.refactor.wildcards.Suspect(pymodule, node, name)
name
pymodule
node
class rope.refactor.wildcards.DefaultWildcard(project)

The default restructuring wildcard

The argument passed to this wildcard is in the key1=value1,key2=value2,... format. Possible keys are:

  • name - for checking the reference

  • type - for checking the type

  • object - for checking the object

  • instance - for checking types but similar to builtin isinstance

  • exact - matching only occurrences with the same name as the wildcard

  • unsure - matching unsure occurrences

project
get_name()
matches(suspect, arg='')
rope.refactor.wildcards.parse_arg(arg)