This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients OG7, christian.heimes, gregory.p.smith, meiermic, nadeem.vawda, neologix, pitrou, python-dev, vstinner
Date 2011-05-18.21:51:30
SpamBayes Score 9.5592324e-05
Marked as misclassified No
Message-id <1305755492.12.0.726045974876.issue1746656@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-05-18 21:51:32neologixsetrecipients: + neologix, gregory.p.smith, pitrou, vstinner, christian.heimes, OG7, meiermic, nadeem.vawda, python-dev
2011-05-18 21:51:32neologixsetmessageid: <1305755492.12.0.726045974876.issue1746656@psf.upfronthosting.co.za>
2011-05-18 21:51:31neologixlinkissue1746656 messages
2011-05-18 21:51:31neologixcreate