[New-bugs-announce] [issue2112] mmap.error should be a subclass of EnvironmentError and not a direct EnvironmentError
report at bugs.python.org
Thu Feb 14 15:57:50 CET 2008
New submission from Thomas Herve:
mmap.error in mmapmodule is a direct reference to
PyExc_EnvironmentError, whereas it should be a subclass. It makes it
provide a specific string representation, and allows to be more specific
when catching exceptions.
The attached patch tries to provide that.
components: Library (Lib)
title: mmap.error should be a subclass of EnvironmentError and not a direct EnvironmentError
versions: Python 2.6
Added file: http://bugs.python.org/file9430/mmap2.diff
Tracker <report at bugs.python.org>
More information about the New-bugs-announce