Chris Withers wrote:
> Peter Otten wrote:
>>> My expectation of this is that if onerrors is left as None, names
>>> yielded will be importable.
>>
>> I would infer no such promise, especially as the generator also yields
>> modules, and no attempt at all is made to import those.
>
> Really?
Ye
Peter Otten wrote:
My expectation of this is that if onerrors is left as None, names
yielded will be importable.
I would infer no such promise, especially as the generator also yields
modules, and no attempt at all is made to import those.
Really? I thought the __import__ fired over everythi
Chris Withers wrote:
> From the docs of pkgutils.walk_packages:
> """
> 'onerror' is a function which gets called with one argument (the
> name of the package which was being imported) if any exception
> occurs while trying to import a package. If no onerror function is
> sup
Hi All,
From the docs of pkgutils.walk_packages:
"""
'onerror' is a function which gets called with one argument (the
name of the package which was being imported) if any exception
occurs while trying to import a package. If no onerror function is
supplied, ImportErrors are caugh