[Python-Dev] new failing test -- test_compiler (original) (raw)
Raymond Hettinger python at rcn.com
Sat Aug 7 13:01:26 CEST 2004
- Previous message: [Python-Dev] new failing test -- test_compiler
- Next message: [Python-Dev] new failing test -- test_compiler
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
the string's obrefcnt 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
- Previous message: [Python-Dev] new failing test -- test_compiler
- Next message: [Python-Dev] new failing test -- test_compiler
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]