#!/usr/bin/env python
# -*- coding: utf-8 -*-


class OldStyle:

    def __init__(self, name, description):
        self.name = name
        self.description = description


class NewStyle(object):

    def __init__(self, name, description):
        self.name = name
        self.description = description


if __name__ == '__main__':
    old = OldStyle('old', 'Old style class')
    print old
    print dir(old)

    new = NewStyle('new', 'New style class')
    print type(new)
    print dir(new)


@@ -401,17 +401,106 @@
 int 
-dir(old)%0A
+type(old)%0A    print dir(old)%0A    print '---------------------------------------------------------'
 %0A   
@@ -533,32 +533,46 @@
 w style class')%0A
+    print new%0A
     print type(n

update code