Skip to content

Inconsistent documentation: are interned strings immortal or not? #144161

@Prometheus3375

Description

@Prometheus3375

Documentation

From HOWTO about python free-threading:

As of the 3.14 release, immortalization is limited to:

  • Code constants: numeric literals, string literals, and tuple literals composed of other constants.
  • Strings interned by sys.intern().

From sys.intern():

Interned strings are not immortal; you must keep a reference to the return value of intern() around to benefit from it.

So, are the interned strings immortal or not?

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions