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 <pbr...@anode.ca> wrote: > > > > Probably one of countless examples of performing lazy imports, for > > precisely the reason of preventing circular imports: > > https://github.com/fondat/fondat-core/blob/main/fondat/lazy.py > > > > In the case of circular imports, at what point should the lazy import > be resolved? > > ChrisA > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/J63KSEX5B3UC6SHQ4ZZJK4G4DUUTIUZW/ > Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/VM433CUAI634J67SYF32DZKJBCXMTNSC/ Code of Conduct: http://python.org/psf/codeofconduct/