[issue31229] wrong error messages when too many kwargs are received

2017-08-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Oren for your contribution. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue31229] wrong error messages when too many kwargs are received

2017-08-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bf9075a0c55186d2f34df63e6c8512dd6414ff4b by Serhiy Storchaka (Oren Milman) in branch 'master': bpo-31229: Fixed wrong error messages when too many keyword arguments are received. (#3180) https://github.com/python/cpython/commit/bf9075a0c55186d2

[issue31229] wrong error messages when too many kwargs are received

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

[issue31229] wrong error messages when too many kwargs are received

2017-08-21 Thread Oren Milman
Oren Milman added the comment: I already wrote a patch, but I thought it would be better to wait until #31236 is resolved. this is because #31236 would change the error messages of min() and max(), and test_call tests exact error messages in CFunctionCallsErrorMessages, which is where I thought

[issue31229] wrong error messages when too many kwargs are received

2017-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please make a PR from your patch Oren? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue31229] wrong error messages when too many kwargs are received

2017-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In all of these cases PyArg_ParseTupleAndKeywords() is used in uncommon way. These functions accept variable number of positional-only arguments, and PyArg_ParseTupleAndKeywords() is called with empty args tuple for parsing keyword arguments only. The patch

[issue31229] wrong error messages when too many kwargs are received

2017-08-17 Thread Oren Milman
Changes by Oren Milman : -- keywords: +patch Added file: http://bugs.python.org/file47091/issue31229_ver1.diff ___ Python tracker ___

[issue31229] wrong error messages when too many kwargs are received

2017-08-17 Thread Oren Milman
New submission from Oren Milman: Some functions produce wrong error messages in case they receive too many keyword arguments: - in Objects/exceptions.c - ImportError_init: >>> ImportError(1, 2, 3, 4, a=5, b=6, c=7) TypeError: ImportError() takes at most 2 arguments (3 given) - in Python/b