今日、threading.Condition をサブクラス化しようとしましたが、うまくいきませんでした。threading.Condition クラスをサブクラス化しようとしたときの Python インタープリターの出力は次のとおりです。
>>> import threading
>>> class ThisWontWork(threading.Condition):
... pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Error when calling the metaclass bases
function() argument 1 must be code, not str
誰かがこのエラーを説明できますか? ありがとう!