Message293660
So this would basically be:
with ExitStack() as stack:
cm1 = stack.enter_context(a_long_name.with_a_long_method())
cm2 = stack.enter_context(another_long_variable.with_a_long_method())
Seems like a very non-obvious and inelegant solution... |
|
Date |
User |
Action |
Args |
2017-05-14 21:20:47 | ulope | set | recipients:
+ ulope, barry, georg.brandl, ishimoto, ncoghlan, benjamin.peterson, ezio.melotti, eric.araujo, steven.daprano, r.david.murray, Julian, serhiy.storchaka |
2017-05-14 21:20:47 | ulope | set | messageid: <1494796847.5.0.0105603704053.issue12782@psf.upfronthosting.co.za> |
2017-05-14 21:20:47 | ulope | link | issue12782 messages |
2017-05-14 21:20:47 | ulope | create | |
|