Sha256: 6bad4e5de7b10c2afd4115f4abe17ae26f97bb619aa66a0e8b180018024d51e0
Contents?: true
Size: 1.4 KB
Versions: 30
Compression:
Stored size: 1.4 KB
Contents
import java class A: def __init__(self, a): self.a = a def __eq__(self, other): return self.__class__ == other.__class__ and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class AJ(java.lang.Object, java.io.Serializable): def __init__(self, a): self.a = a def __eq__(self, other): return self.__class__ == other.__class__ and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class N(object): def __init__(self, a): self.a = a def __eq__(self, other): return self.__class__ == other.__class__ and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) class NL(list): def __init__(self, a, *x): list.__init__(self, x) self.a = a def __eq__(self, other): return (self.__class__ == other.__class__ and list.__eq__(self, other) and self.__dict__ == other.__dict__) def __ne__(self, other): return not (self == other) class NT(tuple): def __new__(typ, a, *x): nt = tuple.__new__(typ, x) nt.a = a return nt def __eq__(self, other): return (self.__class__ == other.__class__ and tuple.__eq__(self, other) and self.__dict__ == other.__dict__) def __ne__(self, other): return not (self == other)
Version data entries
30 entries across 30 versions & 1 rubygems