SpyderというIDEを使っているのですが(Pythonは3)、sorted()が動かなくなりました。(数ヶ月前にはたしかきちんと実行できたはず)
>>> sorted([5, 2, 3, 1, 4])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'NoneType' object is not callable
というようにエラーがでます。
MacのターミナルからPythonを起動して打てば、きちんと作動します。
原因としては何が考えられますでしょうか?
ありがとうございます。ちょっと後で確認したみます。
2016/05/30 10:54:45ご指摘のとおりでした。ありがとうございました!
2016/05/30 13:08:07