Nei*_*l G 6 python styles contextmanager
如何with在Python中通过多行传播long 子句?现在,我有
with self.context_manager_one(some, parameters, that, are, passed) \
as return_value_one, \
self.context_manager_two(self.p, slice(None), None) \
as return_value_two:
Run Code Online (Sandbox Code Playgroud)
我想按照谷歌的Python风格指南,它禁止反斜杠线延续.
这在 Python 3.10 中已修复!
https://github.com/we-like-parsers/pegen/issues/229
https://bugs.python.org/issue12782