rustpython-unparser 0.2.6

A complete unparser for RustPython ASTs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
escaped_string_expr = "'\"'''\"\"\"{}\\"
escaped_unicode_expr = u"'\"'''\"\"\"{}\\"  # fmt: skip
escaped_bytes_expr = b"'\"'''\"\"\"{}\\"


# real code from yaml.constructor
# https://github.com/yaml/pyyaml/blob/69c141adcf805c5ebdc9ba519927642ee5c7f639/lib/yaml/constructor.py#L265
inf_value = 1e300

# if inf_value would not be initialized in scientific notation
# the following loop would run for a long time
while inf_value != inf_value * inf_value:
    inf_value *= inf_value

scientific_fraction = 1e-69

complex_number = 3 + 4j