New submission from Carlos Ferreira: PyArg_ParseTupleAndKeywords is not respecting the format string "sy*ss"
When using the format "sbss" with the following valid arguments "enp0s8", 0, "08:00:27:da:b3:47", "08:00:27:11:22:33" there is no error and the function succeeds in parsing the arguments. But when passing the following valid arguments, "8bf2f93c-8f44-4960-a2de-71f87130882e", bytes(list([0,0,0,1])), "08:00:27:11:22:33", "10.0.0.3" it will fail stating that the 3rd argument has a null character. ---------- components: Extension Modules messages: 212236 nosy: Claymore priority: normal severity: normal status: open title: PyArg_ParseTupleAndKeywords does not respect arguments format. type: behavior versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20777> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com