Mercurial > cpython-lru_cache-weakref
diff Python/thread_pthread.h @ 8706:ca1c669bb041 legacy-trunk
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().
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Thu, 23 Jul 1998 16:05:56 +0000 |
| parents | 1b4a37f37345 |
| children | 5bc64efc65e0 |
