class PyvalColorizer:
Method | __init__ |
Undocumented |
Method | colorize |
Entry Point. |
Constant | COLON_TAG |
Undocumented |
Constant | COMMA_TAG |
Undocumented |
Constant | CONST_TAG |
Undocumented |
Constant | ELLIPSIS |
Undocumented |
Constant | ELLIPSIS_TAG |
Undocumented |
Constant | GENERIC_OBJECT_RE |
Undocumented |
Constant | GROUP_TAG |
Undocumented |
Constant | LINEWRAP |
Undocumented |
Constant | LINEWRAP_TAG |
Undocumented |
Constant | LINK_TAG |
Undocumented |
Constant | NEWLINE |
Undocumented |
Constant | NUMBER_TAG |
Undocumented |
Constant | QUOTE_TAG |
Undocumented |
Constant | RE_CHAR_TAG |
Undocumented |
Constant | RE_COMPILE_SIGNATURE |
Undocumented |
Constant | RE_FLAGS_TAG |
Undocumented |
Constant | RE_GROUP_TAG |
Undocumented |
Constant | RE_OP_TAG |
Undocumented |
Constant | RE_REF_TAG |
Undocumented |
Constant | STRING_TAG |
Undocumented |
Constant | UNKNOWN_REPR |
Undocumented |
Constant | UNKNOWN_TAG |
Undocumented |
Constant | WORD_BREAK_OPPORTUNITY |
Undocumented |
Instance Variable | linebreakok |
Undocumented |
Instance Variable | linelen |
Undocumented |
Instance Variable | maxlines |
Undocumented |
Static Method | _get_ast_constant_val |
Undocumented |
Static Method | _is_ast_constant |
Undocumented |
Method | _colorize |
Undocumented |
Method | _colorize_ast |
Undocumented |
Method | _colorize_ast_attribute |
Undocumented |
Method | _colorize_ast_binary_op |
Undocumented |
Method | _colorize_ast_bool_op |
Undocumented |
Method | _colorize_ast_call |
Undocumented |
Method | _colorize_ast_call_generic |
Undocumented |
Method | _colorize_ast_constant |
Undocumented |
Method | _colorize_ast_generic |
Undocumented |
Method | _colorize_ast_name |
Undocumented |
Method | _colorize_ast_re |
Undocumented |
Method | _colorize_ast_subscript |
Undocumented |
Method | _colorize_ast_unary_op |
Undocumented |
Method | _colorize_dict |
Undocumented |
Method | _colorize_iter |
Undocumented |
Method | _colorize_re_flags |
Undocumented |
Method | _colorize_re_pattern |
Undocumented |
Method | _colorize_re_pattern_str |
Undocumented |
Method | _colorize_re_tree |
Undocumented |
Method | _colorize_str |
Undocumented |
Method | _insert_comma |
Undocumented |
Method | _multiline |
Helper for container-type colorizers. First, try calling func(pyval, state, **kwargs) with linebreakok set to false; and if that fails, then try again with it set to true. |
Method | _output |
No summary |
Method | _trim_result |
Undocumented |
Undocumented
Parameters | |
linelen:Optional[ | Undocumented |
maxlines:int | Undocumented |
linebreakok:bool | Undocumented |
Parameters | |
pyval:Any | Undocumented |
Returns | |
ColorizedPyvalRepr | Undocumented |
Undocumented
Value |
|
Undocumented
Parameters | |
node:ast.AST | Undocumented |
Returns | |
Any | Undocumented |
Undocumented
Parameters | |
node:ast.AST | Undocumented |
Returns | |
bool | Undocumented |
Undocumented
Parameters | |
pyval:Any | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
pyval:ast.AST | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
pyval:ast.Attribute | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
pyval:ast.BinOp | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
pyval:ast.BoolOp | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
node:ast.Call | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
node:ast.Call | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
pyval:ast.AST | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
pyval:ast.AST | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
pyval:ast.Name | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
node:ast.Call | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
node:ast.Subscript | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
pyval:ast.UnaryOp | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
items:Iterable[ | Undocumented |
state:_ColorizerState | Undocumented |
prefix:str | Undocumented |
suffix:str | Undocumented |
Undocumented
Parameters | |
pyval:Iterable[ | Undocumented |
state:_ColorizerState | Undocumented |
prefix:Optional[ | Undocumented |
suffix:Optional[ | Undocumented |
Undocumented
Parameters | |
flags:int | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
pat:AnyStr | Undocumented |
state:_ColorizerState | Undocumented |
prefix:AnyStr | Undocumented |
Undocumented
Parameters | |
pat:AnyStr | Undocumented |
state:_ColorizerState | Undocumented |
Undocumented
Parameters | |
tree:Sequence[ | Undocumented |
state:_ColorizerState | Undocumented |
noparen:bool | Undocumented |
groups:Dict[ | Undocumented |
Undocumented
Parameters | |
pyval:AnyStr | Undocumented |
state:_ColorizerState | Undocumented |
prefix:AnyStr | Undocumented |
escape_fcn:Callable[ | Undocumented |
Undocumented
Parameters | |
indent:int | Undocumented |
state:_ColorizerState | Undocumented |
Parameters | |
func:Callable[ | Undocumented |
pyval:Iterable[ | Undocumented |
state:_ColorizerState | Undocumented |
**kwargs:Any | Undocumented |
PyvalColorizer.linelen
will be line-wrapped. If the total number of lines exceeds PyvalColorizer.maxlines
, then raise a _Maxlines
exception.Parameters | |
s:AnyStr | Undocumented |
css_class:Optional[ | Undocumented |
state:_ColorizerState | Undocumented |
link:bool | Undocumented |