Can anyone explain why when I create a class in Python for example:
class My:
and when I print(dir(python))
it returns a list of functions and attributes in which there is a __weakref__
method,
so my questions is from where did this method appear if the class that I create inherits from object class which doesn't have this method