Charles-François Natali <neolo...@free.fr> added the comment: Here's a patch: - those functions now accept and return str, not bytes arrays - some of them were not declared static, it's now fixed - use PyErr_SetFromErrno when errno is set - add tests (return type, nonexistent interface name/index and invalid argument) - cleanup
Note that I'm not sure about my char * <-> PyObject conversions, encoding/unicode issues are really something I'm completely oblivious to. ---------- nosy: +neologix Added file: http://bugs.python.org/file22025/socket_if.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1746656> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com