diff options
author | Barry Warsaw <barry@python.org> | 1998-07-23 16:03:46 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-07-23 16:03:46 +0000 |
commit | 90d35210b600d308c060164d5bc919f8f72d083c (patch) | |
tree | b690cff7a4a7e1facdbd7e4bf127e367b97647d0 /Python/errors.c | |
parent | 82e6d325807f5033f4a1ed543df439b3ebb0fe80 (diff) | |
download | cpython-90d35210b600d308c060164d5bc919f8f72d083c.tar.gz |
Added support for including the filename in IOErrors and OSErrors that
involve a filesystem path. To that end:
- Changed IOError to EnvironmentError and added a hack which checks
for arg of len 3. When constructed with a 3-tuple, the third item
is the filename and this is squirreled away in the `filename'
attribute. However, for in-place unpacking backwards
compatibility, self.args still only gets the first two items. Added
a __str__() which prints the filename if it is given.
- IOError now inherits from EnvironmentError
- New class OSError which also inherits from EnvironmentError and is
used by the posix module.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions