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

  • 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=>New-style class</a>