News for hackers. Stuff that matters.
Re:Ask HN: What does Ruby have that Python doesn't? by rincewind on Friday August 22, 2008 @02:18PM (#283992)
The "self" argument is great. It is the reason why methods in Python are normal functions and not special "methods".

It also makes this pointless but interesting piece of code possible:

  class foo(object):
     def subclassme(self):
          class subclass(type(self)):
              def __init__(self2):
                  self2.parentobj=self
          return subclass()

There are no comments on this comment yet.