■症状:Pythonでエラーメッセージ「object is not callable」が出る。
スポンサードリンク
■原因:関数(厳密にはcallable)ではないものに () をつけていることがエラーの原因。
■解決策:()を取り除く
例
>>>a=True; a()
TypeError: 'bool' object is not callable
>>>a
True
プログラム言語 nimのようにcallableでもuncallableでも()が不要になれば良いのですが・・・。
(コメントされる場合はコメントの最初にjjjjと入れて下さい。無い場合はスパムとみなされてしまいます。 English comments will be welcomed. If you have any comments, please write 'jjjj' at first of your comments OR spam filters will delete your comments.)