How can i change the __cmp__ function of an instance (not in class)? Ex: class foo: def __init__(self, num):
I have a session bean that provides a business method, in which it creates several CMP entity beans, something like this
Question What is the (non-trivial) difference between the following two x86 instructions? 39 /rCMP r/m32,r32Compare r32 with r/m32
class x: def __init__(self,name): 开发者_高级运维self.name=name def __str__(self): return self.name