R. David Murray added the comment: Since we don't need to avoid new language features, using the ternary would be better than using the or. This is exactly the sort of situation the ternary was introduced for: making sure the input really is None before applying the default.
Otherwise the patch looks good. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5800> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com