Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
Great! Common examples are str.replace(), re.Match.groups() and __exit__(None, None, None). Common anti-patterns include slice(None, None, None) (why not slice(None)?) and datetime(1970, 1, 1) (it should be a global constant). I suspect that in most of other examples the function execution time is too large to make the optimization meaningful. BTW, why do you not fold 2-argument calls? It would add 2-argument str.replace() and str.split(). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44501> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com