[Patches] [ python-Patches-1229280 ] optionally allow mutable builtin types
SourceForge.net
noreply at sourceforge.net
Tue Jun 28 22:11:56 CEST 2005
Patches item #1229280, was opened at 2005-06-28 13:11
Message generated for change (Settings changed) made by gregcouch
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1229280&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 2.4
>Status: Deleted
Resolution: None
Priority: 5
Submitted By: Greg Couch (gregcouch)
Assigned to: Nobody/Anonymous (nobody)
Summary: optionally allow mutable builtin types
Initial Comment:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1229280&group_id=5470
More information about the Patches
mailing list