It would be resolved at the time the value is accessed in the lazy map. The map then stores the resultant value to avoid attempting to re-import the module on every access.

On Fri, 2021-03-12 at 08:31 +1100, Chris Angelico wrote:
On Fri, Mar 12, 2021 at 8:24 AM Paul Bryan <> wrote:

Probably one of countless examples of performing lazy imports, for precisely the reason of preventing circular imports:

In the case of circular imports, at what point should the lazy import
be resolved?

Python-ideas mailing list --
To unsubscribe send an email to
Message archived at
Code of Conduct: