Dec-26-2023, 11:32 AM
hi
I use idle for Python learning.
in idle i wrote help(type) and then appeared a text that contained somethings as mro(self, / ) or __sizeof__(self, / ) and ... .
what is the meaning of self and / ?
also, there was in the result of the above command :
thanks for any guidance.
I use idle for Python learning.
in idle i wrote help(type) and then appeared a text that contained somethings as mro(self, / ) or __sizeof__(self, / ) and ... .
what is the meaning of self and / ?
also, there was in the result of the above command :
Quote: __init__(self, /, *args,**kwargs)then I typed
Initialize self. see help(type(self) for accurate signature.
help(type(self))in idle, but i got an error as:
Error:...
NameError: name 'self' is not defined.
what is the problem?thanks for any guidance.