Message48529
| Author |
gregcouch |
| Recipients |
| Date |
2005年06月28日.18:57:26 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
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 |
| 2007年08月23日 15:43:24 | admin | link | issue1229239 messages |
| 2007年08月23日 15:43:24 | admin | create |
|