[issue15387] pkgutil.walk_packages is using a deprecated API

2012-07-18 Thread Brett Cannon
Brett Cannon added the comment: RE: the API addition: fine by me if it makes your life easier. -- ___ Python tracker ___ ___ Python-b

[issue15387] pkgutil.walk_packages is using a deprecated API

2012-07-18 Thread Nick Coghlan
Nick Coghlan added the comment: The problem turned out to just be inspect.getmodulename() still relying on the deprecated inspect.getmoduleinfo(), so I changed it to be based on importlib.machinery instead. I did make an importlib API addition to do it though - the all_suffixes() function dy

[issue15387] pkgutil.walk_packages is using a deprecated API

2012-07-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset af7961e1c362 by Nick Coghlan in branch 'default': Close #15387: inspect.getmodulename() now uses a new importlib.machinery.all_suffixes() API rather than the deprecated inspect.getmoduleinfo() http://hg.python.org/cpython/rev/af7961e1c362 ---

[issue15387] pkgutil.walk_packages is using a deprecated API

2012-07-18 Thread Brett Cannon
Brett Cannon added the comment: I think the imp functions do need to go away. They perpetuate an absolutely horrendous API that I'm trying to slowly kill (and the underlying imp code is already reusing importlib). They already are a burden for future API growth as people already rely on imp.f

[issue15387] pkgutil.walk_packages is using a deprecated API

2012-07-18 Thread Nick Coghlan
New submission from Nick Coghlan : $ ./python -Wdefault Python 3.3.0b1 (default:8bf691d0b004+, Jul 15 2012, 23:20:06) [GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pkgutil >>> list(pkgutil.walk_packages(".")) /ho