の間に違いがあるかどうか疑問に思っています
class Test(object):
def __init__(self):
print self.__class__.__name__
と
class Test(object):
def __init__(self):
print type(self).__name__
?
どちらか一方を好む理由はありますか?
(私のユースケースでは、ロガー名を決定するために使用したいのですが、これは問題ではないと思います)