Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

In Python 3.x, what must also happen if a class defines __eq__() ?

It must also define __ne__().
It must also define __hash__() if its instances are mutable and need to be hashable.
It must also define __ne__(), __gt__() and __lt__() if its instances need to be sortable.
It must also define __hash__() if its instances are immutable and need to be hashable.
It must also define __cmp__() if its instances need to be sortable.
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon