In python 3, I have to use the
__ge__
__le__ and so on members in the class.

MY question is, how do I combine 2 objects of the same class type using
__eq__
or must it be done from outside?

What do you mean by "combine" ? Or do you mean compare? If the latter, you simply compare each of their attributes, and then return each value combined with a logical and .

Some thing like:

return A.a == B.a and A.b == B.b and A.c == B.c ... etc.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.