[issue43908] array.array should remain immutable

Pablo Galindo Salgado report at bugs.python.org
Wed Apr 28 18:18:11 EDT 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

In any case, that's my personal opinion of course.

What we should do is decide collectively if immutability is defined behaviour. If we decide that it is, we need regression tests. If we define that as "nice to have" but ultimately "implementation-defined" we don't.

In any case, I would argue that having tests is good and allow us to know when the behaviour flips without people intending it to, like what happened in this case.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43908>
_______________________________________


More information about the Python-bugs-list mailing list