[Python-Dev] new failing test -- test_compiler

Tim Peters tim.peters at gmail.com
Sat Aug 7 22:56:46 CEST 2004


Weird.  The very first time PyString_InternInPlace() sees

"abcdfeghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"

it's *already* marked as SSTATE_INTERNED_MORTAL .  So
PyString_InternInPlace() just returns, without adding it to the
interned dict.  The error we get later is inevitable then.

This happens while compile.c's PyCode_New is doing its "Intern
selected string constants" loop.

PyString_InternInPlace()  is the only thing that marks a string as
being in the SSTATE_INTERNED_MORTAL state, is it's A Mystery how this
string got so marked.  Unless it's a wild store.


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