]> granicus.if.org Git - python/commit
PyErr_SetFromErrnoWithFilename(): New function which supports setting
authorBarry Warsaw <barry@python.org>
Thu, 23 Jul 1998 16:05:56 +0000 (16:05 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 23 Jul 1998 16:05:56 +0000 (16:05 +0000)
commit97d951533e71b74a1a2502feda4a587eb9fb7d98
treee799721708e76101f9e078a80e472142794a5667
parent2dfe4de614b9006693d5053fbba462449609ba8e
PyErr_SetFromErrnoWithFilename(): New function which supports setting
an exception from errno, with a supplied filename (primarily used by
IOError and OSError).  If class exceptions are used then the exception
is instantiated with a 3-tuple: (errno, strerror, filename).  For
backwards compatibility reasons, if string exceptions are used,
filename is ignored.

PyErr_SetFromErrno(): Implement in terms of
PyErr_SetFromErrnoWithFilename().
Python/errors.c