Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は pyAMF を使用していますTypedObjectが、実際にはネストされた辞書である を受け取ります。これをpython辞書に変換したい。
TypedObject
あなたはそれをラップするか、それを変換するためにdict(obj)呼び出すことができるはずです:obj.copy()
dict(obj)
obj.copy()
>>> type(o) <class 'pyamf.TypedObject'> >>> type(o.copy()) <type 'dict'> >>> o.copy() {'abc': 123}