[Patches] [ python-Patches-1525766 ] pkgutil.walk_packages ignores onerror arg

SourceForge.net noreply at sourceforge.net
Thu Jul 20 10:29:23 CEST 2006


Patches item #1525766, was opened at 2006-07-20 04:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1525766&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: James Y Knight (foom)
Assigned to: Nobody/Anonymous (nobody)
Summary: pkgutil.walk_packages ignores onerror arg

Initial Comment:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1525766&group_id=5470


More information about the Patches mailing list