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 veky
Recipients Jeffrey.Kintscher, mark.dickinson, pablogsal, rhettinger, tim.peters, veky
Date 2020-08-06.09:33:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1596706419.87.0.755241240691.issue41458@roundup.psfhosted.org>
In-reply-to
Content
> s.append(x) if side == s_side else t.append(x)

To me, (s if side == s_side else t).append(x) seems much better. Not only more is factored, but .append is viewed as a procedure (returning None, changing its object), and if-expression is really used for its value, not the side-effect.
History
Date User Action Args
2020-08-06 09:33:39vekysetrecipients: + veky, tim.peters, rhettinger, mark.dickinson, pablogsal, Jeffrey.Kintscher
2020-08-06 09:33:39vekysetmessageid: <1596706419.87.0.755241240691.issue41458@roundup.psfhosted.org>
2020-08-06 09:33:39vekylinkissue41458 messages
2020-08-06 09:33:39vekycreate