Posts by Tiago Stasaitis • 39 points
1 post
-
3
votes1
answer193
viewsQ: Some Python codes display "__class__" when creating certain classes. What is it for?
I realized that in certain codes in Python is used a __class__. What good is the same? Example: class abstract1 (object): def __init__(self): if self.__class__ == abstract1: raise…