[issue31236] improve some error messages of min() and max()

2017-08-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: -wrong error messages when too many kwargs are received resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue31236] improve some error messages of min() and max()

2017-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 58cf7488d5dcc8f47151d09fc1fa057b4dda563b by Serhiy Storchaka (Oren Milman) in branch 'master': bpo-31236: Improved some error messages of min() and max(). https://github.com/python/cpython/commit/58cf7488d5dcc8f47151d09fc1fa057b4dda563b --

[issue31236] improve some error messages of min() and max()

2017-08-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- components: +Interpreter Core -IO dependencies: +wrong error messages when too many kwargs are received nosy: +serhiy.storchaka stage: -> patch review type: behavior -> enhancement ___ Python tracker

[issue31236] improve some error messages of min() and max()

2017-08-18 Thread Oren Milman
Changes by Oren Milman : -- pull_requests: +3181 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31236] improve some error messages of min() and max()

2017-08-18 Thread Oren Milman
New submission from Oren Milman: currently, we have the following: >>> min(0, a=1) TypeError: 'a' is an invalid keyword argument for this function >>> max(0, a=1) TypeError: 'a' is an invalid keyword argument for this function >>> max(0, a=1, b=2, c=3) TypeError: function