diff options
author | Barry Warsaw <barry@python.org> | 1998-07-23 16:05:56 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-07-23 16:05:56 (GMT) |
commit | 97d951533e71b74a1a2502feda4a587eb9fb7d98 (patch) | |
tree | e799721708e76101f9e078a80e472142794a5667 /Grammar | |
parent | 2dfe4de614b9006693d5053fbba462449609ba8e (diff) | |
download | cpython-97d951533e71b74a1a2502feda4a587eb9fb7d98.zip cpython-97d951533e71b74a1a2502feda4a587eb9fb7d98.tar.gz cpython-97d951533e71b74a1a2502feda4a587eb9fb7d98.tar.bz2 |
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().
Diffstat (limited to 'Grammar')
0 files changed, 0 insertions, 0 deletions