pr has been called 1 time already
pr has been called 2 times already
func called
before class definition
pr has been called 3 times already
pr has been called 4 times already
after class definition
pr has been called 5 times already
A init called
instance of A created
pr has been called 6 times already
A method called
instance of B created
pr has been called 7 times already
B method called
repr?
<__main__.A object at 0xb72cffac>
pr has been called 8 times already
<__main__.B object at 0xb72d002c>