 Before version 3 @.@ 0 , Python had two kinds of classes : old @-@ style and new @-@ style . Old @-@ style classes were eliminated in Python 3 @.@ 0 , making all classes new @-@ style . In versions between 2 @.@ 2 and 3 @.@ 0 , both kinds of classes could be used . The syntax of both styles is the same , the difference being whether the class object is inherited from , directly or indirectly ( all new @-@ style classes inherit from object and are instances of type ) . 
