Module demonstrating the constant representations.
Constant | A |
The value of a constant is rendered with syntax highlighting. Internal and external links are generated to references of classes/functions used inside the constant |
Constant | A |
Nested objects are colorized. |
Constant | A |
Multiline strings are always rendered in triple quotes. |
Constant | A |
Strings are always rendered in single quotes, and appropriate escaping is added when required. |
Constant | FUNCTION |
Function calls are colorized. |
Constant | OPERATORS |
Operators are colorized and parenthesis are added when syntactically required. |
Constant | RE |
Multiline regex patterns are rendered as string. |
Constant | RE |
Regular expressions have special colorizing that add syntax highlight to the regex components. |
Constant | RE |
Unicode is supported in regular expressions. |
Constant | UNSUPPORTED |
A lot of objects can be colorized: function calls, strings, lists, dicts, sets, frozensets, operators, annotations, names, compiled regular expressions, etc. But when dealing with usupported constructs, like lamba functions, it will display the value without colorization. |
The value of a constant is rendered with syntax highlighting. Internal and external links are generated to references of classes/functions used inside the constant
Value |
|
Multiline strings are always rendered in triple quotes.
Value |
|
Strings are always rendered in single quotes, and appropriate escaping is added when required.
Continuing lines are wrapped with symbol: "↵" after reaching the maximum number of caracters per line (defaults to 80), change this value with option --pyval-repr-linelen.
Unicode is supported.
Value |
|
Operators are colorized and parenthesis are added when syntactically required.
Value |
|
Multiline regex patterns are rendered as string.
"..." is added when reaching the maximum number of lines for constant representation (defaults to 7), change this value with option --pyval-repr-maxlines.
Value |
|
Regular expressions have special colorizing that add syntax highlight to the regex components.
Value |
|
A lot of objects can be colorized: function calls, strings, lists, dicts, sets, frozensets, operators, annotations, names, compiled regular expressions, etc. But when dealing with usupported constructs, like lamba functions, it will display the value without colorization.
Value |
|