This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients Arfrever, christian.heimes, georg.brandl, loewis, mark.dickinson, meador.inge, ncoghlan, pitrou, python-dev, skrah, vstinner
Date 2012-08-11.21:46:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344721571.39.0.0129155211751.issue15573@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a more formal definition of my last proposal,

v and w are equal iff
v.shape() == w.shape() and
  ((v.format == w.format and v.tobytes() == w.tobytes()) or
   v.tolist() == w.tolist())
if tolist raises an exception for unsupported codes, they are not equal

As usual, the implementation can deviate from the spec as long as it behaves "as-if" it would use this exact algorithm (assuming unlimited memory).
History
Date User Action Args
2012-08-11 21:46:11loewissetrecipients: + loewis, georg.brandl, mark.dickinson, ncoghlan, pitrou, vstinner, christian.heimes, Arfrever, skrah, meador.inge, python-dev
2012-08-11 21:46:11loewissetmessageid: <1344721571.39.0.0129155211751.issue15573@psf.upfronthosting.co.za>
2012-08-11 21:46:10loewislinkissue15573 messages
2012-08-11 21:46:10loewiscreate