On Sat, Sep 7, 2019 at 11:27 PM Rob Cliffe via Python-ideas <[email protected]> wrote: > A chance for me to bang the drum on one of my pet themes: > Sometimes the readability of code is improved by breaking the sacred > taboo of 1 statement per line, if it allows similar constructs to be > vertically aligned: > > if max_results > 0 : query['max_results'] = max_results > if active is not None : query['active'] = active > if deleted is not None: query['deleted'] = deleted > > If this comes out ragged in your browser, the colons and equal signs are > meant to be vertically aligned.
I'm not bothered by putting an if and a simple statement together, but I am definitely bothered by the need to vertically align them, and especially by the triple repeated name. Not a fan of this style - looks like a bug magnet and maintenance burden. ChrisA _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/53FCXULRSVUUSTPWJKIN4XCZQZBBBXLE/ Code of Conduct: http://python.org/psf/codeofconduct/
