I have a question about __class__ in python.
__class__
The documentation says that __class__ is the class to which a class instance belongs. So I con
Line
NewCounter2.count = 5
Creates new instance level attribute of NewCounter2. After that you accessing two different attributes (NewCounter2.count - instance level attr and NewCounter2.__class__.count - class level attr) that's cause 'strange' behaviour'.
NewCounter2
NewCounter2.count
NewCounter2.__class__.count