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: pkgutil.walk_packages ignores onerror arg
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: foom, georg.brandl
Priority: normal Keywords: patch

Created on 2006-07-20 08:29 by foom, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pkgutil.diff foom, 2006-07-20 08:29
Messages (2)
msg50721 - (view) Author: James Y Knight (foom) Date: 2006-07-20 08:29
pkgutil.walk_packages doesn't properly pass the onerror argument to 
recursive calls. 

Also, the docstrings are quite lacking. 

Finally, it doesn't pass the name of the thing it was trying to import to the 
onerror handler, making using the handler for error reporting a bit 
difficult.

This patch fixes all three of those. If the change to the onerror handler 
signature is controversial, I can make another patch without that at least 
the clearly bugfix part of this can go in py2.5.
msg50722 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-07-25 10:23
Logged In: YES 
user_id=849994

Committed as rev. 50819. As the walk_packages function isn't
documented yet, I think the argument change is fine.
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43698
2006-07-20 08:29:22foomcreate