On Tue, Aug 25, 2009 at 03:03:12PM +0200, Hrvoje Niksic wrote:
> You should use ctypes.get_errno() instead of os.errno; sorry about that.
> 
> Also, when raising OSError, you should set the 'errno' attribute to the
> appropriate code.

How does that compare to:

raise pythonapi.PyErr_SetFromErrno(py_object(OSError))

?
-- 
Obama Nation | My emails do not have attachments; it's a digital signature
that your mail program doesn't understand. | 
http://www.subspacefield.org/~travis/ 
If you are a spammer, please email j...@subspacefield.org to get blacklisted.

Attachment: pgpc0M9ykZOdl.pgp
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to