How to adjust a __dict__ of one class so it works in another when using type()? TypeError: descriptor doesn't apply

后端 未结 0 1889
挽巷
挽巷 2020-12-13 02:25

I want to dynamically create a class with inheritance, e.g. for a Mixin.

Something like

class A(object):
    def __init__(self):
        print(\'A\', s         


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