Is using a single class as both a Context Manager and a Decorator frowned upon?

前端 未结 0 496
陌清茗
陌清茗 2021-01-06 04:28

I heard a discussion between 2 developers, one was against having the same object serve both as a context manager and a decorator. His argument was that decorators are meant

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