2 Aug
2018
2 Aug
'18
12:03 p.m.
From the PEP:
From email/generator.py (and importantly note that there is no way to substitute or for ?? in this situation):
mangle_from_ = True if policy is None else policy.mangle_from_
After updating:
mangle_from_ = policy?.mangle_from_ ?? True I cannot see how these are equivalent, and cannot understand what the cryptic comment means.
policy.mangle_from_ = None
True if policy is None else policy.mangle_from_ None
policy?.mangle_from_ ?? True True (??? since lhs is None?)