eric6.DebugClients.Python.DebugVariables
Module implementing classes and functions to dump variable contents.
Global Attributes
MaxItemsToHandle |
TooLargeAttribute |
TooLargeMessage |
_TypeMap |
arrayResolver |
defaultResolver |
dictResolver |
listResolver |
multiValueDictResolver |
ndarrayResolver |
setResolver |
Classes
Functions
_initTypeMap |
Protected function to initialize the type map. |
getType |
Public method to get the type information for an object. |
ArrayItemsContainer
Class to store array.array items.
Derived from
None
Class Attributes
Class Methods
Methods
Static Methods
ArrayResolver
Class used to resolve from array.array including some meta data.
Derived from
BaseResolver
Class Attributes
Class Methods
Methods
getDictionary |
Public method to get the attributes of a variable as a dictionary. |
resolve |
Public method to get an attribute from a variable. |
Static Methods
ArrayResolver.getDictionary
getDictionary(var)
Public method to get the attributes of a variable as a dictionary.
- var (any)
-
variable to be converted
- Returns:
-
dictionary containing the variable attributes
- Return Type:
-
dict
ArrayResolver.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
- Returns:
-
value of the attribute
- Return Type:
-
any
BaseResolver
Base class of the resolver class tree.
Derived from
object
Class Attributes
Class Methods
Methods
getDictionary |
Public method to get the attributes of a variable as a dictionary. |
resolve |
Public method to get an attribute from a variable. |
Static Methods
BaseResolver.getDictionary
getDictionary(var)
Public method to get the attributes of a variable as a dictionary.
- var (any)
-
variable to be converted
- Returns:
-
dictionary containing the variable attributes
- Return Type:
-
dict
- Raises NotImplementedError:
-
raised to indicate a missing
implementation
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
- Returns:
-
value of the attribute
- Return Type:
-
any
- Raises NotImplementedError:
-
raised to indicate a missing
implementation
DefaultResolver
Class used to resolve the default way.
Derived from
BaseResolver
Class Attributes
Class Methods
Methods
getDictionary |
Public method to get the attributes of a variable as a dictionary. |
resolve |
Public method to get an attribute from a variable. |
Static Methods
DefaultResolver.getDictionary
getDictionary(var)
Public method to get the attributes of a variable as a dictionary.
- var (any)
-
variable to be converted
- Returns:
-
dictionary containing the variable attributes
- Return Type:
-
dict
DefaultResolver.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
- Returns:
-
value of the attribute
- Return Type:
-
any
DictResolver
Class used to resolve from a dictionary.
Derived from
BaseResolver
Class Attributes
Class Methods
Methods
getDictionary |
Public method to get the attributes of a variable as a dictionary. |
keyToStr |
Public method to get a string representation for a key. |
resolve |
Public method to get an attribute from a variable. |
Static Methods
DictResolver.getDictionary
getDictionary(var)
Public method to get the attributes of a variable as a dictionary.
- var (any)
-
variable to be converted
- Returns:
-
dictionary containing the variable attributes
- Return Type:
-
dict
DictResolver.keyToStr
keyToStr(key)
Public method to get a string representation for a key.
- key (any)
-
key to be converted
- Returns:
-
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
- Returns:
-
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
getDictionary |
Public method to get the attributes of a variable as a dictionary. |
resolve |
Public method to get an attribute from a variable. |
Static Methods
ListResolver.getDictionary
getDictionary(var)
Public method to get the attributes of a variable as a dictionary.
- var (any)
-
variable to be converted
- Returns:
-
dictionary containing the variable attributes
- Return Type:
-
dict
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
- Returns:
-
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
getDictionary |
Public method to get the attributes of a variable as a dictionary. |
resolve |
Public method to get an attribute from a variable. |
Static Methods
MultiValueDictResolver.getDictionary
getDictionary(var)
Public method to get the attributes of a variable as a dictionary.
- var (any)
-
variable to be converted
- Returns:
-
dictionary containing the variable attributes
- Return Type:
-
dict
MultiValueDictResolver.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
- Returns:
-
value of the attribute
- Return Type:
-
any
NdArrayItemsContainer
Class to store ndarray items.
Derived from
None
Class Attributes
Class Methods
Methods
Static Methods
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. |
getDictionary |
Public method to get the attributes of a variable as a dictionary. |
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
- Returns:
-
flag indicating a numeric array
- Return Type:
-
bool
NdArrayResolver.getDictionary
getDictionary(var)
Public method to get the attributes of a variable as a dictionary.
- var (any)
-
variable to be converted
- Returns:
-
dictionary containing the variable attributes
- Return Type:
-
dict
NdArrayResolver.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
- Returns:
-
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
getDictionary |
Public method to get the attributes of a variable as a dictionary. |
resolve |
Public method to get an attribute from a variable. |
Static Methods
SetResolver.getDictionary
getDictionary(var)
Public method to get the attributes of a variable as a dictionary.
- var (any)
-
variable to be converted
- Returns:
-
dictionary containing the variable attributes
- Return Type:
-
dict
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
- Returns:
-
value of the attribute
- Return Type:
-
any
_initTypeMap
_initTypeMap()
Protected function to initialize the type map.
getType
getType(obj)
Public method to get the type information for an object.
- obj (any)
-
object to get type information for
- Returns:
-
tuple containing the type, type name, type string and resolver
- Return Type:
-
tuple of type, str, str, BaseResolver