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.

Author ncoghlan
Recipients brett.cannon, georg.brandl, ncoghlan
Date 2012-07-18.11:56:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342612573.81.0.647626142545.issue15387@psf.upfronthosting.co.za>
In-reply-to
Content
$ ./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("."))
/home/ncoghlan/devel/py3k/Lib/inspect.py:453: DeprecationWarning: inspect.getmoduleinfo() is deprecated
  info = getmoduleinfo(path)
/home/ncoghlan/devel/py3k/Lib/inspect.py:445: DeprecationWarning: imp.get_suffixes() is deprecated; use the constants defined on importlib.machinery instead
  for suffix, mode, mtype in imp.get_suffixes()]
[(FileFinder('.'), 'foo', False), (FileFinder('.'), 'python-gdb', False), (FileFinder('.'), 'setup', False)]

The problem is the calls to inspect.getmodulename().

Do these APIs really need to be deprecated? Can't they just be redirected to importlib instead?
History
Date User Action Args
2012-07-18 11:56:13ncoghlansetrecipients: + ncoghlan, brett.cannon, georg.brandl
2012-07-18 11:56:13ncoghlansetmessageid: <1342612573.81.0.647626142545.issue15387@psf.upfronthosting.co.za>
2012-07-18 11:56:13ncoghlanlinkissue15387 messages
2012-07-18 11:56:12ncoghlancreate