Stop and terminate a context-manager before it begins (but after its __init__)

后端 未结 0 1798
猫巷女王i
猫巷女王i 2020-12-01 18:22

I have a context manager, subclass of a parent class/context-manager, that I\'d like to terminate as soon as possible if some condition is met during the super().__ini

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