Message385608
This is a operation precedence issue.
The line:
t0, t1 = t if t is not None else [], []
is parsed as:
(t if t is not None else []), []
so you need brackets around the "else" operand to get the effect you want.
t0, t1 = t if t is not None else ([], []) |
|
Date |
User |
Action |
Args |
2021-01-25 09:31:35 | steven.daprano | set | recipients:
+ steven.daprano, wietse.j |
2021-01-25 09:31:35 | steven.daprano | set | messageid: <1611567095.09.0.407569032865.issue43021@roundup.psfhosted.org> |
2021-01-25 09:31:35 | steven.daprano | link | issue43021 messages |
2021-01-25 09:31:35 | steven.daprano | create | |
|