[pypy-issue] [issue1379] Certain packages are missing from pkgutil.iter_modules()

linq tracker at bugs.pypy.org
Tue Jan 22 01:17:33 CET 2013


New submission from linq <relinquish at gmail.com>:

To generate a complete list of importable packages, I run the following code:
pkg_list = [pkg[1] for pkg in pkgutil.iter_modules()]

Even though I can import the following packages, they are not listed in pkg_list:
_bisect
_hashlib
_io
_locale
_lsprof
_multibytecodec
_multiprocessing
_random
_socket
_ssl
array
binascii
bz2
cmath
crypt
fcntl
itertools
math
mmap
operator
parser
pyexpat
select
termios
time
unicodedata
zlib

In addition, I ran the same command on CPython 2.7.3 to see if there were any
packages present there but not on pypy. The packages which I found were:
_curses
_curses_panel
_heapq
_hotshot
_json
_struct
_tkinter
audioop
dl
gdbm
imageop
linuxaudiodev
nis
ossaudiodev
spwd
strop

My Platform: Linux 3.6.10 (archlinux)

----------
messages: 5201
nosy: linq, pypy-issue
priority: bug
status: unread
title: Certain packages are missing from pkgutil.iter_modules()

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1379>
________________________________________


More information about the pypy-issue mailing list