Custom Backup job 自定义备份选项
You feel that a custom metaclasses is overkill for the simple job of class initialization, and you would rather use a simpler solution.
您觉得对于类初始化这类简单的工作使用自定义元类是杀鸡用牛刀,所以想要使用一种更为简单的解决方案。
Contrary to popular belief, this is a job where most of the time you do not need and you do not want a custom metaclass.
跟流行的观点相反,这是一个在大多数时候都不需要而且不想要自定义元类的工作。
You could accomplish the above sort of job with a custom metaclass, attached to XO, but with behavior determined dynamically.
应该用一个附加到XO、行为是动态决定的自定义元类来完成上述工作。
应用推荐