This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
What do you think this does: class A (object):  def aa(self):  return 'A1' class A (object):  def aa(self):  return 'A2' a = A() print("%s" % a.aa()) It prints "A2". But before you think "what's the big deal, the __dict__ of A is getting updated", how about this: class A(object):  def aa(self):  return 'A1' class A(object):  def bb (self):  return 'A2' a =…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.