Pythonで外部ライブラリを使っていたり、複雑なクラスを扱っていたりすると、「このオブジェクト、一体どんなメソッドを持っているんだろう?」と疑問に思うことがあります。 ドキュメントを読めば分かりますが、コードを書いているその場でサッと確認 ...
We must look into dir(), __dict__() and help() attribute/methods in python. They make it easy for us to understand how classes resolve various functions and executes code. In Python, there are three ...