[issue43908] array.array should remain immutable
hai shi
report at bugs.python.org
Thu Apr 22 02:46:09 EDT 2021
hai shi <shihai1991 at 126.com> added the comment:
> I would like this type (and other types that have been or will be converted to heap types) to remain immutable.
Hi, Guido. I am interested in what have been broken in fact? or it's a defined behavior?
> I think we may need a new flag bit meaning "built-in type, immutable". This bit should not be inherited of course.
Aggreed. Adding a new `tp_flag` is a lightweight solution.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43908>
_______________________________________
More information about the Python-bugs-list
mailing list