[Python-Dev] new failing test -- test_compiler

Raymond Hettinger python at rcn.com
Sat Aug 7 13:01:26 CEST 2004


> the string's ob_refcnt field is not
> always
> "correct".  String interning messes with its value.  What occurred
here is
> that we mutated a string which had only one reference left -- that is,
one
> apart from the two that stringobject.c artificially removes to
ob_refcnt
> when
> interning.

Try adding a guard using s->ob_sstate.


Raymond



More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant