Consider the following program.
class A():
class __B():
def __c(self):
pass
a = A()
dir(a)
['_A__B', '__doc__', '__module__']
dir(a._A__B)
['_B__c', '__doc__', '__module__']
^^^^^^^
Why is this not ___B__c why is not there not 3 _s.What is the logic here?
According to name mangling,it should be _class and class here is __B.So where are the 2 __s