def func(anything):
return something
import math
import re
# оба должны быть True
func(re) <= re
func(re) >= math
TypeError: unorderable types: module() >= module()
class A(object):
def __ge__(self, other):
return True
def __le__(self, other):
return True