Bug report
Bug description:
this small program does not roundtrip through tokenize / untokenize -- it appears to mishandle the escaped quote as a \N{NAMED ESCAPE}
bar=1print(f"{bar}\"{{SNOWMAN}} {{foo}}")this is what it produces after a round of untokenization:
$ python3 t.py t3.py bar = 1print(f"{bar} \"{ SNOWMAN}} {{foo}}")annoyingly, tokenize_rt suffers from a different related bug which is why I was investigating this to begin with. an aside, the handling of curly braces in 3.12+ tokenization is a huge pain!
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Bug report
Bug description:
this small program does not roundtrip through
tokenize/untokenize-- it appears to mishandle the escaped quote as a\N{NAMED ESCAPE}this is what it produces after a round of untokenization:
annoyingly,
tokenize_rtsuffers from a different related bug which is why I was investigating this to begin with. an aside, the handling of curly braces in 3.12+ tokenization is a huge pain!CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux