[issue24744] Lack of type checks in pkgutil.walk_packages and friends

R. David Murray report at bugs.python.org
Tue Jul 28 19:01:11 CEST 2015


R. David Murray added the comment:

Well, normally no, we don't use type checks.  On the other hand, having it produce an incorrect result rather than an error of *some* sort is not so good (the problem is that it is ultimately calling map(func, path), and map happily iterates the string applying func to each character in turn), so in this case I think it is worth the explicit check for string.

----------
nosy: +r.david.murray
stage:  -> needs patch
versions: +Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24744>
_______________________________________


More information about the Python-bugs-list mailing list