RSSAmplifier

Pete Zaitcev · Apr 18, 2024

sup Python you okay bro

0
Sign in to vote or save

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 =…

Read on zaitcev.livejournal.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.