How does one use python's __import__() and getattr() to correctly to instantiate nested classes?

前端 未结 0 476
孤城傲影
孤城傲影 2021-01-21 06:33

I have the following code in module xyz:

Class Outer:
   Class Nested:
       pass

I can successfully instantiate Outer objects as f

相关标签:
回答
  • 消灭零回复
提交回复
热议问题