mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
Use FLAG_REF always for interned strings. Refcounts of interned string is very unstable. When compiling same source, refcounts of interned string in the output may be 1 or >1. It makes FLAG_REF usage unstable. To help reproducible build, use FLAG_REF for interned string even if refcnt(obj)==1.
2 lines
132 B
ReStructuredText
2 lines
132 B
ReStructuredText
``marshal.dumps()`` uses ``FLAG_REF`` for all interned strings. This makes
|
|
output more deterministic and helps reproducible build.
|