これは常に発生します。関数は、私が読むことができないオブジェクトを返します。ここで:Python TypeError: 'TagList'オブジェクトは反復不可能です
discoverer = GstPbutils.Discoverer()
discoverer.connect('discovered', on_discovered)
info = discoverer.discover_uri(self.loaded_file)
print(vinfo.get_tags())
戻り値この:
<Gst.TagList object at 0x7f00a360c0a8 (GstTagList at 0x7f00880024a0)>
しかし、私はこれをやろう:私はthe doc of this data structureを読んだとき
TypeError: 'TagList' object is not iterable
しかし:
tags = vinfo.get_tags()
for tag in tags:
print (tag)
私はこれを取得、私は理解しているようだ...リスト?誰かが、タグを取得する方法を教えてくれる以上、私はそれらの文書を読む方法を教えてくれますか?また、私はいくつかのイントロスペクションの方法とツールを欠いています。私は、私が遭遇するオブジェクトが何であるか、そしてそれらがどのように機能するかを発見するために使用できますか?