commit | 97d951533e71b74a1a2502feda4a587eb9fb7d98 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Thu Jul 23 16:05:56 1998 +0000 |
committer | Barry Warsaw <barry@python.org> | Thu Jul 23 16:05:56 1998 +0000 |
tree | e799721708e76101f9e078a80e472142794a5667 | |
parent | 2dfe4de614b9006693d5053fbba462449609ba8e [diff] |
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().