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
The tokenize module creates TokenInfo objects with a .line attribute. In Python 3.11, each token on a line used the same string object for .line. In 3.12, each token has a new copy of the same string.
Bug report
Bug description:
The tokenize module creates TokenInfo objects with a
.line
attribute. In Python 3.11, each token on a line used the same string object for.line
. In 3.12, each token has a new copy of the same string.This is part of a memory issue reported against coverage.py: nedbat/coveragepy#1791
3.11 re-uses string objects:
3.12 (and above) makes new string objects:
CPython versions tested on:
3.11, 3.12, 3.13, CPython main branch
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: