Daniel Lepage <dplep...@google.com> added the comment:
A simpler way to merge them would be to make all arguments after a default argument keyword-only, e.g. __index__(self, i, j=0, *, k, l=0) It does mean you'd have to explicitly write e.g. Child(1, k=4), but that's a lot more readable than seeing Child(1, 4) and wondering which field gets the 4. ---------- nosy: +Daniel Lepage2 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36077> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com