This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients steven.daprano, wietse.j
Date 2021-01-25.09:31:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:35steven.dapranosetrecipients: + steven.daprano, wietse.j
2021-01-25 09:31:35steven.dapranosetmessageid: <>
2021-01-25 09:31:35steven.dapranolinkissue43021 messages
2021-01-25 09:31:35steven.dapranocreate