This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: optionally allow mutable builtin types
Type: Stage:
Components: Interpreter Core Versions: Python 2.4
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: gregcouch
Priority: normal Keywords: patch

Created on 2005-06-28 20:11 by gregcouch, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Python-2.4-wrappy.patch gregcouch, 2005-06-28 20:11 Patch for optional mutable builtin types
Messages (1)
msg48532 - (view) Author: Greg Couch (gregcouch) Date: 2005-06-28 20:11
Non-heap types, aka builtin types, cannot have their
attributes changed by Python code -- see
Objects/typeobject.c: type_setattro().  This limitation
is good for Python's core builtin types (int, float,
list, dict, ...), but not necessarily for non-heap
types in extension modules.  The attached patch allows
for non-heap types to mutate iff the
Py_TPFLAGS_MUTABLE_BUILTIN flag is set.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42137
2005-06-28 20:11:03gregcouchcreate