Undocumented
Function | color |
Undocumented |
Function | color2 |
Undocumented |
Function | color_re |
Undocumented |
Function | extract_expr |
Undocumented |
Function | test_ast_annotation |
Undocumented |
Function | test_ast_attribute |
Undocumented |
Function | test_ast_bin_op |
Undocumented |
Function | test_ast_bool_op |
Undocumented |
Function | test_ast_call |
Undocumented |
Function | test_ast_call_args |
Undocumented |
Function | test_ast_constants |
Undocumented |
Function | test_ast_dict |
Undocumented |
Function | test_ast_ellipsis |
Undocumented |
Function | test_ast_list_tuple |
Undocumented |
Function | test_ast_regex |
Undocumented |
Function | test_ast_set |
Undocumented |
Function | test_ast_slice |
Undocumented |
Function | test_ast_unary_op |
Undocumented |
Function | test_buggy_live_object |
Undocumented |
Function | test_bytes_multiline |
Undocumented |
Function | test_bytes_str |
Binary strings (bytes) are handled properly: |
Function | test_custom_live_object |
Undocumented |
Function | test_dictionaries |
Dicts are treated just like lists, except that the ":" is also tagged as "op". |
Function | test_frozenset |
Undocumented |
Function | test_inline_list |
No summary |
Function | test_line_wrapping |
Undocumented |
Function | test_long_numbers |
Long ints will get wrapped if they're big enough. |
Function | test_multiline_list |
Undocumented |
Function | test_multiline_list2 |
Undocumented |
Function | test_multiline_set |
Undocumented |
Function | test_operator_precedences |
Undocumented |
Function | test_re_branching |
Undocumented |
Function | test_re_char_classes |
Undocumented |
Function | test_re_flags |
Undocumented |
Function | test_re_literals |
Undocumented |
Function | test_re_lookahead_behinds |
Undocumented |
Function | test_re_multiline |
Undocumented |
Function | test_re_named_groups |
Undocumented |
Function | test_re_not_literal |
Undocumented |
Function | test_re_ranges |
Undocumented |
Function | test_re_references |
Undocumented |
Function | test_re_repeats |
Undocumented |
Function | test_re_subpatterns |
Undocumented |
Function | test_repr_text |
Test a few representations, with a plain text version. |
Function | test_simple_types |
Integers, floats, None, and complex numbers get printed using str, with no syntax highlighting. |
Function | test_strings |
Strings have their quotation marks tagged as 'quote'. Characters are escaped using the 'string-escape' encoding. |
Function | test_strings_multiline |
Strings containing newlines are automatically rendered as multiline strings. |
Function | test_strings_quote |
Currently, the "'" quote is always used, because that's what the 'string-escape' encoding expects. |
Function | test_strings_special_chars |
Undocumented |
Function | test_summary |
To generate summary-reprs, use maxlines=1 and linebreakok=False: |
Function | test_tuples_one_value |
Tuples that contains only one value need an ending comma. |
Function | test_unicode_str |
Unicode strings are handled properly. |
Undocumented
Parameters | |
v:Any | Undocumented |
linebreakok:bool | Undocumented |
maxlines:int | Undocumented |
linelen:int | Undocumented |
Returns | |
str | Undocumented |
Undocumented
Parameters | |
s:Union[ | Undocumented |
check_roundtrip:bool | Undocumented |
Returns | |
str | Undocumented |
Undocumented
Parameters | |
_ast:ast.Module | Undocumented |
Returns | |
ast.AST | Undocumented |