DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Old And New-style Class

03.09.2006
| 2524 views |
  • submit to reddit
        Old style class
class K:
  ...
New style class
class K(object):
  ...
Some features such as properties are only avaiable in new-style class.
Learn more about <a href=http://www.python.org/doc/newstyle.html>New-style class</a>