[Python-Dev] PyObject_RichCompareBool identity shortcut
Guido van Rossum
guido at python.org
Thu Apr 28 06:07:29 CEST 2011
On Wed, Apr 27, 2011 at 8:43 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> (I also noted that array.array is like collections.Sequence in failing
> to enforce the container invariants in the presence of NaN values)
Regardless of whether we go any further it would indeed be good to be
explicit about the rules in the language reference and fix the
behavior of collections.Sequence.
I'm not sure about array.array -- it doesn't hold objects so I don't
think there's anything to enforce. It seems to behave the same way as
NumPy arrays when they don't contain objects.
--
--Guido van Rossum (python.org/~guido)
More information about the Python-Dev
mailing list