This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: documentation for ImportError parameters and attributes
Type: enhancement Stage:
Components: Documentation Versions: Python 3.3, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, georg.brandl, r.david.murray, techtonik
Priority: normal Keywords:

Created on 2011-01-07 16:23 by techtonik, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg125655 - (view) Author: anatoly techtonik (techtonik) Date: 2011-01-07 16:23
Need documentation for ImportError parameters and exception instance attributes.
msg125664 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2011-01-07 17:43
What is there to document?  ImportError has no special attributes or parameters.
msg125671 - (view) Author: anatoly techtonik (techtonik) Date: 2011-01-07 18:19
ImportError has args and message attributes containing failed module name.
msg125672 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-01-07 18:23
No it doesn't.  It has an arbitrary message string.  That's the same as all other exceptions that don't have special attributes.
msg125675 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2011-01-07 18:30
You are right, however, that the "args" argument is not really well documented.  Fixed that in r87820.
History
Date User Action Args
2022-04-11 14:57:11adminsetgithub: 55065
2011-01-07 18:30:49georg.brandlsetresolution: works for me -> fixed
messages: + msg125675
nosy: georg.brandl, techtonik, r.david.murray, docs@python
2011-01-07 18:23:23r.david.murraysetstatus: open -> closed
nosy: + r.david.murray
messages: + msg125672

2011-01-07 18:19:06techtoniksetstatus: closed -> open
nosy: georg.brandl, techtonik, docs@python
messages: + msg125671
2011-01-07 17:43:42georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg125664

resolution: works for me
2011-01-07 16:23:43techtonikcreate