>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?)
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/