Skip to content

Disallow mutating immutable objects #20

Description

@encukou

From Mark's proposal

New API should not mutate immutable objects. The biggest offenders are currently:

  • tuples (for those we need better creation options -- from array&size, from list)
  • strings/bytes (for these we might need a string builder API – a list-of-strings has overhead over a list of char*)
  • type objects (for these we might want a "set IMMUTABLE flag" function to be called after the type is set up)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidelineTo be included in guidelines PEP

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions