S
Sam
Hello
I would like to implement some kind of comparator, that could be
called as instance method, or static method. Here is a trivial pseudo
code of what I would like to execute
.... def __init__(self, value):
.... self.value = value
.... def comp(self, compValue):
.... return self.value == compValue.valueTrue
This is actually achieved by MyClass, how could implement it in order
to accept:
False
I would really appreciate a pointer or a way to complete MyClass in
order to fulfill my requirements. Thank you for your attention.
Sam
I would like to implement some kind of comparator, that could be
called as instance method, or static method. Here is a trivial pseudo
code of what I would like to execute
.... def __init__(self, value):
.... self.value = value
.... def comp(self, compValue):
.... return self.value == compValue.valueTrue
This is actually achieved by MyClass, how could implement it in order
to accept:
False
I would really appreciate a pointer or a way to complete MyClass in
order to fulfill my requirements. Thank you for your attention.
Sam