How does python list.remove()
work internally?
For example, when adding to Java sets, Java compares both hash()
and equals()
methods. Does python compare the __eq__()
method or something else?
Alternatively, does the implementation vary? If so, what is the implementation for CPython, or Anaconda Python (presumably CPython)?