eric7.DebugClients.Python.DebugVariables
Module implementing classes and functions to dump variable contents.
Global Attributes
| _MapCount | 
| _TryArray | 
| _TypeMap | 
| arrayResolver | 
| defaultResolver | 
| dictResolver | 
| dictViewResolver | 
| listResolver | 
| multiValueDictResolver | 
| ndarrayResolver | 
| qtResolver | 
| setResolver | 
Classes
Functions
| _initTypeMap | Protected function to initialize the type map. | 
| getResolver | Public method to get the resolver based on the type info of an object. | 
| updateTypeMap | Public function to update the type map based on module imports. | 
ArrayResolver
    Class used to resolve from array.array including some meta data.
Derived from
BaseResolver
Class Attributes
Class Methods
Methods
| getVariableList | Public method to get the attributes of a variable as a list. | 
| resolve | Public method to get an attribute from a variable. | 
Static Methods
ArrayResolver.getVariableList
getVariableList(var)
        Public method to get the attributes of a variable as a list.
- var (Any)
- 
variable to be converted
- Yield:
- 
tuple containing the batch start index and a list
            containing the variable attributes
- Yield Type:
- 
tuple of (int, list)
ArrayResolver.resolve
resolve(var, attribute)
        Public method to get an attribute from a variable.
- var (array.array)
- 
variable to extract an attribute or value from
- attribute (str)
- 
id of the value to extract
- Return:
- 
value of the attribute
- Return Type:
- 
Any
BaseResolver
    Base class of the resolver class tree.
Derived from
None
Class Attributes
Class Methods
Methods
| getVariableList | Public method to get the attributes of a variable as a list. | 
| resolve | Public method to get an attribute from a variable. | 
Static Methods
BaseResolver.getVariableList
getVariableList(var)
        Public method to get the attributes of a variable as a list.
- var (Any)
- 
variable to be converted
- Return:
- 
list containing the variable attributes
- Return Type:
- 
list
BaseResolver.resolve
resolve(var, attribute)
        Public method to get an attribute from a variable.
- var (Any)
- 
variable to extract an attribute or value from
- attribute (str)
- 
name of the attribute to extract
- Return:
- 
value of the attribute
- Return Type:
- 
Any
DefaultResolver
    Class used to resolve the default way.
Derived from
BaseResolver
Class Attributes
Class Methods
Methods
| getVariableList | Public method to get the attributes of a variable as a list. | 
Static Methods
DefaultResolver.getVariableList
getVariableList(var)
        Public method to get the attributes of a variable as a list.
- var (Any)
- 
variable to be converted
- Yield:
- 
tuple containing the batch start index and a list
            containing the variable attributes
- Yield Type:
- 
tuple of (int, list)
DictResolver
    Class used to resolve from a dictionary.
Derived from
BaseResolver
Class Attributes
Class Methods
Methods
| getVariableList | Public method to get the attributes of a variable as a list. | 
| keyToStr | Public method to get a string representation for a key. | 
| resolve | Public method to get an attribute from a variable. | 
Static Methods
DictResolver.getVariableList
getVariableList(var)
        Public method to get the attributes of a variable as a list.
- var (Any)
- 
variable to be converted
- Yield:
- 
tuple containing the batch start index and a list
            containing the variable attributes
- Yield Type:
- 
tuple of (int, list)
DictResolver.keyToStr
keyToStr(key)
        Public method to get a string representation for a key.
- key (Any)
- 
key to be converted
- Return:
- 
string representation of the given key
- Return Type:
- 
str
DictResolver.resolve
resolve(var, attribute)
        Public method to get an attribute from a variable.
- var (dict)
- 
variable to extract an attribute or value from
- attribute (str)
- 
name of the attribute to extract
- Return:
- 
value of the attribute
- Return Type:
- 
Any
DictViewResolver
    Class used to resolve from dict views.
Derived from
ListResolver
Class Attributes
Class Methods
Methods
| getVariableList | Public method to get the attributes of a variable as a list. | 
| resolve | Public method to get an attribute from a variable. | 
Static Methods
DictViewResolver.getVariableList
getVariableList(var)
        Public method to get the attributes of a variable as a list.
- var (Any)
- 
variable to be converted
- Yield:
- 
tuple containing the batch start index and a list
            containing the variable attributes
- Yield Type:
- 
tuple of (int, list)
DictViewResolver.resolve
resolve(var, attribute)
        Public method to get an attribute from a variable.
- var (dict_items, dict_keys or dict_values)
- 
variable to extract an attribute or value from
- attribute (str)
- 
id of the value to extract
- Return:
- 
value of the attribute
- Return Type:
- 
Any
ListResolver
    Class used to resolve from a tuple or list.
Derived from
BaseResolver
Class Attributes
Class Methods
Methods
| getVariableList | Public method to get the attributes of a variable as a list. | 
| resolve | Public method to get an attribute from a variable. | 
Static Methods
ListResolver.getVariableList
getVariableList(var)
        Public method to get the attributes of a variable as a list.
- var (Any)
- 
variable to be converted
- Yield:
- 
tuple containing the batch start index and a list
            containing the variable attributes
- Yield Type:
- 
tuple of (int, list)
ListResolver.resolve
resolve(var, attribute)
        Public method to get an attribute from a variable.
- var (tuple or list)
- 
variable to extract an attribute or value from
- attribute (str)
- 
name of the attribute to extract
- Return:
- 
value of the attribute
- Return Type:
- 
Any
MultiValueDictResolver
    Class used to resolve from Django multi value dictionaries.
Derived from
DictResolver
Class Attributes
Class Methods
Methods
| getVariableList | Public method to get the attributes of a variable as a list. | 
| resolve | Public method to get an attribute from a variable. | 
Static Methods
MultiValueDictResolver.getVariableList
getVariableList(var)
        Public method to get the attributes of a variable as a list.
- var (Any)
- 
variable to be converted
- Yield:
- 
tuple containing the batch start index and a list
            containing the variable attributes
- Yield Type:
- 
tuple of (int, list)
MultiValueDictResolver.resolve
resolve(var, attribute)
        Public method to get an attribute from a variable.
- var (MultiValueDict)
- 
variable to extract an attribute or value from
- attribute (str)
- 
name of the attribute to extract
- Return:
- 
value of the attribute
- Return Type:
- 
Any
NdArrayResolver
    Class used to resolve from numpy ndarray including some meta data.
Derived from
BaseResolver
Class Attributes
Class Methods
Methods
| __isNumeric | Private method to check, if an array is of a numeric type. | 
| getVariableList | Public method to get the attributes of a variable as a list. | 
| resolve | Public method to get an attribute from a variable. | 
Static Methods
NdArrayResolver.__isNumeric
__isNumeric(arr)
        Private method to check, if an array is of a numeric type.
- arr (ndarray)
- 
array to check
- Return:
- 
flag indicating a numeric array
- Return Type:
- 
bool
NdArrayResolver.getVariableList
getVariableList(var)
        Public method to get the attributes of a variable as a list.
- var (Any)
- 
variable to be converted
- Yield:
- 
tuple containing the batch start index and a list
            containing the variable attributes
- Yield Type:
- 
tuple of (int, list)
NdArrayResolver.resolve
resolve(var, attribute)
        Public method to get an attribute from a variable.
- var (ndarray)
- 
variable to extract an attribute or value from
- attribute (str)
- 
id of the value to extract
- Return:
- 
value of the attribute
- Return Type:
- 
Any
QtResolver
    Class used to resolve the Qt implementations.
Derived from
BaseResolver
Class Attributes
Class Methods
Methods
| getVariableList | Public method to get the attributes of a variable as a list. | 
| resolve | Public method to get an attribute from a variable. | 
Static Methods
QtResolver.getVariableList
getVariableList(var)
        Public method to get the attributes of a variable as a list.
- var (Any)
- 
variable to be converted
- Yield:
- 
tuple containing the batch start index and a list
            containing the variable attributes
- Yield Type:
- 
tuple of (int, list)
QtResolver.resolve
resolve(var, attribute)
        Public method to get an attribute from a variable.
- var (Qt objects)
- 
variable to extract an attribute or value from
- attribute (str)
- 
name of the attribute to extract
- Return:
- 
value of the attribute
- Return Type:
- 
Any
SetResolver
    Class used to resolve from a set or frozenset.
Derived from
BaseResolver
Class Attributes
Class Methods
Methods
| getVariableList | Public method to get the attributes of a variable as a list. | 
| resolve | Public method to get an attribute from a variable. | 
Static Methods
SetResolver.getVariableList
getVariableList(var)
        Public method to get the attributes of a variable as a list.
- var (Any)
- 
variable to be converted
- Yield:
- 
tuple containing the batch start index and a list
            containing the variable attributes
- Yield Type:
- 
tuple of (int, list)
SetResolver.resolve
resolve(var, attribute)
        Public method to get an attribute from a variable.
- var (tuple or list)
- 
variable to extract an attribute or value from
- attribute (str)
- 
id of the value to extract
- Return:
- 
value of the attribute
- Return Type:
- 
Any
_initTypeMap
_initTypeMap()
    Protected function to initialize the type map.
getResolver
getResolver(obj)
    Public method to get the resolver based on the type info of an object.
- obj (Any)
- 
object to get resolver for
- Return:
- 
resolver
- Return Type:
- 
BaseResolver
updateTypeMap
updateTypeMap()
    Public function to update the type map based on module imports.