You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Infinite recursion in the tokeniser when showing warnings #99891
Turns out that showing warnings in the tokenizer is quite tricky because in the process of showing the warning we need to fetch the encoding which needs to tokenize the first two lines and if the warning is there that leads to an infinite loop. Check for instance with a file contaning:
0b1and x
Notice that this only happens when tokenizing files.
changed the title [-]Unfinite recursion in the tokeniser when showing warnings[/-][+]Infinite recursion in the tokeniser when showing warnings[/+]on Dec 1, 2022
Activity
pythongh-99891: Fix infinite recursion in the tokenizer when showing …
pythongh-99891: Fix infinite recursion in the tokenizer when showing …
gh-99891: Fix infinite recursion in the tokenizer when showing warnin…
[3.11] pythongh-99891: Fix infinite recursion in the tokenizer when s…
[3.11] gh-99891: Fix infinite recursion in the tokenizer when showing…
[-]Unfinite recursion in the tokeniser when showing warnings[/-][+]Infinite recursion in the tokeniser when showing warnings[/+]Merge branch 'main' into fixinspect