|
2 | 2 |
|
3 | 3 | from html.parser import HTMLParser |
4 | 4 |
|
5 | | -# |
6 | | -# Known bugs/divergences between cpython/tstrings and the current PEP 750 spec |
7 | | -# |
8 | | - |
9 | | -# When these go to False, we can remove 'em. |
10 | | - |
11 | | -_BUG_CONSTANT_TEMPLATE = False # π |
12 | | -"""True if constant templates are turned into Constant in the cpython prototype.""" |
13 | | - |
14 | | -_BUG_SINGLE_INTERPOLATION = False # π |
15 | | -"""True if the cpython prototype evaluates `t"{42}"` as Interpolation(...), not Template.""" |
16 | | - |
17 | | -_MISSING_TEMPLATE_ADD_RADD = False # π |
18 | | -"""True if the cpython prototype is missing __add__ and __radd__ for Template.""" |
19 | | - |
20 | | -_MISSING_INTERLEAVING = False # π |
21 | | -"""True if the cpython prototype doesn't interleave strings and interpolations.""" |
22 | | - |
23 | | -_MISSING_IMPLICIT_CONCAT = False # π |
24 | | -"""True if the cpython prototype doesn't support implicit concatenatenation.""" |
25 | | - |
26 | | -_INCORRECT_INIT_ARGS = False # π |
27 | | -"""True if the cpython prototype doesn't have the correct __init__ arguments.""" |
28 | | - |
29 | | -_BUG_INTERPOLATION_MATCH_ARGS = False # π |
30 | | -"""True if the cpython prototype doesn't match the PEP 750 spec for Interpolation.__match_args__.""" |
31 | | - |
32 | | -_BUG_DEBUG_SPECIFIER = False # π |
33 | | -"""True if the cpython prototype doesn't match the PEP 750 spec for debug specifier.""" |
34 | | - |
35 | | -_BUG_DEBUG_SPECIFIER_WITH_FMT = True |
36 | | -"""True if the cpython prototype doesn't match the PEP 750 spec for debug specifier with format.""" |
37 | | - |
38 | | -_INCORRECT_SYNTAX_ERROR_MESSAGE = False # π |
39 | | -"""True if the cpython prototype doesn't match the PEP 750 spec for syntax error message.""" |
40 | | - |
41 | | -_BUG_TEMPLATE_CONSTRUCTOR = False # π |
42 | | -"""True if `Template.__init__()` doesn't match the PEP 750 spec.""" |
43 | | - |
44 | | -_BUG_NESTED_FORMAT_SPEC = False # π |
45 | | -"""True if the cpython prototype doesn't support interpolations within format specifications.""" |
46 | | - |
47 | | -_BUG_INTERPOLATION_CONSTRUCTOR_SEGFAULT = False # π |
48 | | -"""True if invalid constructions of Interpolation lead to segfaults.""" |
49 | | - |
50 | | -_BUG_MANY_EXPRESSIONS = False # π |
51 | | -"""True if the cpython prototype raises MemoryError for templates with >16 expressions.""" |
52 | | - |
53 | | -__BUG_INTERPOLATION_CONSTRUCTOR_IGNORE_CONV = False # π |
54 | | -"""True if the cpython prototype ignores the conversion specifier in Interpolation.__init__.""" |
55 | 5 | # |
56 | 6 | # Debug utilities -- useful when developing some of these examples |
57 | 7 | # |
|
0 commit comments